need help on a spell

3plX

New Member
Reaction score
3
5 sec. cooldown
lasts 5/10/15/20 sec.
increase your intellect by 1 each time you cast this spell
stacks 1/2/3/4 times
if a unit haven't cast <spell> in 5/10/15/20 sec., remove all stacked intel.
each time you cast it, it refreshes duration to 5/10/15/20 sec.
i tried, but it didn't work :(
plz help
 

Attachments

  • spell intel..w3x
    13.8 KB · Views: 86

PrisonLove

Hard Realist
Reaction score
78
5 sec. cooldown
lasts 5/10/15/20 sec.
increase your intellect by 1 each time you cast this spell
stacks 1/2/3/4 times
if a unit haven't cast <spell> in 5/10/15/20 sec., remove all stacked intel.
each time you cast it, it refreshes duration to 5/10/15/20 sec.
i tried, but it didn't work :(
plz help

Code:
Unit starts the effect of an ability

ability being cast equal to your spell

If IntInteger less than 5
    then
        set IntInteger = IntInteger + 1
        set intelligence of triggering unit equal to intelligence of triggering unit +1

as for the duration, use timers.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top