Home
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Details for command getvariableofnpc:
* getvariableofnpc <Variable Name>,"NPC Name";
Enables you to get a NPC variable (. prefix) from the given NPC. This can only be used to get . variables.
Examples:
> set .v,getvariableofnpc(.var,"A NPC");
Will set this NPC's .v variable to the value of the .var variable of 'A NPC'.
> getvariableofnpc(.var,"TargetNPC");
//This will return the value of .var, note that this can't be used, since the value isn't catched.
> set getvariableofnpc(.var,"TargetNPC"),1;
//This will set the .var variable of TargetNPC to 1.