making a transform ability dont know how!!

spirits

New Member
Reaction score
0
the transformation trigger Copy
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to war spirits
Actions
Unit - Remove (Triggering unit) from the game
Unit - Replace (Triggering unit) with a THErapist using The old unit's relative life and mana


well its supposed to transform this hero into another one but instead its replacing it with the original and the new one helpp pleaseee

oh and this is the other hero trigger to transform into the one above

the transformation trigger
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to war spirits
Actions
Unit - Remove (Triggering unit) from the game
Unit - Replace (Triggering unit) with a Maiev using The old unit's relative life and mana
 

vypur85

Hibernate
Reaction score
803
Code:
Unit - Remove (Triggering unit) from the game

Why do you remove Triggering unit? No need to add this action. Remove it. The replace action will 'remove' the Triggering unit automatically.


Try this:
Code:
Events
  Unit - A unit Starts the effect of an ability
Conditions
  (Ability being cast) Equal to war spirits
Actions
  If then else
     Condition
        Unit-type of (Triggering unit) Equal to [B]Maiev[/B]
     Then - Actions
        Unit - Replace (Triggering unit) with a THErapist using The old unit's relative life and mana
     Else - Actions
        Unit - Replace (Triggering unit) with a Maiev using The old unit's relative life and mana

Anyway, you can always use Metamorphosis, Bear Form etc... Any reason why not using?
 

spirits

New Member
Reaction score
0
well im not using metamorph cause i wanted to have 2 different skill sets (maive is melee and tehrapist is ranged. so they transform into each other)

okay well im looking at your trigger and it says

else replace with the maive?

let me try to explain my spell more clearly. when im maive and cast war spirits it is supposed to transform my hero into the range hero(with different skill set)

your trigger which i havent tried yet says once maive casts the spell then replace with the range hero(the rapist llol)

but your else statment does it have to be there or is it needed?

woah didnt see your bear form idea maybe ill try that if no one else can help

and it works for 2 tries

from melee to range it works then in my range form it works turning into melee but from melee it cant(i think its cause of the thing "equal to maive that has been generarted or placed on map. any way to pick all maives that do it makes the spell go?)
 

vypur85

Hibernate
Reaction score
803
Hmmm... Let me explain my trigger.

You have 2 different unit-types, Maiev and Rapist (=.="). Both these units have War Spirits.

My trigger works like:

If Maiev casts War Spirits, then it will morph to Rapist.

Else, if not Maiev cast War Spirit (meaning Rapist because there are no other units having War Spirits besides Rapist), then it will morph to Maiev.


So the trigger should work as I think you wanted?

Edit:
Anyway, to avoid confusion, you can also use this:

Code:
Events
  Unit - A unit Starts the effect of an ability
Conditions
  (Ability being cast) Equal to war spirits
Actions
  If then else
     Condition
        Unit-type of (Triggering unit) Equal to [B]Maiev[/B]
     Then - Actions
        Unit - Replace (Triggering unit) with a THErapist using The old unit's relative life and mana
     Else - Actions
  If then else
     Condition
        Unit-type of (Triggering unit) Equal to [B]THErapist[/B]
     Then - Actions
        Unit - Replace (Triggering unit) with a Maiev using The old unit's relative life and mana
     Else - Actions
 

spirits

New Member
Reaction score
0
nvm i see how it works :p
but it works to a point from melee to range then back to melee but it doesnt work anymore
 

vypur85

Hibernate
Reaction score
803
> range then back to melee but it doesnt work anymore

Not sure. Could probably be a bug. Also, try to define 'doesn't work'. You could've done something wrong in your trigger. Post your most current trigger.
 

needsthehelp

New Member
Reaction score
6
Change triggering unit to "Casting unit

Code:
the transformation trigger Copy
    Events
        Unit - A unit Starts the effect of an ability
    Conditions
        (Ability being cast) Equal to war spirits 
    Actions
        Unit - Remove (Casting unit)) from the game
        Unit - Replace (Casting unit)) with a THErapist using The old unit's relative life and mana

Code:
Maiev
    Events
        Unit - A unit Starts the effect of an ability
    Conditions
        (Ability being cast) Equal to war spirits 
    Actions
        Unit - Remove (Casting unit) from the game
        Unit - Replace (Casting unit)) with a Maiev using The old unit's relative life and mana
 

Lyle.

New Member
Reaction score
32
Do these units need different skills?
Do they need a cooldown on their transformation skill?

Also as vypur said, you don't need to remove the unit.
 

vypur85

Hibernate
Reaction score
803
> Change triggering unit to "Casting unit

This will not make it any better. It may only make it worse. Triggering unit is the best event response used whenever possible.
 

spirits

New Member
Reaction score
0
the transformation trigger Copy
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to war spirits
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Triggering unit) Equal to Maiev 0001 <gen>
Then - Actions
Unit - Replace (Triggering unit) with a THErapist using The old unit's relative life and mana
Else - Actions
Unit - Replace (Triggering unit) with a Maiev using The old unit's relative life and mana

when it says in the if action condition it says triggering unit = to maive is there a way to change maive into all heroes that are maive instead of the spiecific one cause i think thats why its not working after i double switch
 

vypur85

Hibernate
Reaction score
803
No wonder... :p You did something wrong. Don't use pre-placed units as comparison in your condition. Use Unit-Type Comparison. In this case, it should be Maiev.

Code:
Event
  Unit - A unit Starts the effect of an ability
Conditions
  (Ability being cast) Equal to war spirits
Actions
 If (All Conditions are True) then do (Then Actions) else do (Else Actions)
  If - Conditions
   [B]Unit-type of (Triggering unit) Equal to Maiev[/B] <-- [I]Maiev!!![/I]
  Then - Actions
   Unit - Replace (Triggering unit) with a THErapist using The old unit's relative life and mana
  Else - Actions
   Unit - Replace (Triggering unit) with a Maiev using The old unit's relative life and mana

Now try to get the above trigger. It should work after that.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      • Ghan
        Administrator - Servers are fun

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top