Need Trigger Help Fast!

Da Kommodor

New Member
Reaction score
1
So I have a unit that uses an altered Stone Form ability to turn into another unit (obviously)
My goal is this:
Unit A casts stone form and turns into unit B
If unit B's mana ever reaches 0 it will automatically cast stone form and revert to unit A

Im having trouble with the "running out of mana turns you back" trigger.
Any help would be greatly appreciated :thup:
 

VehnZ

New Member
Reaction score
0
im not sure how u gt do it..
but you can use parts of illidan's skill Metamorphosis..
i dont know the details of that skill but it has something which can change the model of the unit which casts it into another..
 

Da Kommodor

New Member
Reaction score
1
im not having trouble with the metamorphosis part. That's easy. Im having trouble making it so unit B will revert to unit A when its mana=zero
 

ManyTimes

I'm so lonesome I could cry...
Reaction score
293
Code:
Untitled Trigger 003
    Events
        Time - Every 0.50 seconds of game time
    Conditions
        (Max life of Paladin 0006 <gen>) Less than 1.00
    Actions
        Unit - Order Paladin 0006 <gen> to Undead Gargoyle - Gargoyle Form
Assuming paladin has the ability.
 

Da Kommodor

New Member
Reaction score
1
ah, of course i forgot to mention that the unit that has this ability, is trained from a structure.
doesn't start the game on the field *sorry*:eek:
 

ManyTimes

I'm so lonesome I could cry...
Reaction score
293
Code:
Untitled Trigger 004
    Events
        Unit - A unit Starts the effect of an ability
    Conditions
        (Ability being cast) Equal to Stone Form
    Actions
        Unit Group - Add (Triggering unit) to UnitsCreatedFroMStructure
He morphs, add him to a group, "unit group"-variable...

Code:
Untitled Trigger 005
    Events
        Time - Every 0.50 seconds of game time
    Conditions
    Actions
        Unit Group - Pick every unit in UnitsCreatedFroMStructure and do (Actions)
            Loop - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        (Mana of (Picked unit)) Less than 1.00
                    Then - Actions
                        Unit - Order (Picked unit) to Undead Gargoyle - Gargoyle Form
                        Unit Group - Remove (Picked unit) from UnitsCreatedFroMStructure
                    Else - Actions
Pick all units in the UnitGroup-variable, if mana of picked unit...
 

Da Kommodor

New Member
Reaction score
1
good, that worked thank you very much.

Now another thing *sigh* why wont siphon mana target my allies to tranfer mana to them?
I even changed the targets to allow friends and allies?

I cast on an ally and it says "must target an enemy"
 

hgkjfhfdsj

Active Member
Reaction score
55
there is a gameplay constant you have to change (cant remember on top of my head what it was called)
 

ManyTimes

I'm so lonesome I could cry...
Reaction score
293
Scenario > Advanced gameplay constants > Gameplay - Drain transfers mana
 
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