Quote:
i want to store the position of the NPC that runs the script into a variable
and not this:
Quote:
is there some way to return the NPC last used by the player in a script?
The second is not easy to do, but the first is trivial: the reference of the activated NPC is passed as the second argument to an 'on use' NPC script. The first argument is the 'script argument' you can set in the NPC editor. So you can get the NPC position like so:
Code:
plotscript, my npc script, my arg, npc ref, begin
something something (npc X (npc ref))
something something (npc Y (npc ref))
end
something something (npc X (npc ref))
something something (npc Y (npc ref))
end




i should have said "script" arguments. i've never used those arguments for any reason before. i'm a little confused as to what they are for. (except for the second argument, which was explained to me earlier.)