learn spell

DragonBlade

Member
Reaction score
0
i have a problem with a trigger
i want to do a trigger, when a unit start channeling a ability, to learn a spell.. right now it work
but if i want to start the some channeling ability and the unit have that spell to level up the spell?
 

Accname

2D-Graphics enthusiast
Reaction score
1,464
BEWARE HANDWRITTEN!!!

Trigger:
  • SomeTrigger
    • Events
      • Unit - A unit starts the effect of an ability
    • Conditions
      • (ability being) cast Equal LearnSomeSpellAbility
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If Condition
          • (Level of (SomeSpell) for (Triggering Unit)) Equal 0
        • Then Action
          • Unit - Add SomeSpell to (Triggering Unit)
        • Else Action
          • Unit - Increase level for SomeSpell for (Triggering Unit)
 

DragonBlade

Member
Reaction score
0
thx:D

but now i have a problem...
with only this trigger:
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Level of Taunt for (Casting unit)) Equal to 0
Then - Actions
Unit - Add Taunt to (Casting unit)
Else - Actions
Do nothing


it learn directly the lvl 2 of spell...
 

educator

New Member
Reaction score
9
if im right u want the "taunt" ability to level up when it gets cast so...
events
a unit starts the effect of an ability
conditions
(ability being cast) equal to ("taunt")
(level of "taunt" for(casting unit) less than or equal to (the ability maximum level)
actions
--this is the bit i would usualy get confused with--
set (level of "taunt" for (casting unit) to (level of "taunt" for (casting unit) + 1

and it should look something like that. all these things exist but maybe not worded right or are hard to find... GOOD LUCK
 

DragonBlade

Member
Reaction score
0
i want a trigger which do:
if the unit don't have the Taunt spell to learn the spell
if the unit have the the taunt spell to increase level of spell
if the unit have the max level of taunt spell to do nothing

but never mind i done it
 
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