Problems with skill

morcius

New Member
Reaction score
1
How can i make this skill wont work ( not able to cast it ) if my life points is lover than 1001 ?
Code:
Events
    Last Wish
    Events
        Unit - A unit Begins casting an ability
    Conditions
        (Ability being cast) Equal to Last Wish 
    Actions
        Unit - Cause (Triggering unit) to damage (Triggering unit), dealing 1000.00 damage of attack type Chaos and damage type Divine
        Unit - Set life of (Target unit of ability being cast) to 100.00%
        Unit - Set mana of (Target unit of ability being cast) to 100.00%
        Unit - Remove Negative buffs from (Target unit of ability being cast)
 

Exide

I am amazingly focused right now!
Reaction score
448
Try changing the event to
A unit starts the effect of an ability.

Also make sure that your custom ability (Last Wish) is based on an ability that targets a unit, ie storm bolt.

EDIT:
Also,

Code:
Unit - Cause (Triggering unit) to damage (Triggering unit), dealing 1000.00 damage of attack type Chaos and damage type Divine

Just making sure; this spell makes the caster hurt himself, is that supposed to happen?
 
Reaction score
456
Code:
Last Wish
    Events
        Unit - A unit Starts the effect of an ability
    Conditions
        (Ability being cast) Equal to Last Wish
        (Life of (Triggering unit)) Less than or equal to 1000.00
    Actions
        Unit - Cause (Triggering unit) to damage (Triggering unit), dealing 1000.00 damage of attack type Chaos and damage type Divine
        Unit - Set life of (Target unit of ability being cast) to 100.00%
        Unit - Set mana of (Target unit of ability being cast) to 100.00%
        Unit - Remove Negative buffs from (Target unit of ability being cast)

Something like that
 

morcius

New Member
Reaction score
1
That works perfect :

Code:
Last Wish
    Events
        Unit - A unit Starts the effect of an ability
    Conditions
        (Ability being cast) Equal to Last Wish 
        (Life of (Triggering unit)) Greater than 1000.00
    Actions
        Unit - Cause (Triggering unit) to damage (Triggering unit), dealing 1000.00 damage of attack type Chaos and damage type Divine
        Unit - Set life of (Target unit of ability being cast) to 100.00%
        Unit - Set mana of (Target unit of ability being cast) to 100.00%
        Unit - Remove Negative buffs from (Target unit of ability being cast)

BUT if i use ability it still uses only do nothing how can i fix it ?
 

darkRae

Ueki Fan (Ueki is watching you)
Reaction score
173
I think you don't need the

(Life of (Triggering unit)) Greater than 1000.00

I think you need another trigger like :

Code:
Last Wish checker
    Events
      Unit A unit Begins casting an ability
    Conditions
      (Ability being cast) Equal to Last Wish
    Actions
      If (All Conditions are True) then do (Then Actions) else do (Else Actions)
         If - Conditions
           (Life of (Casting Unit)) less than 1001.00
        Then - Actions
           Unit - Order (Casting unit) to Stop
           Game - Display to (Player group((Owner of (Casting unit)))) for x seconds the text: You can't cast this while your life is under 1001.
           Sound - Play error sound
        Else - Actions
           Do nothing

This should work. So it checks when the unit begins casting the spell. If the unit's life is under 1001 it will be ordered to stop and it won't cast the spell (the Mana won't be wasted and Cooldown won't fire)

Other than that this code below is still needed, so there'll be 2 codes. Btw I did this hurriedly so I might do something wrong. Anyway, just try this first.

Code:
Last Wish
    Events
        Unit - A unit Starts the effect of an ability
    Conditions
        (Ability being cast) Equal to Last Wish 
    Actions
        Unit - Cause (Triggering unit) to damage (Triggering unit), dealing 1000.00 damage of attack type Chaos and damage type Divine
        Unit - Set life of (Target unit of ability being cast) to 100.00%
        Unit - Set mana of (Target unit of ability being cast) to 100.00%
        Unit - Remove Negative buffs from (Target unit of ability being cast)
 

darkRae

Ueki Fan (Ueki is watching you)
Reaction score
173
No problem (hey, somebody finally said perfect to me :p lol)
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top