![]() |
Trigger Action
Anyone feel like explaining how to use triggeraction to me? I cant find anywhere that explains it and shows u how to use it.
|
all I know is that it makes stuff happen :o
|
here is a good example...
NPC Code: then put this coding in npc #2 NPC Code: make sure this npc is at the x and y of 0,0 and make sure the picture is like bigger then 16*16 pixels (I recommand like 32*32 pixels) oh yea make sure you dont hide it also otherwise it wont work |
Quote:
OKAY LETS TRY THAT AGAIN BUT THIS TIME S..L..O..W ..D..O..W..N PLEASE THATS LIKE TALKING SPANISH TO ME :confused: |
~AlphaFlame~
Trigger action causes an action to happen at a specified x/y... format: triggeraction x,y,name,params; A NPC can detect a triggeraction by using if (actionname ). By the way, the triggeraction has to be at the x/y of a non-transparent, visible part of the NPC... Now, take KJS's example. It causes an action "warp" to be happened at 1,1. The NPC at 0,0 then picks up this action with it's if (actionwarp) line, and then proceeds to warp the player. |
Quote:
|
:)
Yes, it triggers both. |
what kinda stuff can u put into the params part of it?
|
Here, I shall give an example of triggeraction.
NPC Code:if (playertouchsme) toweapons Freezing-Weapon; Okay, I will take you through it step by step. NPC Code: This part sets the action at the specified location. NPC Code:playerx+1.5+vecx(playerdir)*2, The equation states that the action will be conducted in front of the player. This equation will always make the action be conducted in the direction of the player. The rest is self-explainatory. |
Quote:
|
| All times are GMT +2. The time now is 05:29 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.