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

Random Tips in game

Status
Not open for further replies.
Level 4
Joined
Aug 7, 2008
Messages
115
I want to know a trigger that makes my tips appears inside the game ramdomly

example: every 5 minutes show 1 tip of 10 ramdomly
5 minutes of the game: "Tip2 appears: You can type commands to see the commans of the game...."
10 minutes of the game: "Tip8 appears: You can buy the epic items there..."15 minutes ....
thanks,
 
Just use math - random numbers between x and y. Store in variable.
If yourvariable = 1 then echo message1.
 
exampleie9.jpg
 
Or do an array, so the same message can't be displayed before the rest have.
 
Eeek scorpion...screenshot. Trigger tags?
Variables:
Tips(String Array) size of array = number of tips you want
TipGen(Integer)
  • Events
  • Time - Every 18.00 second of game time
  • Conditions
  • Actions
  • Set Tips[1] = Press F9 for help
  • Set Tips[2] = Type: -commands for commands
  • Set Tips[3] = Another Pointless Tip
  • Set TipGen = Random Number(1-3)
  • If TipGen = 1 Then Game - Display Text to Players(All) Tips[1] Else Do Nothing
  • etc...
I didn't have WE but ill update when i do...
 
Status
Not open for further replies.
Back
Top