SphereCommunity

Full Version: How Do I Get Effect To Remove After Made??
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Ok so here's my problem.. I have a script where where you attack something you get a graphic effect that you custom make. The effect I make and add to the item appears fine when you attack something or set it for dclick but the problem is the effect it adds is permanent and never goes away. I have tried using REMOVE but doesn't seem to work.. If you could help me out I'd appreciate it. I just want my own custom effect to appear from a few seconds then disappear. Here is the ways I've tried.
//The effect works on attack but the effect never disappears
ONTRIGGER=DAMAGE
SRC.NEWITEM=XXXX //My Effect Number
SRC.ACT.P=<P>
SRC.ACT.TIMER=1
SRC.RESEND
SRC.DAMAGE=10-20
RETURN 0
///////////////////////////////////////////////////////////////////////////////
Tried it this next way also with entering my own item number for the effect but the item/number I put in for the effect doesn't ever show up right and I always get the wrong graphic instead of the number I put in.

EFFECT=3,0XXXX,6,15,1 //I put my effect number I made where the x's are and always get the wrong item showing up and not the item with the number I put in.. why? This seems like it would work if it would actually ready my item number correctly for the effect.
////////////////////////////////////////////////////////////////////////////////

//This way works for attack but the effect never disappears again.. Just tried adding remove & End and both won't remove the graphic.. tried src.remove too. What am I doing wrong? Just want my custom effect to disappear after a few secs..

ONTRIGGER=DAMAGE
SRC.NEWITEM=XXXX //My Effect Number
SRC.ACT.P=<P>
SRC.ACT.TIMER=1
SRC.RESEND
SRC.DAMAGE=10-20
REMOVE
RETURN 0
END
You need to set the ATTR of the NEWITEM so that it can decay... setting the timer starts the countdown, but the item itself has to decay when the timer reaches zero.
I changed to ATTR=02 which is decay on the effect item but it still is sticking around after it appears and not decaying.. Can you please show me an example of how I would get it to remove the effect with this script.. Not sure what to do different but change the Item Att to 02 for decay and it's not working)=
Post the entire item script
Sent it to ya..
Script this item (effect) to remove after timer goes to 0
[XXXX]

ONTRIGGER=TIMER
TIMER=-1
remove
Return 1

SRC.NEWITEM=XXXX //My Effect Number
SRC.ACT.P=<P>
SRC.ACT.TIMER=1 // Here you make how many seconds it will stay in world. For now its 1
Reference URL's