• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

How would i do this?

Status
Not open for further replies.
Level 5
Joined
Aug 8, 2008
Messages
113
I was wondering how to code it so when you eat a mushroom you replenish mana and when you eat a tree you replenish life????
 
Level 12
Joined
Apr 16, 2010
Messages
584
You need to be a little more specific here, lets say to eat you use what? An ability? Or just right click onto object? Since i don't know exactly what i need i'll show you simple trigger which uses the event when unit casts an ability:
  • Untitled Trigger 001
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Ability being cast) Equal to Eat Tree
        • Then - Actions
          • Unit - Set life of (Triggering unit) to ((Life of (Triggering unit)) + '"Your amount of added life")
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Ability being cast) Equal to Eat Mushroom
            • Then - Actions
              • Unit - Set mana of (Triggering unit) to ((Mana of (Triggering unit)) + "Your amount of added mana")
            • Else - Actions
 
Level 28
Joined
Jan 26, 2007
Messages
4,789
There's already a spell to eat trees... it's called "Eat Tree", and it replenishes HP.

For the mana, you can create a new unit based off a ward (like the Sentry Ward) and turn it into a mushroom.
Then create a new spell based off Channel, set options to "Visible", Target Type to "Unit Target" and Targets allowed to "Ward" (Art duration and Follow Through Time should both be 0.00).

Then add the trigger:
  • Eat Mushroom
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Eat Mushroom
    • Actions
      • Unit - Kill (Target unit of ability being cast)
      • Unit - Set mana of (Triggering unit) to ((Mana of (Triggering unit)) + 100.00)
And you're done.
 
Level 12
Joined
Apr 16, 2010
Messages
584
Unit - Kill (Target unit of ability being cast)
But he wants to eat a mushroom and i'm sure mushroom isn't a unit=) Destructible probably.
  • Untitled Trigger 001
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Eat Mushroom
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Target destructible of ability being cast) Equal to Mushroom
        • Then - Actions
          • Unit - Set mana of (Triggering unit) to ((Mana of (Triggering unit)) + 50.00)
        • Else - Actions
 
Level 28
Joined
Jan 26, 2007
Messages
4,789
Unit - Kill (Target unit of ability being cast)
But he wants to eat a mushroom and i'm sure mushroom isn't a unit=) Destructible probably.
I already answered this:
ap0calypse said:
For the mana, you can create a new unit based off a ward (like the Sentry Ward) and turn it into a mushroom.

Units are far easier to work with.
 
Level 5
Joined
Aug 8, 2008
Messages
113
Mushrooms are undground, outland and dungeon trees.. Here is what I have so far from what was suggested but it doesn't work.

  • Untitled Trigger 001
    • Events
      • Unit - Paladin 0000 <gen> Starts the effect of an ability
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Ability being cast) Equal to Eat a tree
        • Then - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Destructible-type of (Target destructible of ability being cast)) Equal to Outland Tree Wall
            • Then - Actions
              • Set Countdown1 = 15
            • Else - Actions
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Ability being cast) Equal to Eat a tree
        • Then - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Destructible-type of (Target destructible of ability being cast)) Equal to Dungeon Tree Wall
            • Then - Actions
              • Set Countdown1 = 15
            • Else - Actions
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Ability being cast) Equal to Eat a tree
        • Then - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Destructible-type of (Target destructible of ability being cast)) Equal to Ashenvale Tree Wall
            • Then - Actions
              • Set Countdown2 = 15
            • Else - Actions
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Ability being cast) Equal to Eat a tree
        • Then - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Destructible-type of (Target destructible of ability being cast)) Equal to Underground Tree Wall
            • Then - Actions
              • Set Countdown1 = 15
            • Else - Actions
        • Else - Actions

  • Untitled Trigger 002 Copy
    • Events
      • Time - Every 2.00 seconds of game time
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Countdown2 Greater than or equal to 1
        • Then - Actions
          • Set Countdown1 = (Countdown1 - 1)
          • Unit - Set life of (Triggering unit) to ((Life of (Triggering unit)) + 15.00)
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Countdown1 Greater than or equal to 1
        • Then - Actions
          • Unit - Set mana of (Triggering unit) to ((Mana of (Triggering unit)) + 15.00)
          • Set Countdown1 = (Countdown1 - 1)
        • Else - Actions
 
Level 28
Joined
Jan 26, 2007
Messages
4,789
Woah, yeah... that's not MUI :p
Aaand it could all be combined into something more efficient (by using "or").

