• 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.
  • 💡 We're thrilled to announce that our upcoming texturing contest is in the works, and we're eager to hear your suggestions! Please take this opportunity to share your ideas in this theme discussion thread for the Texturing Contest #34!
  • 🏆 Hive's 7th HD Modeling Contest: Icecrown Creature is now open! The frozen wastes of Icecrown are home to some of Azeroth’s most terrifying and resilient creatures. For this contest, your challenge is to design and model a HD 3D monster that embodies the cold, undead, and sinister essence of Icecrown! 📅 Submissions close on April 13, 2025. Don't miss this opportunity to let your creativity shine! Enter now and show us your frozen masterpiece! 🔗 Click here to enter!

[Script] [JASS] Income text on screen

Status
Not open for further replies.
Level 3
Joined
Oct 13, 2014
Messages
15
Hey!

Total JASS noob reporting in..
I wanna make it so that my income message appears as shown in the screenshot provided below, and have no idea how to achieve this and would like some help turning it into JASS code.

wBIdlyA.png
My goal is to have it sized 20px, with a fade-out, placed as seen in the screenshot above.
This is to avoid having too many messages on the screen, that could bother players while they play.

Here's the income trigger:
  • Income
    • Events
      • Time - Every 20.00 seconds of game time
    • Conditions
    • Actions
      • Trigger - Run Turn Income to Lumber <gen> (checking conditions)
      • Set VariableSet Income_Setup_Timer = 20
      • Multiboard - Set the text for LEADERBOARD item in column 1, row 13 to (|c00fEBA0EIncome Timer|r: + (String(Income_Setup_Timer)))
      • For each (Integer A) from 1 to 8, do (Player - Add Income[(Integer A)] to (Player((Integer A))).Current gold)
      • For each (Integer A) from 1 to 8, do (Player - Add Income_Lumber[(Integer A)] to (Player((Integer A))).Current lumber)
      • For each (Integer A) from 1 to 8, do (Game - Display to (Player group((Player((Integer A))))) the text: (|cffffcc33>>|r Your income is|cffffcc33:|r + ((String(Income[(Integer A)])) + ( |cffffcc33gold|r - + ((String(Income_Lumber[(Integer A)])) + |cff8080ffmana stone|r(|cff8080ffs|r).)))))
      • Player Group - Pick every player in Playercounting and do (Actions)
        • Loop - Actions
          • Player - Set (Picked player).Food used to 20

I hope anybody can help this fella out. Let me know if you need more from me!
Thanks for reading
 
Last edited:
Status
Not open for further replies.
Top