- Joined
- May 11, 2010
- Messages
- 278
Help me out with some triggering, will ya?
Take a look at these, correct my leaks, and overall trigger design.
I prefer to not use jass or too complex custom scripts.
General Gameplay:
Hero Abilities:
Zoshi, The Vanguard of Sanctuary
Kroya, the Eye of Sanctuary
That should be enough for me to figure out the rest myself.
Sorry for the (very) lengthy post!
Take a look at these, correct my leaks, and overall trigger design.
I prefer to not use jass or too complex custom scripts.
General Gameplay:
-
Hero Revival
-

Events
-


Unit - A unit Becomes revivable
-
-

Conditions
-

Actions
-


Game - Display to (Player group((Owner of (Triggering unit)))) the text: Your hero will be revived in a few seconds.
-


Wait 10.00 seconds
-


Set location = (Center of Region 000 <gen>)
-


Hero - Instantly revive (Triggering unit) at location, Show revival graphics
-


Custom script: call RemoveLocation(udg_location)
-
-
-
Revive camera
-

Events
-


Unit - A unit Finishes reviving
-
-

Conditions
-

Actions
-


Camera - Pan camera for (Owner of (Triggering unit)) to location over 0.50 seconds
-
-
-
Remove hero picker
-

Events
-


Unit - A unit Sells a unit
-
-

Conditions
-


((Sold unit) is A Hero) Equal to True
-
-

Actions
-


Custom script: set bj_wantDestroyGroup = true
-


Unit Group - Pick every unit in (Units owned by (Owner of (Sold unit)) matching ((Unit-type of (Matching unit)) Equal to Hero select)) and do (Actions)
-



Loop - Actions
-




Unit - Remove (Picked unit) from the game
-
-
-
-
-
Altars
-

Events
-


Unit - A unit Sells a unit
-
-

Conditions
-


((Sold unit) is A Hero) Equal to True
-
-

Actions
-


Custom script: set bj_wantDestroyGroup = true
-


Unit Group - Pick every unit in (Units owned by (Owner of (Sold unit)) matching ((Unit-type of (Matching unit)) Equal to Altar)) and do (Actions)
-



Loop - Actions
-




Set location = (Position of (Picked unit))
-




If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-





If - Conditions
-






(Unit-type of (Sold unit)) Equal to Best Friend
-
-





Then - Actions
-






Unit - Remove (Picked unit) from the game
-






Unit - Create 1 Altar of your Best Friend for (Owner of (Sold unit)) at location facing Default building facing degrees
-
-





Else - Actions
-






If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-







If - Conditions
-








(Unit-type of (Sold unit)) Equal to Dragon Warrior
-
-







Then - Actions
-








Unit - Remove (Picked unit) from the game
-








Unit - Create 1 Altar of Dragons for (Owner of (Sold unit)) at location facing Default building facing degrees
-
-







Else - Actions
-








If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-









If - Conditions
-










(Unit-type of (Sold unit)) Equal to Eye of Sanctuary
-
-









Then - Actions
-










Unit - Remove (Picked unit) from the game
-










Unit - Create 1 Altar of the Eye for (Owner of (Sold unit)) at location facing Default building facing degrees
-
-









Else - Actions
-










If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-











If - Conditions
-












(Unit-type of (Sold unit)) Equal to Reaper
-
-











Then - Actions
-












Unit - Remove (Picked unit) from the game
-












Unit - Create 1 Altar of the Reaper for (Owner of (Sold unit)) at location facing Default building facing degrees
-
-











Else - Actions
-












If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-













If - Conditions
-














(Unit-type of (Sold unit)) Equal to Vanguard of Sanctuary
-
-













Then - Actions
-














Unit - Remove (Picked unit) from the game
-














Unit - Create 1 Altar of the Vanguard for (Owner of (Sold unit)) at location facing Default building facing degrees
-
-













Else - Actions
-














If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-















If - Conditions
-
















(Unit-type of (Sold unit)) Equal to Sharpshot from Hell
-
-















Then - Actions
-
















Unit - Remove (Picked unit) from the game
-
















Unit - Create 1 Altar of the Sharpshot for (Owner of (Sold unit)) at location facing Default building facing degrees
-
-















Else - Actions
-
















Game - Display to (All players) the text: 404: Altar not found.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-


Custom script: call RemoveLocation(udg_location)
-
-
-
Hero Trained
-

Events
-


Unit - A unit Sells a unit
-
-

Conditions
-


((Sold unit) is A Hero) Equal to True
-
-

Actions
-


Set location = (Center of Region 000 <gen>)
-


Unit - Move (Sold unit) instantly to location
-


Unit - Create 1 Skill Point for (Owner of (Sold unit)) at location facing Default building facing degrees
-


Camera - Pan camera for (Owner of (Sold unit)) to location over 0.50 seconds
-


Custom script: call RemoveLocation(udg_location)
-
-
Zoshi, The Vanguard of Sanctuary
-
Zoshi Taunt
-

Events
-


Unit - A unit Starts the effect of an ability
-
-

Conditions
-


(Ability being cast) Equal to Taunt (Zoshi)
-
-

Actions
-


Set Zoshi_Taunt = (Triggering unit)
-


Unit - Add Spell Book (Zoshi (Taunt)) to (Triggering unit)
-


Unit - Set level of Armor Bonus (Zoshi (Taunt)) for (Triggering unit) to (Level of Taunt (Zoshi) for (Triggering unit))
-


Unit - Set level of Defense Reduction for (Triggering unit) to (Level of Taunt (Zoshi) for (Triggering unit))
-


Countdown Timer - Start Taunttimer as a One-shot timer that will expire in 5.00 seconds
-
-
-
Zoshi Taunt expire
-

Events
-


Time - Taunttimer expires
-
-

Conditions
-

Actions
-


Unit - Remove Spell Book (Zoshi (Taunt)) from Zoshi_Taunt
-
-
-
Zoshi Deaf Roar
-

Events
-


Unit - A unit Starts the effect of an ability
-
-

Conditions
-


(Ability being cast) Equal to Deafening Shout (Zoshi)
-
-

Actions
-


Set location = (Position of (Triggering unit))
-


Unit - Create 1 Dummy for (Owner of (Triggering unit)) at location facing Default building facing degrees
-


Set unit = (Last created unit)
-


Unit - Add Deafening Shout (dummy) to unit
-


Unit - Set level of Deafening Shout (dummy) for unit to (Level of Deafening Shout (Zoshi) for (Triggering unit))
-


Unit - Order unit to Human Mountain King - Thunder Clap
-


Unit - Add a 1.00 second Generic expiration timer to unit
-


Custom script: call RemoveLocation(udg_location)
-
-
-
Sanctuary Cast
-

Events
-


Unit - A unit Starts the effect of an ability
-
-

Conditions
-


(Ability being cast) Equal to Sanctuary (Kroya)
-
-

Actions
-


Set Kroya_Sanctuary_Target = (Target unit of ability being cast)
-


Unit - Make Kroya_Sanctuary_Target Invulnerable
-


Unit - Pause Kroya_Sanctuary_Target
-


Countdown Timer - Start Sanctuary_Timer as a One-shot timer that will expire in 4.00 seconds
-
-
-
Sanctuary expire
-

Events
-


Time - Sanctuary_Timer expires
-
-

Conditions
-

Actions
-


Unit - Make Kroya_Sanctuary_Target Vulnerable
-


Unit - Unpause Kroya_Sanctuary_Target
-
-
Sorry for the (very) lengthy post!
Last edited:






