• 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.
  • Create a faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

trigger help (probably easy to help me so check it out)

Status
Not open for further replies.
Level 9
Joined
Jan 14, 2008
Messages
366
  • ctf respawn
    • Events
      • Time - timer_revive[1] expires
      • Time - timer_revive[2] expires
      • Time - timer_revive[3] expires
      • Time - timer_revive[4] expires
      • Time - timer_revive[5] expires
      • Time - timer_revive[6] expires
      • Time - timer_revive[7] expires
      • Time - timer_revive[8] expires
      • Time - timer_revive[9] expires
      • Time - timer_revive[10] expires
      • Time - timer_revive[11] expires
      • Time - timer_revive[12] expires
    • Conditions
    • Actions
      • Set TempPoint1 = (Random point in Region 001 <gen>)
      • Camera - Pan camera for (Player((Integer A))) to TempPoint1 over 0.10 seconds
      • Wait 0.25 seconds
      • Unit - Create 1 Mage for (Player((Integer A))) at TempPoint1 facing (Random real number between 0.00 and 360.00) degrees
      • Set hero[(Integer A)] = (Last created unit)
      • Unit Group - Add (Last created unit) to Unitgrp_invulnerable
      • Special Effect - Create a special effect at TempPoint1 using Abilities\Spells\Human\MassTeleport\MassTeleportCaster.mdl
      • Special Effect - Destroy (Last created special effect)
      • Custom script: call RemoveLocation (udg_TempPoint1)

thats my trigger. now doing 12 "if - then -else" functions would be stupid, but how can i tell the actions to be performed for the player who corresponds to the timer array ?
 
Level 9
Joined
Jan 14, 2008
Messages
366
im afraid i have no clue what hashtables are, nor how to use them properly. but thanks, i will look into it, i believe i saw a hashtable tutorial on her recently.

they seem to be useful stuff :eek:
 
Status
Not open for further replies.
Top