Metamorphosis help

LostFlip

New Member
Reaction score
0
Hi, im new to the forums, im a basic (noob) map creator who makes simple triggers like unit enters region and goes to the region..
I was making a metamorphosis-like skill on a custom hero, i made a unit to be the one morphed into (lets name it morph). then when hero (named <M>) uses the skill, he morphs into himself, being the <M> he is and having a timer and having 1 skill point, it shows that he could not get level 6 spells so that means his level 1. after its life timer, he turns into morph with a timer like <M>'s, they had same seconds.
then after the duration he returns into a level 1 <M> on that position. can someone help me?
ill be on and watching this thread.
 

Moridin

Snow Leopard
Reaction score
144
Save the level of the hero in both stages in variables and use:

Hero - Set Level of Hero

to set them to their proper levels when the ability is cast.
 

LostFlip

New Member
Reaction score
0
Save the level of the hero in both stages in variables and use:

Hero - Set Level of Hero

to set them to their proper levels when the ability is cast.

oshi, i forgot that the morph guy isnt a hero. >_> (changing it to a hero when i have time)

and oh yeah, remember, im new, so i dont know how to save level of hero yet.
 

Moridin

Snow Leopard
Reaction score
144
Alright. You know what the trigger editor can do to some level at least. What you have to do (in steps):

1) Open the Trigger Editor
2) Open the Variable Editor. The icon is an 'X'.
3) Create a new variable of type Integer, that is NOT an array. You can name it whatever you want, I'm going to call it Int for now.
4) Click ok until you're back in the trigger editor.
5) Make a new trigger.
6) Use the event: Unit - Generic unit event:- Unit - A unit starts the effect of an ability.
7) OK
8) Add a condition (Ability conditions): (Ability being cast) Equal to (your ability)

9) In the actions tab now
10) New Action: Tap the S key on your keyboard, you get a Set Variable command.
11) Click variable, choose your new integer variable.
12) Click the red/blue Value that shows up.
13) Open the functions drop down menu, and choose Unit - Level of unit or whatever looks like it (I forget the exact wording).
14) If the unit is (Triggering unit), leave it...if it isn't, click it and change it to Event Response - Triggering unit.

And there you have it. Now the level will be saved whenever you cast that ability. All you have to do now, is use the actions:

Hero - Set level of hero

along with another trigger, to revert the hero back to his proper level.
 

LostFlip

New Member
Reaction score
0
Alright. You know what the trigger editor can do to some level at least. What you have to do (in steps):

1) Open the Trigger Editor
2) Open the Variable Editor. The icon is an 'X'.
3) Create a new variable of type Integer, that is NOT an array. You can name it whatever you want, I'm going to call it Int for now.
4) Click ok until you're back in the trigger editor.
5) Make a new trigger.
6) Use the event: Unit - Generic unit event:- Unit - A unit starts the effect of an ability.
7) OK
8) Add a condition (Ability conditions): (Ability being cast) Equal to (your ability)

9) In the actions tab now
10) New Action: Tap the S key on your keyboard, you get a Set Variable command.
11) Click variable, choose your new integer variable.
12) Click the red/blue Value that shows up.
13) Open the functions drop down menu, and choose Unit - Level of unit or whatever looks like it (I forget the exact wording).
14) If the unit is (Triggering unit), leave it...if it isn't, click it and change it to Event Response - Triggering unit.

And there you have it. Now the level will be saved whenever you cast that ability. All you have to do now, is use the actions:

Hero - Set level of hero

along with another trigger, to revert the hero back to his proper level.

thanks, imma give this a shot when i have time.
 
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