Jump to content

Player1 or [PC]?


Salk

Recommended Posts

Since I opened this topic I can as well ask here.

 

Can I change this:

 

ApplySpellRES("WTPFMLV2",Player1)
to this:
ApplySpellRES("WTPFMLV2",[PC])

 

to make sure the target of the spell is the protagonist and not just the party character occupying the first slot in the party? And in general, where do I learn what targets are valid targets for the engine?

Thanks!

Link to comment

I have this:

!IsGabber(Player1)
!IsGabber(Player2)
!IsGabber(Player3)
!IsGabber(Player4)
!IsGabber(Player5)
!IsGabber(Player6)

and I was wondering if it I could swap all of it with

!IsGabber([PC])

To see if I could, I tested it and it didn't really work. Can somebody explain why? Is it because [PC] is not a visible object like Mike1072 suggested above?

 

Thanks

Link to comment

Dialogue or script?

 

In dialogue, we expect Player1, Player2 et al.,

 

19 LastTalkedToBy
20 LastHeardBy // never seen in use
21 Player1
22 Player2
23 Player3
24 Player4
25 Player5
26 Player6
27 Protagonist

 

never seen in use but easy to test:

 

Returns the player in the first portrait slot.

Returns the player in the second portrait slot.

Returns the player in the third portrait slot.

Returns the player in the fourth portrait slot.

Returns the player in the fifth portrait slot,

Returns the player in the sixth portrait slot.

 

All of these are in the object.ids and called for using the script triggers listed here: http://gemrb.org/iesdp/scripting/triggers/bg2triggers.htm

 

In the listing of triggers, the definitions tell you what they work with; for example

0x4037 StateCheck(O:Object*,I:State*State)
Returns true only if the specified object is in the state specified.

 

So in this case, the parameters are "object.ids" and "state.ids" entries.

Link to comment
Try !Allegiance(LastTalkedToBy(Myself),PC)

 

 

never seen in use but easy to test:

Player*Fill is good for "is all party gathered here" checks. The reason you don't want Player* there is because if you kicked Player2 out of party, the rest won't magically take its place until after save and load - i.e. it's very possible to run with Player[1,3,4] and the game won't bat an eyelid.

Link to comment

Archived

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

×
×
  • Create New...