Jump to content

More scripting quiz


Avenger

Recommended Posts

1. What is the difference between Player1 and Protagonist?

Nothing, IIRC.

 

2. is it possible to simulate StrongestOfMale() with StrongestOf[0.0.0.0.0.MALE] ?

If it works (and I don't think it will) , then you'll be reading every male .cre on the screen. You'd need to limit it by race/class etc. Is that what you want? I'm happy to set up some simple tests if you can narrow down what you want to do.

 

-Y-

Link to comment

As this is the IESDP forum, you might have guessed i have no specific modding problem.

I want to know how exactly these functions work in order to re-implement them.

I'm curious if StrongestOfMale([a.b.c.d.e]) is just a shortcut for StrongestOf([a.b.c.d.e.MALE])

 

I don't really care if i 'read all male .cre' on the screen, which is actually not true, as StrongestOf will fetch the strongest.

 

On another question: what StrongestOf means?

Most HP? Biggest STR? Or some combo?

If anyone knows the proper formula please tell.

 

Heh, IESDP misses object.ids descriptions?

Link to comment
I don't really care if i 'read all male .cre' on the screen, which is actually not true, as StrongestOf will fetch the strongest.

That's just about what I meant :) . It will read every male .cre on the screen and return the strongest. Would be interesting if more than one had the same .str rating....

 

On another question: what StrongestOf means?

Good point. I'll run some tests on a party in the next day or two and see what comes up. The thought of trying to apply test .bcs scripts to a bunch of monsters makes me shudder....!!

 

-Y-

Link to comment

Actually my tests show that StrongestOf simply returns the strongest PC.

StrongestOfMale returns the strongest male PC.

Regardless of any other object qualifiers.

 

I compiled the scripts using weidu, but i doubt it is a problem since recompile gave the original script source back.

Link to comment

From my scant knowledge of the actual game plot - the StrongestOf object is used in BG1 for Viconia to challenge the strongest male PC member. In which case, it would make sense to only target PC's.

 

 

Heh, IESDP misses object.ids descriptions?

*shrugs*

 

:)

Link to comment
From my scant knowledge of the actual game plot - the StrongestOf object is used in BG1 for Viconia to challenge the strongest male PC member. In which case, it would make sense to only target PC's.

Shar-teel, you mean. :)

Link to comment

IWD definitions:

Nearest enemy to my leader=NearestEnemyOf(LeaderOf(Myself))
Nearest enemy to who I am protecting=NearestEnemyOf(ProtectedBy(Myself))
Nearest enemy to me=NearestEnemyOf(Myself)
Last enemy targeted by my leader=LastTargetedBy(LeaderOf(Myself))
Last enemy targeted by myself=LastTargetedBy(Myself)
Last enemy to attack my protector=LastAttackerOf(ProtectorOf(Myself))
Last enemy to attack my leader=LastAttackerOf(LeaderOf(Myself))
Last enemy to attack who I am protecting=LastAttackerOf(ProtectedBy(Myself))
Last enemy to attack me=LastAttackerOf(Myself)
Protector of the enemy leader=ProtectorOf(LeaderOf(NearestEnemyOf(Myself)))
Protector of my leader=ProtectorOf(LeaderOf(Myself))
Person I am protecting=ProtectedBy(Myself)
Person my leader is protecting=ProtectedBy(LeaderOf(Myself))
Least damaged of enemy group=LeastDamagedOf(GroupOf(NearestEnemyOf(Myself)))
Least damaged of my group=LeastDamagedOf(GroupOf(Myself))
Most damaged of enemy group=MostDamagedOf(GroupOf(NearestEnemyOf(Myself)))
Most damaged of my group=MostDamagedOf(GroupOf(Myself))
Strongest of enemy group=StrongestOf(GroupOf(NearestEnemyOf(Myself)))
Strongest of my group=StrongestOf(GroupOf(Myself))
Weakest of enemy group=WeakestOf(GroupOf(NearestEnemyOf(Myself)))
Weakest of my group=WeakestOf(GroupOf(Myself))
Enemy leader=LeaderOf(NearestEnemyOf(Myself))
My protector=ProtectorOf(Myself)
My leader=LeaderOf(Myself)
Myself=Myself

As noted, some of this stuff probably doesn't really work (at least, not in BG2).

 

Protagonist seems to be the equivalent of Gabber. It's only used in IWD dialogues, and checks against the party member currently in dialogue (it doesn't return Player1).

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...