Bob the Hamster OHRRPGCE Developer

Joined: 22 Feb 2003 Posts: 2526 Location: Hamster Republic (Southern California Enclave)
|
Posted: Tue Dec 14, 2004 4:27 pm Post subject: second argument |
|
|
check out: http://hamsterrepublic.com/ohrrpgce/plotscripttutor.html#triggering
The first argument of a script that is triggered by an NPC is going to be the "script argument" from the NPC editor, but the optional second argument will be a reference to the npc
Example:
Code: |
define script(1,NPC action,2,0,0)
script, NPC action, arg, ref, begin
walk NPC(ref,south,1)
end
|
|
|