[help]trigger

FoxWizzy

New Member
Reaction score
3
i am working on a spell :
1)hero summons a unit
2)summoned unit cast's a spell (only if mana of summoning hero greater then xxx)

the problem is that after the summon unit dyes and i resummon it it ignores the xxx mana condition and cast's the spell

Trigger:
  • CS
    • Events
      • Unit - A unit starts the effect of an ability
    • Conditions
      • (Ability beaing cast) Equal to CS
    • Actions
      • If (All conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Mana of Unit[99]) Greater than 500.00
        • Then - Actions
          • Unit - Set mana of Unit[99] to ((Procentage mana of Unit[99]) - 50.00)%
        • Else - Actions
          • Unit - Order (Casting Unit) to Stop

unit[99] is the summoning hero
 

Bogrim

y hello thar
Reaction score
154
What is the spell the summoned unit is trying to cast?

Otherwise try and enable/disable the summon's ability for the player depending on the hero's mana.
 

N(O.O)B

New Member
Reaction score
27
Odds are the bug is in a different trigger, probably in the trigger where Unit[99] is set to the casting unit. Post that as well, please ;)
 

_Famous

New Member
Reaction score
1
i am working on a spell :
1)hero summons a unit
2)summoned unit cast's a spell (only if mana of summoning hero greater then xxx)

the problem is that after the summon unit dyes and i resummon it it ignores the xxx mana condition and cast's the spell

Trigger:
  • CS
    • Events
      • Unit - A unit starts the effect of an ability
    • Conditions
      • (Ability beaing cast) Equal to CS
    • Actions
      • If (All conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Mana of Unit[99]) Greater than 500.00
        • Then - Actions
          • Unit - Set mana of Unit[99] to ((Procentage mana of Unit[99]) - 50.00)%
        • Else - Actions
          • Unit - Order (Casting Unit) to Stop

unit[99] is the summoning hero



dont like it .. make the hero as a variable and make

When the Unit (summoned) enters a area = entire map

mfg _Famous !!
 

FoxWizzy

New Member
Reaction score
3
Trigger:
  • Void
    • Events
      • Unit - A unit Spawns a summoned unit
    • Conditions
      • Or - Any (Conditions) are true
        • Conditions
          • (Unit-type of (Summoned unit)) Equal to Void (level 2)
          • (Unit-type of (Summoned unit)) Equal to Void (level 3)
    • Actions
      • Set Unit[99] = (Summoning Unit)
 

_Famous

New Member
Reaction score
1
Trigger:
  • Void
    • Events
      • Unit - A unit Spawns a summoned unit
    • Conditions
      • Or - Any (Conditions) are true
        • Conditions
          • (Unit-type of (Summoned unit)) Equal to Void (level 2)
          • (Unit-type of (Summoned unit)) Equal to Void (level 3)
    • Actions
      • Set Unit[99] = (Summoning Unit)

does it work now?
is it for me? ^^

erm if not .. pls
unit enters entire map = unit type (ur Unit u wish)
use that function
 

FoxWizzy

New Member
Reaction score
3
i had to remake the triggers to see the problem :)
in my CS trigger i have a set unit[98] = casting unit i had that set in the if - then - else :)
i moved it out and now it is working ok :)
 
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