• 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.

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
 
Level 22
Joined
Jan 10, 2005
Messages
3,426
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.
Top