• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[Script] [JASS] Income text on screen

Status
Not open for further replies.
Level 3
Joined
Oct 13, 2014
Messages
14
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