- Joined
- Aug 24, 2008
- Messages
- 5
Here is the trigger I made. It's supposed to be a custom building system done in this way for purposes I have not begun working on yet. It works, as it builds the buildings and such in the desired way, but the issue is that once the particular "Mana Wards" are done, it's supposed to add them to Player 1's Unit Group of "Manastonegroup1" as well as setting the maximum mana for all players to the current base +25. It does not, however, do this. I have no idea why.
Also, unless I posted in some time when I was 13-14, this is my first post. Hi.
(By the way, i'm afraid i'll be gone for a while, but any help is still appreciated. And I found posts from when I was younger. Mine is the face of shame.)
-
Building Copy
-
Events
- Time - Every 1.00 seconds of game time
- Conditions
-
Actions
-
Unit Group - Pick every unit in Constructing and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Unit-type of (Picked unit)) Equal to Basic Mana Ward
-
Then - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Percentage life of (Picked unit)) Less than 100.00
-
Then - Actions
- Animation - Change (Picked unit)'s vertex coloring to (100.00%, 100.00%, 100.00%) with (100.00 - (Percentage life of (Picked unit)))% transparency
- Unit - Set life of (Picked unit) to ((Life of (Picked unit)) + 15.00)
- Special Effect - Create a special effect at (Position of (Picked unit)) using Abilities\Spells\Items\AIil\AIilTarget.mdl
-
Else - Actions
- Unit - Replace (Picked unit) with a (Unit-type of (Picked unit)) using The old unit's life and mana
- Set ManaMax = (ManaMax + 25)
- If ((Owner of (Last created unit)) Equal to Player 1 (Red)) then do (Unit Group - Add (Picked unit) to Manastonegroup1) else do (Do nothing)
- Unit Group - Remove (Last created unit) from Constructing
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Percentage life of (Picked unit)) Less than 100.00
-
Then - Actions
- Animation - Change (Picked unit)'s vertex coloring to (100.00%, 100.00%, 100.00%) with (100.00 - (Percentage life of (Picked unit)))% transparency
- Unit - Set life of (Picked unit) to ((Life of (Picked unit)) + 15.00)
- Special Effect - Create a special effect at (Position of (Picked unit)) using Abilities\Spells\Items\AIil\AIilTarget.mdl
-
Else - Actions
- Unit - Replace (Picked unit) with a (Unit-type of (Picked unit)) using The old unit's life and mana
- Unit Group - Remove (Picked unit) from Constructing
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Loop - Actions
-
Unit Group - Pick every unit in Constructing and do (Actions)
-
Events
-
Mana Part 2
-
Events
- Time - Every 2.00 seconds of game time
- Conditions
-
Actions
- Set Mana1 = (Mana1 + (Number of units in Manastonegroup1))
- Multiboard - Set the text for Manaboard item in column 2, row 1 to (String(Mana1))
-
Events
Also, unless I posted in some time when I was 13-14, this is my first post. Hi.
(By the way, i'm afraid i'll be gone for a while, but any help is still appreciated. And I found posts from when I was younger. Mine is the face of shame.)
Last edited: