• Check out the results of the Techtree Contest #19!
  • 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 void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

Flag random spawn location

Status
Not open for further replies.
Level 10
Joined
Apr 3, 2006
Messages
535
is it possible to make a flag spawn in a random location out of 3 possible area's, if so what would the triggering look like, and would this require variables?

And for bonus points how can i go about making the flag findable by all players, eg make it constantly minimap ping or something, thanks
 
events: map init
conditions: --------
actions: if,then,else multiple functions
if: integer comparison => math random number => random number between 1 and 3 is equal to 1
then: unit - create 1 'flag' at 'rect 1'
else: do nothing
if: integer comparison => math random number => random number between 1 and 3 is equal to 2
then: unit - create 1 'flag' at 'rect 2'
else: do nothing
if: integer comparison => math random number => random number between 1 and 3 is equal to 3
then: unit - create 1 'flag' at 'rect 3'
else: do nothing

events: every XXX seconds of the game
conditions: ------
actions: cinematic - ping minimap at position of 'flag'
 
Status
Not open for further replies.
Back
Top