I didn't know you were planning to make it regenerate over time, in that case you'll need a different approach:
Instead of triggering everything, why don't you create a spell based on item scrolls and use that on the unit eating the tree/mushroom?
Item scrolls regenerate mana/health over time, so that would mean there's no need for the second trigger at all: just order the unit to cast that spell (give spell to unit, order unit to cast spell, remove spell from unit).
 
Level 5
Joined
Aug 8, 2008
Messages
113
Woah, yeah... that's not MUI :p
Aaand it could all be combined into something more efficient (by using "or").

I didn't know you were planning to make it regenerate over time, in that case you'll need a different approach:
Instead of triggering everything, why don't you create a spell based on item scrolls and use that on the unit eating the tree/mushroom?
Item scrolls regenerate mana/health over time, so that would mean there's no need for the second trigger at all: just order the unit to cast that spell (give spell to unit, order unit to cast spell, remove spell from unit).

how do you order a unit to cast a spell?
 
Level 12
Joined
Apr 16, 2010
Messages
584
MUI means Multi Unit Instances. Which means that more then one unit can cast a spell at the same time without causing any bugs. I would suggest to start learning MUi with [self="http://www.hiveworkshop.com/forums/trigger-gui-editor-tutorials-279/multi-instancible-gui-spell-making-34393/"]this[/self] tutorial, though a lot of people, and me, learn MUI from another spells, that are MUI ofc.
squelch said:
and is there a way to code it without using items?
Yeah order a unit to cast a spell :p But i'm not sure if it will work for items, or whatever you're trying to do there, ap0calypse said it too!
 
Level 5
Joined
Aug 8, 2008
Messages
113
now whenever I eat mushrooms it wont eat the ashenvale trees?

but it heals and replenishes
  • Untitled Trigger 001
    • Events
      • Unit - Paladin 0000 <gen> Starts the effect of an ability
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Ability being cast) Equal to Eat a tree
        • Then - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Destructible-type of (Last created destructible)) Equal to Dungeon Tree Wall) and (((Destructible-type of (Last created destructible)) Equal to Outland Tree Wall) and ((Destructible-type of (Last created destructible)) Equal to Underground Tree Wall))
              • (Destructible-type of (Target destructible of ability being cast)) Equal to Outland Tree Wall
            • Then - Actions
              • Unit - Add Replenish Mana to (Triggering unit)
              • Unit Group - Order (Units in (Playable map area)) to Night Elf Druid Of The Claw - Rejuvenation Paladin 0000 <gen>
              • Unit - Remove Replenish Mana from (Triggering unit)
            • Else - Actions
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Ability being cast) Equal to Eat a tree
        • Then - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Destructible-type of (Target destructible of ability being cast)) Equal to Ashenvale Tree Wall
            • Then - Actions
              • Unit - Add Replenish Life to (Triggering unit)
              • Unit Group - Order (Units in (Playable map area)) to Night Elf Druid Of The Claw - Rejuvenation Paladin 0000 <gen>
              • Unit - Remove Replenish Life from (Triggering unit)
            • Else - Actions
        • Else - Actions
 
Level 5
Joined
Aug 8, 2008
Messages
113
You leak a group. Add custom script: set bj_wantDestroyGroup = true before the Unit Group - Order ...
And do you need to order every unit in map to replenish? or just one? If one, the order to cast a spell is under section "Unit"

Explain a bit more please...

