Bear Form Mana Costs

joshlau7

New Member
Reaction score
0
Is there a way to make a mana cost for transforming in one direction but not in the other direction? (I'm using bear form for transformation btw)

For example:
Unit A -> Transforms into Unit B (Costs 400 Mana)
Unit B -> Transforms back into Unit A (No mana cost)

The only thing i see is "stats: mana cost" in the world editor, which affects both mana costs equally.
 

Carnerox

The one and only.
Reaction score
84
A possibility is to set mana to 0, then when casting switch form trigger it to remove 400 mana.

Trigger:
  • Melee Initialization
    • Events
      • Unit - A unit Is issued an order with no target
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Issued order) Equal to Night Elf Druid Of The Claw - Bear Form
          • (Mana of (Triggering unit)) Greater than or equal to 400.00
        • Then - Actions
          • Unit - Set mana of (Triggering unit) to ((Mana of (Triggering unit)) - 400.00)
        • Else - Actions
 

educator

New Member
Reaction score
9
A possibility is to set mana to 0, then when casting switch form trigger it to remove 400 mana.

Trigger:
  • Melee Initialization
    • Events
      • Unit - A unit Is issued an order with no target
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Issued order) Equal to Night Elf Druid Of The Claw - Bear Form
          • (Mana of (Triggering unit)) Greater than or equal to 400.00
        • Then - Actions
          • Unit - Set mana of (Triggering unit) to ((Mana of (Triggering unit)) - 400.00)
        • Else - Actions


does this stop the unit from casting the spell if it does'n't have enough mana?
 

Bankde

Member
Reaction score
20
Yes It Is. Check the IF-CONDITION

Trigger:
  • (Mana of (Triggering unit)) Greater than or equal to 400.00
 

Ghan

Administrator - Servers are fun
Staff member
Reaction score
893
> Yes It Is.

No it doesn't. It only makes the check, but does not stop the ability from working if the check fails. It just skips over removing the mana.
 

Bankde

Member
Reaction score
20
What if we change event to start casting ability ? And if no mana order unit to stop.
 

tommerbob

Minecraft. :D
Reaction score
110
Just put the mana condition as a condition for the Trigger, instead of inside the If/Then/Else.
 

Ghan

Administrator - Servers are fun
Staff member
Reaction score
893
> Just put the mana condition as a condition for the Trigger

None of that makes a difference. The trigger has nothing to do with the ability itself since it doesn't stop the unit from using the ability if the condition is not met.

> And if no mana order unit to stop.

Yes.
A possible solution would be to use a Starts Casting event and then in the "Else" portion of the trigger, order the Triggering Unit to Stop. That might prevent them from going through with the ability, though I'm not positive.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top