![]() |
triggeraction
will someone please help me to comprende' the triggeraction params cause i just dont have a really good idea bout em ....
|
[PENCHOO]
triggeraction is the easiest yet most advanced command I know.. so I say.. "triggeraction, making newbie scripters look good" |
Re: triggeraction
Quote:
Take this example: NPC Code: That will trigger an action at the specified X and Y coordinates. The action name is myaction. There is 1 parameter, which is the account name of the player. NPC Code: If this npc gets activated by the weapon triggeraction, it displays the first parameter as it's message. #p(n) is a string value which holds the nth action. n is any number between 0 and whatever Stefan made the maximum value be, which I think is 4. |
:D I don't even care! :spam:
|
ok so ...
ok so if i did ....
if (weaponfred) {triggeraction 24,34,my action,#a; } if (my action) { putexplosion3,x,y; } That would put an explosion there right ? (at 24,34) |
Re: ok so ...
Quote:
triggeraction x,y,action,param; X and Y are the coordinates of the triggeraction event. Action is the action. Param are the parameters. NPC Code: In this code, it sends a triggeraction with the parameters 24 and 34. 24 is saved in the string #p(0) and 34 in the string #p(1). Once the NPC which holds the action is activated, it sets the values of #p(0) and #p(1) into the variables this.explosionX and this.explosionY. It then uses those variables to create the explosion. |
Re: Re: ok so ...
Quote:
what does the vecx and vecy stand for ? (vecinity ??) |
Quote:
|
~AlphaFlame~
*zips in to beat Boco* Quote:
Quote:
And that's the best I'm explaining ^_^; |
ok
i think i have a somewhat ok understanding now ...
|
| All times are GMT +2. The time now is 03:04 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.