Hello, how are you?
I have a problem with a script. I want it to do is that each npc of its own variables in the SET, but until today I can not achieve it. the thing would be something like this:
This is the variable that i want insert for each npc
if (strnpcinfo(2) == "9412") { if (sidone == 9412) .@izlnpc = Ake1;}
else if (strnpcinfo(2) == "9454") { if (sidone == 9454) setd ".@izlnpc$","Cleo1";}
else if (strnpcinfo(2) == "9403") { if (sidone == 9403) setd ".@izlnpc$","Gil1";}
else if (strnpcinfo(2) == "9424") { if (sidone == 9424) setd ".@izlnpc$","Hil1";}
else if (strnpcinfo(2) == "9433") { if (sidone == 9433) setd ".@izlnpc$","Mar1";}
else if (strnpcinfo(2) == "9463") { if (sidone == 9463) setd ".@izlnpc$","Ama1"; }
else if (strnpcinfo(2) == "9460") { if (sidone == 9460) setd ".@izlnpc$","Him1";}
else if (strnpcinfo(2) == "9466") { if (sidone == 9466) setd ".@izlnpc$","Her1";}
else if (strnpcinfo(2) == "9469") { if (sidone == 9469) setd ".@izlnpc$","Sel1";}
This is the setting of a variable in a character
@izlvar = .@izlnpc$;
set FL_+@izlvar,rand(1,80);
for the duplicated npc.
confesiones,29,27,5 duplicate(Conf_F#core) Akechi ****#9412 HIDDEN_WARP_NPC
confesiones,29,27,5 duplicate(Conf_F#core) Cleopatra ****#9454 HIDDEN_WARP_NPC
confesiones,29,27,5 duplicate(Conf_F#core) Gilgamesh ****#9403 HIDDEN_WARP_NPC
confesiones,29,27,5 duplicate(Conf_F#core) Hildegard ****#9424 HIDDEN_WARP_NPC
confesiones,29,27,5 duplicate(Conf_F#core) Marceline ****#9433 HIDDEN_WARP_NPC
confesiones,29,27,5 duplicate(Conf_F#core) Amadeus ****#9463 HIDDEN_WARP_NPC
confesiones,29,27,5 duplicate(Conf_F#core) Himiko ****#9460 HIDDEN_WARP_NPC
confesiones,29,27,5 duplicate(Conf_F#core) Hermes ****#9466 HIDDEN_WARP_NPC
confesiones,29,27,5 duplicate(Conf_F#core) Selene ****#9469 HIDDEN_WARP_NPC
The trouble is when I try to make the npc gave me of the SET I get this warning
so far try it in several ways and this is the one that gives me the least mistakes, I wish they could help me. Thank you
-Van