Morph problem

Mealstorm

Member
Reaction score
2
Hello, I have used trigger which give to demon hunter at lvl 50 multi shackles. But when I have used demon that spell fade, so I made trigger which give multi shackles when he use demon form. But when he morph back to demon hunter it fades too... I don't know how to make trigger which give him multi shackles when morph back to demon hunter.
 
D

DsD)Core(

Guest
You could try using a boolean for safety? I don't know what exactly you're saying, could you describe it a little more detailled?
 

Mealstorm

Member
Reaction score
2
okay
I have made trigger - when demon hunter reach lvl 50 he get spell mass shackle.

But when demon hunter transform to demon form he lose mass shackle.
I have made trigger which give him mass shackle every transform to demon form if he have 50 lvl.

But when demon form ends and he transform back to demon hunter he lose mass shackle again.

So I want to make trigger which will give him mass shackle when he transform from demon form to demon hunter.
 

nabbig2

New Member
Reaction score
43
Does the Alternate form that he transforms into have the shackles ability? If not, give it to him.
 

Mealstorm

Member
Reaction score
2
1st demon form lvl 8 is on 48 lvl I dont want to have this ability on 48 lvl but 50
2nd problem is when he use demon and then he tranform back (in demon form he has shackles)
 

saw792

Is known to say things. That is all.
Reaction score
280
May I ask how you added the ability to the morphed demon hunter (after Metamorphosis is activated)? As in what triggers you used?
 

Mealstorm

Member
Reaction score
2
I made 3 trigger 1st is to get spell on lvl 50
Events
Unit - A unit Gains a level
Conditions
(Unit-type of (Triggering unit)) Equal to Demon Hunter
(Hero level of (Triggering unit)) Equal to 50
Actions
Unit - Add Multi Shakles [E] to (Triggering unit)

2nd is to get spell on 50 lvl in demon form
Events
Unit - A unit Gains a level
Conditions
(Unit-type of (Triggering unit)) Equal to Demon Hunter (Demon Form)
(Hero level of (Triggering unit)) Equal to 50
Actions
Unit - Add Multi Shakles [E] to (Triggering unit)

3rd is to get spell when transform into demon form
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Metamorphosis
(Hero level of (Triggering unit)) Equal to 50
Actions
Unit - Add Multi Shakles [E] to (Triggering unit)
 

denmax

You can change this now in User CP.
Reaction score
155
Hello, I have used trigger which give to demon hunter at lvl 50 multi shackles. But when I have used demon that spell fade, so I made trigger which give multi shackles when he use demon form. But when he morph back to demon hunter it fades too... I don't know how to make trigger which give him multi shackles when morph back to demon hunter.

It wouldn't automatically add multi-shackles since because it is added on lvl 50.

You'd have to add it every time the demon form ends..
 

saw792

Is known to say things. That is all.
Reaction score
280
The problem I've been trying to work out is how to detect when demon form ends?
 

denmax

You can change this now in User CP.
Reaction score
155
I know but I dont know how to do it.

Code:
Events
-Starts the effect of an ability
Conditions
-ability being cast equal to [ur morph]
Actions
-wait blablabla(duration of morph spel) seconds
-add [mass shackles] to triggering unit

*OPTIONAL*
Code:
Events
Unit dies
Condtions
unit has [ur morph spell's buff] buff equal to true
Actions
-add [mass shackles] to triggering unit

of course untested..
 

Mealstorm

Member
Reaction score
2
Code:
Events
-Starts the effect of an ability
Conditions
-ability being cast equal to [ur morph]
Actions
-wait blablabla(duration of morph spel) seconds
-add [mass shackles] to triggering unit

I tried this.. It have 2 problems..
1st - Trigger that give multi shackle when he tranform into demon form stopped work
2nd - If he get lvl 50 when he is in demon. After end of demon form he doens have multi shackle.
 

Mealstorm

Member
Reaction score
2
I think it needs trigger that will give multi shackle when is demon form ending. Not xx secs after use demon form, because it makes trigger (which is giving multi shackle when tranforming into demon) doesnt work.
 

vypur85

Hibernate
Reaction score
803
The problem is because you added the ability in-game. To fix this, you need to add your Multi Shack to your unit (both alternate and normal forms) in Object Editor. Then disable the ability in the beginning of the game. Enable it again when the level reaches 50.

Code:
Disable
    Events
        Map initialization
    Conditions
    Actions
        Player Group - Pick every player in (All players) and do (Actions)
            Loop - Actions
                Player - Disable Multi Shacks  for (Picked player)

Code:
Enable
    Events
        Unit - A unit Gains a level
    Conditions
        (Hero level of (Triggering unit)) Equal to 50
        (Unit-type of (Triggering unit)) Equal to YourHeroType
    Actions
        Player - Enable Multi Shacks  for (Owner of (Triggering unit))

This is, however, only MPI. It won't work if multiple units have the same ability. Make sure the Multi Shacks ability is added to the units in Object Editor.
 
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