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

Roll message {A trigger}

Status
Not open for further replies.
Level 4
Joined
Dec 31, 2011
Messages
85
I wan't a trigger so when a Game starts a messege appears, for example each game a diffrent messege appears and based on a roll or something, for example after loading screen the messege: " Greeks were strong, and taught to be strong in battles since their five years of old. " in next game maybe another messege appears etc but each time another one based on luck, just like in map "GREECE".

What I wan't is if you done this trigger please post me a map with it so i Copy/Paste the trigger , if you do this you will earn rep if not then I am sorry but I am not sure if I can even make it

Proccesed Request: Yes by Yayoi

bump + if its possible could you make it so i can make it like 10% for this message to appear and 20% for the other and blah blah blah or somethin like that so a msg appears each game etc? well if its very hard or i need to do things my self too then just dont use the 10% etc system just based in luck not by per cent etc idk if u get me but if u know how to make same system as "Greece" games message system then its perfect
 
Last edited:

Deleted member 177737

D

Deleted member 177737

Here you go.

When 1 second has passed the game will set "Interger" to a random number between 1-3 (So it will pick either 1, 2, or 3).
Then it will check which number "Interger" is set to and display the message for that number.
 

Attachments

  • example3.w3x
    16.1 KB · Views: 52
Level 6
Joined
Dec 10, 2010
Messages
119
After game start you will see one random message from 6 variants.

JASS:
scope GameInit initializer Init

 private string array WORDS[5]
 private constant integer TIME_TO_DISPLAY = 10.0

 private function Init takes nothing returns nothing
  local integer rnd = GetRandomInt(0,5)
  local integer i = 0
  // Write your text here
  set WORDS[0] = "your text 1" 
  set WORDS[1] = "your text 2" 
  set WORDS[2] = "your text 3" 
  set WORDS[3] = "your text 4" 
  set WORDS[4] = "your text 5" 
  set WORDS[5] = "your text 6" 
   loop
    exitwhen(i>11)
    call DisplayTimedTextToPlayer(Player(i),0.0,0.0,TIME_TO_DISPLAY,WORDS[rnd])
    set i = i + 1
   endloop
 endfunction

endscope

Check this. I wrote it without world editor, and may be I forgot something.
 
Last edited:
Status
Not open for further replies.
Top