the ability would destroy one tree but not the other but I fixed that... I needed to set the trees as a group in an "if then" statement before putting them in solo "if then" statements. Now I am truly lost I have tried everything and the healing won't activate here is my script so far.

  • Untitled Trigger 001 Copy 2
    • Events
      • Unit - Paladin 0000 <gen> Starts the effect of an ability
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Ability being cast) Equal to Eat a tree
        • Then - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Destructible-type of (Last created destructible)) Equal to Ashenvale Tree Wall) or (((Destructible-type of (Last created destructible)) Equal to Outland Tree Wall) or (((Destructible-type of (Last created destructible)) Equal to Dungeon Tree Wall) or ((Destructible-type of (Last created destructible)) Equal to Ashenvale Tree Wall)))
            • Then - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (Destructible-type of (Target destructible of ability being cast)) Equal to Dungeon Tree Wall
                • Then - Actions
                  • Set Point = (Target point of ability being cast)
                  • Unit - Create 1 Druid of the Claw (Mana) for Player 1 (Red) at Point facing (Position of Paladin 0000 <gen>)
                  • Unit - Add Replen Mana Mush to (Last created unit)
                  • Unit - Set level of Replen Mana Mush for (Last created unit) to 1
                  • Custom script: set bj_wantDestroyGroup = true
                  • -------- e001 = dummy unit --------
                  • -------- a007 = replenish mana --------
                  • Custom script: call GroupTargetOrderBJ( GetUnitsOfTypeIdAll('e001'), "A007", gg_unit_Hpal_0000 )
                  • Custom script: call RemoveLocation (udg_Point)
                • Else - Actions
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • If - Conditions
                      • (Destructible-type of (Target destructible of ability being cast)) Equal to Underground Tree Wall
                    • Then - Actions
                      • Set Point = (Target point of ability being cast)
                      • Unit - Create 1 Druid of the Claw (Mana) for Player 1 (Red) at Point facing (Position of Paladin 0000 <gen>)
                      • Unit - Add Replen Mana Mush to (Last created unit)
                      • Unit - Set level of Replen Mana Mush for (Last created unit) to 1
                      • Custom script: set bj_wantDestroyGroup = true
                      • Custom script: call GroupTargetOrderBJ( GetUnitsOfTypeIdAll('e001'), "A007", gg_unit_Hpal_0000 )
                      • Custom script: call RemoveLocation (udg_Point)
                    • Else - Actions
                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                        • If - Conditions
                          • (Destructible-type of (Target destructible of ability being cast)) Equal to Ashenvale Tree Wall
                        • Then - Actions
                          • Set Point = (Target point of ability being cast)
                          • Unit - Create 1 Druid of the Claw (Life) for Player 1 (Red) at Point facing (Position of Paladin 0000 <gen>)
                          • Unit - Add Replenish Life to (Last created unit)
                          • Unit - Set level of Replenish Life for (Last created unit) to 1
                          • Custom script: set bj_wantDestroyGroup = true
                          • Custom script: call GroupTargetOrderBJ( GetUnitsOfTypeIdAll('e000'), "A006", gg_unit_Hpal_0000 )
                          • Custom script: call RemoveLocation (udg_Point)
                        • Else - Actions
                          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                            • If - Conditions
                              • (Destructible-type of (Target destructible of ability being cast)) Equal to Outland Tree Wall
                            • Then - Actions
                              • Set Point = (Target point of ability being cast)
                              • Unit - Create 1 Druid of the Claw (Mana) for Player 1 (Red) at Point facing (Position of Paladin 0000 <gen>)
                              • Unit - Add Replen Mana Mush to (Last created unit)
                              • Unit - Set level of Replen Mana Mush for (Last created unit) to 1
                              • Custom script: set bj_wantDestroyGroup = true
                              • Custom script: call GroupTargetOrderBJ( GetUnitsOfTypeIdAll('e001'), "A007", gg_unit_Hpal_0000 )
                              • Custom script: call RemoveLocation (udg_Point)
                            • Else - Actions
            • Else - Actions
        • Else - Actions
 
Level 12
Joined
Apr 16, 2010
Messages
584
You use the second conditions in If/Then/Else wrong, you use Last Created Destructible but you don't create any! maybe you had in mind Target destructible of ability being cast? Also you said:
  • -------- e001 = dummy unit --------
  • -------- a007 = replenish mana --------
but in the 5th If/Then/Else you typed some other raw values into script, maybe that's the problem?
 
Level 5
Joined
Aug 8, 2008
Messages
113
said:
  • -------- e001 = dummy unit --------
  • -------- a007 = replenish mana --------

Those are comments they don't do anything accept tell you whats going in the script.

You use the second conditions in If/Then/Else wrong, you use Last Created Destructible but you don't create any! maybe you had in mind Target destructible of ability being cast? but in the 5th If/Then/Else you typed some other raw values into script, maybe that's the problem?
I fixed what you said it works when I use the first code you gave me for healing mana and health but it doesn't work when I try to get the ability to cast
 
Level 28
Joined
Jan 26, 2007
Messages
4,789
Those are comments they don't do anything accept tell you whats going in the script.
That's not his point.

The comments say that the dummy unit is 'e001' and the spell is 'a007'
However, in the custom script, you use 'A007' as the spell (what Nightmare Moon was trying to tell you).
But since spells usually start with a capital A, that is most likely not the problem.
 
