Say I want to run a script through an NPC that returns its reference.
How would I go about doing this?
How can I get a reference to the NPC that is running the script?
Actually, any script triggered by an NPC can automatically get a reference to the NPC who triggered it.
http://rpg.hamsterrepublic.com/ohrrpgce/Plotscripting_Tutorial#NPC_Scripts
http://rpg.hamsterrepublic.com/ohrrpgce/Plotscripting_Tutorial#NPC_Scripts
Code:
plotscript, npc activation script, arg, ref, begin
#arg will be filled with the script argument from the NPC editor.
#ref will be filled with a reference to this specific NPC.
end
plotscript, npc activation script, arg, ref, begin
#arg will be filled with the script argument from the NPC editor.
#ref will be filled with a reference to this specific NPC.
end



