| 07-19-2003, 12:35 AM | #1 |
Lightning Bolt Events Dialog - A dialog button is clicked for RedMenu Conditions Actions If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions RedMana[0] Greater than 4000 (Clicked dialog button) Equal to RedSpell01 Then - Actions Unit Group - Pick every unit in (Units in ShowRed <gen> owned by Player 2 (Blue)) and do (Actions) Loop - Actions Unit Group - Add (Picked unit) to LightningBolt Unit Group - Pick every unit in (Units in ShowRed <gen> owned by Player 7 (Green)) and do (Actions) Loop - Actions Unit Group - Add (Picked unit) to LightningBolt Unit Group - Pick every unit in (Units in ShowRed <gen> owned by Player 10 (Light Blue)) and do (Actions) Loop - Actions Unit Group - Add (Picked unit) to LightningBolt Unit Group - Pick every unit in (Units in ShowRed <gen> owned by Player 12 (Brown)) and do (Actions) Loop - Actions Unit Group - Add (Picked unit) to LightningBolt Wait 1.00 game-time seconds Unit Group - Add (Random unit from LightningBolt) to LBKill[0] Unit - Kill (Random unit from LBKill[0]) Special Effect - Create a special effect attached to the overhead of (Random unit from LBKill[0]) using Doodads\Cinematic\Lightningbolt\Lightningbolt.mdl Unit Group - Add (Random unit from LightningBolt) to LBKill[0] Unit - Kill (Random unit from LBKill[0]) Special Effect - Create a special effect attached to the overhead of (Random unit from LBKill[0]) using Doodads\Cinematic\Lightningbolt\Lightningbolt.mdl Unit Group - Add (Random unit from LightningBolt) to LBKill[0] Unit - Kill (Random unit from LBKill[0]) Special Effect - Create a special effect attached to the overhead of (Random unit from LBKill[0]) using Doodads\Cinematic\Lightningbolt\Lightningbolt.mdl Unit Group - Add (Random unit from LightningBolt) to LBKill[0] Unit - Kill (Random unit from LBKill[0]) Special Effect - Create a special effect attached to the overhead of (Random unit from LBKill[0]) using Doodads\Cinematic\Lightningbolt\Lightningbolt.mdl Unit Group - Add (Random unit from LightningBolt) to LBKill[0] Unit - Kill (Random unit from LBKill[0]) Special Effect - Create a special effect attached to the overhead of (Random unit from LBKill[0]) using Doodads\Cinematic\Lightningbolt\Lightningbolt.mdl Unit Group - Add (Random unit from LightningBolt) to LBKill[0] Unit - Kill (Random unit from LBKill[0]) Special Effect - Create a special effect attached to the overhead of (Random unit from LBKill[0]) using Doodads\Cinematic\Lightningbolt\Lightningbolt.mdl Unit Group - Remove all units from LightningBolt Unit Group - Remove all units from LBKill[0] Else - Actions Game - Display to Player Group - Player 1 (Red) for 10.00 seconds the text: You do not have eno.. This is what i want the trigger to do. I want it to pick 6 random units in a certain region. Than creating a lightning bolt effect over them. Than Kill them instantly. I want the random units be "Enemy" to the Caster but all players are enemy to red. Variables: LightningBolt (Sends all Units in region to Variable) - LBKill (Kills 6 Random Units) I havnt tested it yet. But I think its wrong.. UPDATE: I forgot the add Destroy last created Special Effect. You think these will work? If you find a easier way. Or update my current trigger please reply!: ) |
| 07-19-2003, 03:55 AM | #2 |
bump, c'mon just take a look pls? |
| 07-19-2003, 05:19 AM | #3 |
this should work, but without building the scenario from scratch i couldnt test it a map with the trigger is included Lightning Events Dialog - A dialog button is clicked for RedMenu Conditions Actions If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions (Mana of RedMana) Greater than or equal to 4000.00 (Clicked dialog button) Equal to RedSpell01 Then - Actions Unit Group - Pick every unit in (Units in ShowRed <gen> owned by Player 2 (Blue)) and do (Unit Group - Add (Picked unit) to LightningBolt) Unit Group - Pick every unit in (Units in ShowRed <gen> owned by Player 7 (Green)) and do (Unit Group - Add (Picked unit) to LightningBolt) Unit Group - Pick every unit in (Units in ShowRed <gen> owned by Player 10 (Light Blue)) and do (Unit Group - Add (Picked unit) to LightningBolt) Unit Group - Pick every unit in (Units in ShowRed <gen> owned by Player 12 (Brown)) and do (Unit Group - Add (Picked unit) to LightningBolt) Wait 1.00 game-time seconds For each (Integer A) from 1 to 6, do (Actions) Loop - Actions Set VictimUnit = (Random unit from LightningBolt) Unit Group - Add VictimUnit to LBKill Unit Group - Remove VictimUnit from LightningBolt Unit Group - Pick every unit in LBKill and do (Actions) Loop - Actions Special Effect - Create a special effect attached to the overhead of (Picked unit) using Doodads\Cinematic\Lightningbolt\Lightningbolt.mdl Unit - Kill (Picked unit) Else - Actions Game - Display to Player Group - Player 1 (Red) for 10.00 seconds the text: You need more mana. |
| 07-19-2003, 05:22 AM | #4 |
o and btw, yes you will have to add in more to the trigger to remove the special efx after the trigger runs the lightning bolt thing is an interesting idea btw :) |
| 07-19-2003, 07:40 PM | #5 |
Thanks its for my mtg map.. :D |
