• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

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