Trigger won't work!

Happysmiley

New Member
Reaction score
22
Hi, I wanted to create an ability that deals damage and stuns and then regenerates X hp to the caster every second for 8 seconds.

I began basing the ability on Stormbolt, and modified damage and stun duration to an appropriate amount. Then I made 2 scripts to allow the caster to be healed. They are as follows:

Script 1.

(Enabled and Initially on)

Events
Unit - A unit Begins casting an ability

Conditions
(Ability being cast) Equal to Heart and Steel

Actions
Trigger - Run Heart and Steel 2 <gen> (checking conditions)
Wait 8.00 seconds
Trigger - Turn off Heart and Steel 2 <gen>

Script 2.

(Enable, not initially on)

Events
Time - Every 1.00 seconds of game time

Actions
Unit - Set life of (Casting unit) to ((Life of Casting unit)) + (10 ((Real((Level of Heart and Steel for (Casting unit))))x 10.00)))

Could any1 tell me what I am doing wrong here?

Thanks on behalf, Happy
 

Happysmiley

New Member
Reaction score
22
Trigger:
  • Events
    • Unit - A unit Begins casting an ability
    • Conditions
    • (Ability being cast) Equal to Heart and Steel
    • Actions
    • Trigger - Run Heart and Steel 2 &lt;gen&gt; (checking conditions)
    • Wait 8.00 seconds
    • Trigger - Turn off Heart and Steel 2 &lt;gen&gt;


and

Trigger:
  • Events
    • Time - Every 1.00 seconds of game time
    • Actions
    • Unit - Set life of (Casting unit) to ((Life of Casting unit)) + (10 ((Real((Level of Heart and Steel for (Casting unit))))x 10.00)))


Figured it out :)
 

GetTriggerUnit-

DogEntrepreneur
Reaction score
129
Unit - Set life of (Casting unit) to ((Life of Casting unit)) + (10 ((Real((Level of Heart and Steel for (Casting unit))))x 10.00)))

(Casting unit) can't be recognized in another trigger. Set casting unit to a variable when it cast then use it instead of casting unit.
 

Happysmiley

New Member
Reaction score
22
Aight, so then I'll create a unit variable and set it to the casting unit in the first trigger I guess?

EDIT: here is what it looks like atm -

Trigger:
  • Events
    • Unit - A unit Begins casting an ability
    • Conditions
    • (Ability being cast) Equal to Heart and Steel
    • Actions
    • Set HNS = (Casting unit)
    • Trigger - Run Heart and Steel 2 &lt;gen&gt; (checking conditions)
    • Wait 8.00 seconds
    • Trigger - Turn off Heart and Steel 2 &lt;gen&gt;


Trigger:
  • Time - Every 1.00 seconds of game time
    • Actions
    • Unit - Set life of (HNS) to ((Life of HNS)) + (10 ((Real((Level of Heart and Steel for (HNS))))x 10.00)))
 

Happysmiley

New Member
Reaction score
22
That was my second choice, though the point of my ability is to reg hp every second, and I don't think rejuvenation can be set to that, only to every three secs or w/e it is :) But that is probably what I'll have to do anyways since it still doesn't work ^^
Thx mate
 
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