![]() |
Someone help me!!
How do i make the npcs variable increase by one each time it gets hit by the HAMMER?? Please help me
|
i think you would have to add scripting to the hammer
|
he has a point
|
Triggeraction :D , course, I would use testnpc too to make it a little less laggy...
|
In case u haven't noticed i'm new at the nat stuff. I don't know very much, but i'm trying :-P, i'm more of a lat :D. But anyways, i know about the scripting in the hammer, just not sure what to use lol
|
Quote:
|
Quote:
|
I've looked at it, but i'm not sure how I would use it :( "triggeraction x,y,action,params; triggers a ‘if (action<action>)...’ on the objects on (x,y)"
params? O.o, and how would i apply it to the hammer |
triggeraction x,y,action,params;
You wouldnt need any params, the action would be the action name and the x and y would be the x and y location of the NPC the trigger action is directed at. The NPC on x y would need the command if (actionname) {actions go here} name being the name of the action you triggerd and if its to increase a variable the actions it would need to trigger would be varialblename+=1; Now chances are i have completley confused you, cause i have confused myself, and i think i have just decided Im crap at explaining commands, erm someone translate the above into English please, LoL |
Quote:
if (actionactionname) { if (this.hit<insertnumhere) this.hit++; else { this.hit=0; commands to run when its been hit num times; } |
*scratches head*
All i need to know if the hammer thingy, i got it working for the sword, but what would i put in the hammer, or as teh action is what i'm asking. example: if(npctouchsme) or what? oh btw thanx for helpin :) |
but then again, i have it in about the simplest form possible, i'm no nat expert as you can tell.
|
here
heres for hammer:
NPC Code: then u put this on npc: NPC Code: :megaeek: :megaeek: :megaeek: :megaeek: :megaeek: :megaeek: |
~AlphaFlame~
Sir, please go away and come back after you learn how to NOT use flags for weapons. |
he just copied the hammer script so he probably wasnt the one who used flags
|
All times are GMT +2. The time now is 12:03 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.