Level 12
Joined
Apr 16, 2010
Messages
584
@squelch, Yep that's what i was trying to tell you ^^
ap0calypse said:
But since spells usually start with a capital A, that is most likely not the problem.
I wasn't trying to say that :p He just misspelled in the script the war codes! He says to use
  • -------- e001 = dummy unit --------
    • -------- a007 = replenish mana --------
but instead he uses Custom script: call GroupTargetOrderBJ( GetUnitsOfTypeIdAll('e000'), "A006", gg_unit_Hpal_0000 ) So maybe <<this is the problem? Or wait, does he uses those raw codes for spell LIFE heal? and others for MANA heal? If so, hmmm... let me think...
Edit: please add a Game Display Text to Player: lalalala action, to the If/Then/Else statement, where you have to add health and some other text before, just so you'd know if the function runs at all... And where it stops
 
Level 5
Joined
Aug 8, 2008
Messages
113
O ok, I didn't realize that he was saying that..... So now I have two versions of the spells one works and the other doesn't. Based on input from you two, I might try the item thing because the spell thing isn't working

  • Version of Trigger that doesnt work
    • Events
      • Unit - Paladin 0000 <gen> Starts the effect of an ability
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Ability being cast) Equal to Eat a tree
        • Then - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Casting unit) Equal to Paladin 0000 <gen>
            • Then - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • ((Destructible-type of (Target destructible of ability being cast)) Equal to Ashenvale Tree Wall) or (((Destructible-type of (Target destructible of ability being cast)) Equal to Outland Tree Wall) or (((Destructible-type of (Target destructible of ability being cast)) Equal to Dungeon Tree Wall) or ((Destructible-type of (Target destructible of ability bein
                • Then - Actions
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • If - Conditions
                      • (Destructible-type of (Target destructible of ability being cast)) Equal to Dungeon Tree Wall
                    • Then - Actions
                      • Set Point = (Target point of ability being cast)
                      • Unit - Create 1 Druid of the Claw (Mana) for Player 1 (Red) at Point facing (Position of Paladin 0000 <gen>)
                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                        • If - Conditions
                          • ((Triggering unit) is A structure) Equal to False
                        • Then - Actions
                          • Unit - Add Replen Mana Mush to (Last created unit)
                          • Unit - Set level of Replen Mana Mush for (Last created unit) to 1
                          • Custom script: set bj_wantDestroyGroup = true
                          • -------- e001 = dummy unit --------
                          • -------- A007 = replenish mana --------
                          • Custom script: call IssueTargetOrderBJ( GetLastCreatedUnit(), "A007", gg_unit_Hpal_0000 )
                          • Custom script: call RemoveLocation (udg_Point)
                        • Else - Actions
                    • Else - Actions
                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                        • If - Conditions
                          • (Destructible-type of (Target destructible of ability being cast)) Equal to Underground Tree Wall
                        • Then - Actions
                          • Set Point = (Target point of ability being cast)
                          • Unit - Create 1 Druid of the Claw (Mana) for Player 1 (Red) at Point facing (Position of Paladin 0000 <gen>)
                          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                            • If - Conditions
                              • ((Triggering unit) is A structure) Equal to False
                            • Then - Actions
                              • Unit - Add Replen Mana Mush to (Last created unit)
                              • Unit - Set level of Replen Mana Mush for (Last created unit) to 1
                              • Custom script: set bj_wantDestroyGroup = true
                              • -------- e001 = dummy unit --------
                              • -------- A007 = replenish mana --------
                              • Custom script: call IssueTargetOrderBJ( GetLastCreatedUnit(), "A007", gg_unit_Hpal_0000 )
                              • Custom script: call RemoveLocation (udg_Point)
                            • Else - Actions
                        • Else - Actions
                          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                            • If - Conditions
                              • (Destructible-type of (Target destructible of ability being cast)) Equal to Ashenvale Tree Wall
                            • Then - Actions
                              • Set Point = (Target point of ability being cast)
                              • Unit - Create 1 Druid of the Claw (Life) for Player 1 (Red) at Point facing (Position of Paladin 0000 <gen>)
                              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                • If - Conditions
                                  • ((Triggering unit) is A structure) Equal to False
                                • Then - Actions
                                  • Unit - Add Replen Life mush to (Last created unit)
                                  • Unit - Set level of Replen Life mush for (Last created unit) to 1
                                  • Custom script: set bj_wantDestroyGroup = true
                                  • -------- e001 = dummy unit --------
                                  • -------- A007 = replenish mana --------
                                  • Custom script: call IssueTargetOrderBJ( GetLastCreatedUnit(), "A006", gg_unit_Hpal_0000 )
                                  • Custom script: call RemoveLocation (udg_Point)
                                • Else - Actions
                            • Else - Actions
                              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                • If - Conditions
                                  • (Destructible-type of (Target destructible of ability being cast)) Equal to Outland Tree Wall
                                • Then - Actions
                                  • Set Point = (Target point of ability being cast)
                                  • Unit - Create 1 Druid of the Claw (Mana) for Player 1 (Red) at Point facing (Position of Paladin 0000 <gen>)
                                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                    • If - Conditions
                                      • ((Triggering unit) is A structure) Equal to False
                                    • Then - Actions
                                      • Unit - Add Replen Mana Mush to (Last created unit)
                                      • Unit - Set level of Replen Mana Mush for (Last created unit) to 1
                                      • Custom script: set bj_wantDestroyGroup = true
                                      • -------- e001 = dummy unit --------
                                      • -------- A007 = replenish mana --------
                                      • Custom script: call IssueTargetOrderBJ( GetLastCreatedUnit(), "rejuvination", gg_unit_Hpal_0000 )
                                      • Custom script: call RemoveLocation (udg_Point)
                                    • Else - Actions
                                • Else - Actions
                • Else - Actions
            • Else - Actions
        • Else - Actions

  • Version of Trigger that works
    • Events
      • Unit - Paladin 0000 <gen> Starts the effect of an ability
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Ability being cast) Equal to Eat a tree
        • Then - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Casting unit) Equal to Paladin 0000 <gen>
            • Then - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • ((Destructible-type of (Target destructible of ability being cast)) Equal to Ashenvale Tree Wall) or (((Destructible-type of (Target destructible of ability being cast)) Equal to Outland Tree Wall) or (((Destructible-type of (Target destructible of ability being cast)) Equal to Dungeon Tree Wall) or ((Destructible-type of (Target destructible of ability bein
                • Then - Actions
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • If - Conditions
                      • (Destructible-type of (Target destructible of ability being cast)) Equal to Dungeon Tree Wall
                    • Then - Actions
                      • Unit - Set mana of (Triggering unit) to ((Mana of (Triggering unit)) + 225.00)
                    • Else - Actions
                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                        • If - Conditions
                          • (Destructible-type of (Target destructible of ability being cast)) Equal to Underground Tree Wall
                        • Then - Actions
                          • Unit - Set mana of (Triggering unit) to ((Mana of (Triggering unit)) + 300.00)
                        • Else - Actions
                          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                            • If - Conditions
                              • (Destructible-type of (Target destructible of ability being cast)) Equal to Ashenvale Tree Wall
                            • Then - Actions
                              • Unit - Set life of (Triggering unit) to ((Life of (Triggering unit)) + 300.00)
                            • Else - Actions
                              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                • If - Conditions
                                  • (Destructible-type of (Target destructible of ability being cast)) Equal to Outland Tree Wall
                                • Then - Actions
                                  • Unit - Set mana of (Triggering unit) to ((Mana of (Triggering unit)) + 300.00)
                                • Else - Actions
                • Else - Actions
            • Else - Actions
        • Else - Actions
 
Last edited:
Level 12
Joined
Apr 16, 2010
Messages
584
Add a text that says something before every action in here:
  • Then - Actions
  • Unit - Add Replen Life mush to (Last created unit)
  • Unit - Set level of Replen Life mush for (Last created unit) to 1
  • Custom script: set bj_wantDestroyGroup = true
  • -------- e001 = dummy unit --------
  • -------- A007 = replenish mana --------
  • Custom script: call IssueTargetOrderBJ( GetLastCreatedUnit(), "A006", gg_unit_Hpal_0000 )
  • Custom script: call RemoveLocation (udg_Point)
  • Else - Actions
Add text like 1, 2, 3, 4, 5 6, 7... So if the number 3 wont show means the action above it has problems and it will be easier to solve it. I always do (did) that.
Edit: you remove location in wrong place, you need to remove the outside the If/Then/Else, because you don't create it there. But that doesn't have to do anything with the bug.
Edit2: please use hidden tags for triggers:
blablabla[hіdden]
 
Status
Not open for further replies.
Top