Jump to content

Actions and Triggers


Echon

Recommended Posts

The following information may be known to some but as long as IESDP says NT or as long as there is uncertainty in the descriptions, I will report my findings.

 

GiveOrder(O:Object*,I:Order*) & ReceivedOrder(O:Object*,I:Order ID*)

 

Range: Undefined

 

Only one creature at a time responds to an order. A creature does not detect its own order, unlike Shout() or Help().

 

Example:

 

IF
See(NearestEnemyOf(Myself))
!ReceivedOrder([0.0.OGRE],1)
THEN
RESPONSE #100
 GiveOrder([0.0.OGRE],1)
END

IF
ReceivedOrder([0.0.OGRE],1)
THEN
RESPONSE #100
 Kill(Myself)
END

A group of ogres with this script die one at a time.

 

Commands are more or less useles due to the lack of a LastCommanderOf object.

 

Help() & Help(O:Object*)

 

Range: Same as Shout.

 

Help is very much like Shout except that it does not accept values. This limits its usability to groups of creatures of the same type.

 

Example:

 

IF
See(NearestEnemyOf(Myself))
!Help([0.0.OGRE])
THEN
RESPONSE #100
 Help()
END

IF
!See(NearestEnemyOf(Myself))
Help([0.0.OGRE])
THEN
RESPONSE #100
 MoveToObject(LastHelp(Myself))
END

 

 

I will post additional information on actions and triggers later.

 

-Echon

Link to comment

Heh, you must be a mind reader. I just wanted to ask about these actions/triggers in order to add them to GemRB.

Only a few questions remained:

 

1. what is the range of Shout

2. does GlobalShout work across areas? (maybe this isn't a bg1 specific question)

3. what does the object parameter in ReceivedOrder do? I guess it should match the last commander, no?

4. can you catch a Help request with Heard? Or they are completely distinct. (i wonder what is the difference).

Link to comment
1. what is the range of Shout

 

Just slightly greater than view distance.

 

2. does GlobalShout work across areas? (maybe this isn't a bg1 specific question)

 

GlobalShout is not in BG so I cannot help you with that.

 

3. what does the object parameter in ReceivedOrder do? I guess it should match the last commander, no?

 

I believe so. That I why I lament the missing LastCommanderOf, LastCommandedBy is not worth much.

 

4. can you catch a Help request with Heard? Or they are completely distinct. (i wonder what is the difference).

 

I have not tested this but I doubt any of these can influence each other. They all consist of an action, a trigger and an object.

 

Shout = Shout(), Heard() and LastHeard

Help = Help(), Help() and LastHelp

Order = GiveOrder(), ReceivedOrder() and LastCommandedBy.

 

-Echon

Link to comment

Archived

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

×
×
  • Create New...