Warcraft III resources & community, 2003–2006 · archived

Flag random spawn location

3 posts
#1

Flag random spawn location

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
#2
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'
#3
thanks, Ramza ill try this out when im back from work, thanks again mate.