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

[Trigger] Help With Triggers

Status
Not open for further replies.
Level 4
Joined
Dec 3, 2007
Messages
117
Well, i want to display a text when my hero reaches level 10, not like the one thats like above the building/unit/region more like an "real text" or something.
Lol i know its kinda complicated to understand but im not sure how to do this ^^...
 
Level 9
Joined
May 27, 2006
Messages
498
  • ShowHintWhenLvl10
    • Events:
      • Unit - A unit lvl-ups // I dont remember the full name of this event - its sthing like that anyway
    • Conditions:
      • (Hero level) of (Triggering unit) equal to 10
    • Actions:
      • Game - Display auto-timed text message to (Owner of(Triggering unit)) that reads: Whoah, you have reached lvl 10! Gz!

Its simple ;| No need to use JASS, in which this trigger would take more than 3 lines of code... ;P
 
Level 6
Joined
Nov 28, 2007
Messages
203
  • ShowHintWhenLvl10
    • Events:
      • Unit - A unit lvl-ups // I dont remember the full name of this event - its sthing like that anyway
    • Conditions:
      • (Hero level) of (Triggering unit) equal to 10
    • Actions:
      • Game - Display auto-timed text message to (Owner of(Triggering unit)) that reads: Whoah, you have reached lvl 10! Gz!

Its simple ;| No need to use JASS, in which this trigger would take more than 3 lines of code... ;P

you don't need to use one trigger/lvl. you could use If / Then /Else action. (General)
 
Level 9
Joined
May 27, 2006
Messages
498
Then it could be done even more simplier, delete the condition and edit the show text message line to this:
  • Game - Display auto-timed text message to (Owner of(Triggering unit)) that reads: (Whoah, you have just reached lvl ) + (String(Hero level of(Triggering unit))) + (! Gz!)
 
Status
Not open for further replies.
Top