remember mana levels for morph

reinhardt

New Member
Reaction score
0
hi. i was wondering if a kind person would help me with some trigger code to remember what a units mana levels are then a trigger to set them back to that amount.. basically for a shapeshifting unit.
thanks in advance
 

Templarion

Member
Reaction score
8
Pardon me? Are you asking this:

"You need a trigger that remembers unit's mana level and can restore the same mana level, when unit's shapeshifting time is out?"
 

reinhardt

New Member
Reaction score
0
Templarion said:
Pardon me? Are you asking this:

"You need a trigger that remembers unit's mana level and can restore the same mana level, when unit's shapeshifting time is out?"

sorry for not being clear, but yes thats all correct but the shapeshifting is on/off and not timed
i understand you may not have ment timed shapeshift.

while in morphed form the hero will not be able to cast mana dependant spells u see, and when he morphs back to caster he can
 

reinhardt

New Member
Reaction score
0
i was thinking, i actually need a looping on/off variable to make this work before i can add in that trigger section. because the basis for my morphing unit is metermorphesis the shapeshifting ability cannot be changed (to my experience) between forms so i need to add a counter; on/off/on/off etc for that specific unit to tell what form it is in if you see what i mean.

damn this is getting confusing :(
 

reinhardt

New Member
Reaction score
0
basing it off Gargoyle morph now and its working better, still cant figure out how to remember mana values tho
 

Jazradel

Helping people do more by doing less.
Reaction score
102
Code:
Unit Starts casting an ability

Ability being cast is equal to Morph
hasshifted is equal to false

Set mana(integer variable) to Property - Mana of casting unit
Set hasshifted = true

Code:
Unit finishes casting an ability

Ability being cast is equal to Morph
Set hasshifted = false

Set property mana of casting unit to mana
 
D

Dipski

Guest
Why do you have "set hasshifted equal to true" on BOTH of them?
 

Jazradel

Helping people do more by doing less.
Reaction score
102
Woops. I fixed that quickly enough though. Sorry for the rough Syntax by the way.
 
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