![]() |
PutNpc2
dunno if it was asked before, but, how to pass
variables from a script to a script using putnpc2? example if i have a script like this: v1=2; putnpc2 blahblah { message #v(v1); } the variable 'v1' don't pass to the new npc... how to do it? |
Try something like this;
putnpc2 ex,ey,{ message #v(this.v1); }; with (npcs[npcscount-1]) { this.v1=2; } |
nice idea ;)
|
???
putnpc2?
is that p2p scripting me never heard of that lol |
Re: ???
Quote:
|
Quote:
if you're just gonna set a variable to a value, then why not do it in the putnpc2 brackets? so far, I know that params (triggeraction params, etc) are passable, but this.vars are not. This.strings are also not passable (as far as I'm aware of) But...eitherway, isn't there a forum for this thread...like..umm... oh let's say "NPC Server" ? |
Quote:
Anyway I didnt pass anything, I setted "2" for this.v1.. to pass you have to do something like this: this.v1=2; putnpc2 ex,ey,{ message #v(this.v1); }; thiso.v1=this.v1; with (npcs[npcscount-1]) { this.v1=thiso.v1; } |
Re: ???
Quote:
its called serverside scripting now :) |
*reads up on serverside*
I need practice... and I will get it if the rumor is true. |
Quote:
Imagine that you want to change variables on npcs that was put using putnpc2... but need to use this.vars without trigger actions... |
All times are GMT +2. The time now is 06:12 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.