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

F9 - Quest

Status
Not open for further replies.
Hi, next time post here, if you have questions about World Editor.

For creating quests there is a simple GUI-action for it:
  • Quest - Create Quest
^Will be shown to all players.

If you want create a quest for a single player only, you have to use custom scripts.
  • Custom script: if GetLocalPlayer() == Player(0) then
  • Quest - Create Quest
  • Custom script: endif
Player(0) = Player Red
Player(1) = Player Blue
...
Player(11) = Player Brown

For displaying random tips you have to create a string[array] variable first. Then we have to initializise the strings, we do it like this:
  • Set Tip[0] = "If you need help, post a thread in correct forum"
  • Set Tip[1] = "Sliding is cool"
  • Set Tip[2] = "bla bla"
  • Set Tip[3] = "blu blu"
  • Set TipMax = 3[/stable]
So thats your initialization trigger.

Tip is your String[array] variable. TipMax is an integer variable, we will use in next trigger.

  • Game - Display to (All players) the text: Tip[RandomIntegerBetween(0, TipMax)][/stable]
So this second trigger will show a Tip with a random index between 0 and your limit.

You can add an event to it, to run it each 30 seconds of the game (example). "Easy 30 seconds".
 
Status
Not open for further replies.
Top