Macromod, Updated balance display macro

Discussion in 'Basic Tutorials' started by GungnirIncarnate, May 28, 2013.

  1. FuChunx3

    FuChunx3 Builder
    Builder ⛰️ Ex-Mayor ⚒️⚒️

    Joined:
    Aug 6, 2012
    Messages:
    93
    Trophy Points:
    25,350
    Ratings:
    +11
    18: SETLABEL(balance,Balance: $%&balance%,balance)
    . . .
    102: SETLABEL(balance,Balance: $%&balance%,balance)
    103: SET(@&bal,$%&balance%)

    If you have bal as a global variable, why not use that instead? You can copy line 103 to line 18 and remove line 102. Then, in 'Label text' you put "Balance: %%" and in 'Binding' you put "@&bal"
     
    #41 FuChunx3, Oct 23, 2013
    Last edited: Oct 23, 2013
  2. GungnirIncarnate

    Builder ⛰️ Ex-President ⚒️⚒️ Premium Upgrade

    Joined:
    Jul 18, 2012
    Messages:
    3,226
    Trophy Points:
    47,340
    Gender:
    Male
    Ratings:
    +481

    Because I did not have it there originally, it was added in the end because people were having difficulty following, there is no need to totally replace it in general as some people have difficulty with one method and not the other. That is why there are both in the code.
     
  3. sthegreat2

    sthegreat2 Builder
    Builder ⛰️ Ex-Resident ⚒️

    Joined:
    Nov 11, 2013
    Messages:
    254
    Trophy Points:
    19,900
    Gender:
    Male
    Ratings:
    +32
    The macro works great, but for some reason in singleplayer it still shows my balance. Tell me what I did wrong plz.
    jakeyray18
     
  4. RealRichNixon

    RealRichNixon Pres. Richard Nixon by day, GameAdmin by night.
    Mythic ⚔️ I ⚔️ Game Admin EcoLegend ⛰️⛰️⛰️⛰️ Ex-President ⚒️⚒️ Prestige ⭐ V ⭐ Premium Upgrade

    Joined:
    Oct 17, 2013
    Messages:
    2,154
    Trophy Points:
    72,910
    Gender:
    Male
    Ratings:
    +537
  5. GungnirIncarnate

    Builder ⛰️ Ex-President ⚒️⚒️ Premium Upgrade

    Joined:
    Jul 18, 2012
    Messages:
    3,226
    Trophy Points:
    47,340
    Gender:
    Male
    Ratings:
    +481
    It was not designed to be hidden when is singleplayer, I never thought of that, I guess I could see if I could find a way to turn it off if you are in single player.
     
  6. KindaGoku

    KindaGoku Not-so-new Bloo
    President ⛰️⛰️ Ex-EcoLegend ⚜️⚜️⚜️⚜️ Prestige ⭐ II ⭐ Premium Upgrade

    Joined:
    Dec 26, 2012
    Messages:
    172
    Trophy Points:
    64,610
    Gender:
    Male
    Ratings:
    +50
    My Balance Label brings in money earned/lost from other servers and I cant change it.. I need help
     
  7. RealRichNixon

    RealRichNixon Pres. Richard Nixon by day, GameAdmin by night.
    Mythic ⚔️ I ⚔️ Game Admin EcoLegend ⛰️⛰️⛰️⛰️ Ex-President ⚒️⚒️ Prestige ⭐ V ⭐ Premium Upgrade

    Joined:
    Oct 17, 2013
    Messages:
    2,154
    Trophy Points:
    72,910
    Gender:
    Male
    Ratings:
    +537
    jakeyray18 is there a way to make that box smaller? Its huge from my perspective and I don't know how to make it smaller...
     
  8. KindaGoku

    KindaGoku Not-so-new Bloo
    President ⛰️⛰️ Ex-EcoLegend ⚜️⚜️⚜️⚜️ Prestige ⭐ II ⭐ Premium Upgrade

    Joined:
    Dec 26, 2012
    Messages:
    172
    Trophy Points:
    64,610
    Gender:
    Male
    Ratings:
    +50
    what box lolelf?
     
  9. GungnirIncarnate

    Builder ⛰️ Ex-President ⚒️⚒️ Premium Upgrade

    Joined:
    Jul 18, 2012
    Messages:
    3,226
    Trophy Points:
    47,340
    Gender:
    Male
    Ratings:
    +481
    The answer was already in the thread, just had to turn back a page...
     
    #49 GungnirIncarnate, Mar 29, 2014
    Last edited: Mar 29, 2014
  10. EraNow

    EraNow Tycoon
    Tycoon ⛰️⛰️⛰️ Ex-EcoLeader ⚜️⚜️⚜️ Premium Upgrade

    Joined:
    Jan 21, 2014
    Messages:
    1,987
    Trophy Points:
    49,160
    Gender:
    Male
    Ratings:
    +1,322
    Quick question, is there a macro that tells you what Biome you're in?
     
  11. Dccciz

    Dccciz Nicememer55
    Builder ⛰️ Ex-Tycoon ⚜️⚜️⚜️ Premium Upgrade

    Joined:
    Mar 8, 2013
    Messages:
    2,829
    Trophy Points:
    50,090
    EcoDollars:
    $0
    Ratings:
    +2,061
    Open up the GUI editor, and click inchat or ingame. Then, make a label with the Label Text as
    Then, make the binding
     
  12. EraNow

    EraNow Tycoon
    Tycoon ⛰️⛰️⛰️ Ex-EcoLeader ⚜️⚜️⚜️ Premium Upgrade

    Joined:
    Jan 21, 2014
    Messages:
    1,987
    Trophy Points:
    49,160
    Gender:
    Male
    Ratings:
    +1,322
    Every time I open up the GUI editor, it brings me to default. How do I go back to Ingame?
     
  13. GungnirIncarnate

    Builder ⛰️ Ex-President ⚒️⚒️ Premium Upgrade

    Joined:
    Jul 18, 2012
    Messages:
    3,226
    Trophy Points:
    47,340
    Gender:
    Male
    Ratings:
    +481
    Bump because users have been asking me about these and none of my macros break any rules.
     
  14. MattBrpQc

    MattBrpQc Staff Member
    SuperMod EcoMaster ⛰️⛰️⛰️⛰️ Ex-EcoLeader ⚜️⚜️⚜️

    Joined:
    Feb 2, 2013
    Messages:
    719
    Trophy Points:
    51,760
    Gender:
    Male
    Ratings:
    +343
  15. GungnirIncarnate

    Builder ⛰️ Ex-President ⚒️⚒️ Premium Upgrade

    Joined:
    Jul 18, 2012
    Messages:
    3,226
    Trophy Points:
    47,340
    Gender:
    Male
    Ratings:
    +481
    Bump, updated and made some changes to the tutorial. Also removed the onjoingame update of the balance label as it no longer works correctly on ECC so you shall have to manually check you balance on logging in to update the label.
     
  16. 314

    314 Irrational GameAdmin, former ServerAdmin
    EcoLegend ⛰️⛰️⛰️⛰️ Ex-President ⚒️⚒️ Prestige ⭐ VI ⭐ Premium Upgrade

    Joined:
    Apr 1, 2014
    Messages:
    7,219
    Trophy Points:
    97,160
    EcoDollars:
    $6,000,000
    Ratings:
    +4,955
    What changed? My bal command at OnJoinGame still works perfectly...
     
  17. GungnirIncarnate

    Builder ⛰️ Ex-President ⚒️⚒️ Premium Upgrade

    Joined:
    Jul 18, 2012
    Messages:
    3,226
    Trophy Points:
    47,340
    Gender:
    Male
    Ratings:
    +481
    The onJoinGame event still works yes, however executing a command from script is no longer possible on ECC, So I am going to assume that you just have the onJoinGame event executing /bal without a script, which means you execute /bal everytime you log in to any server or singleplayer world. I have removed my code as it executed the /bal command only when you logged into ECC and no where else.
     
    #57 GungnirIncarnate, Sep 10, 2014
    Last edited: Sep 10, 2014
  18. 314

    314 Irrational GameAdmin, former ServerAdmin
    EcoLegend ⛰️⛰️⛰️⛰️ Ex-President ⚒️⚒️ Prestige ⭐ VI ⭐ Premium Upgrade

    Joined:
    Apr 1, 2014
    Messages:
    7,219
    Trophy Points:
    97,160
    EcoDollars:
    $6,000,000
    Ratings:
    +4,955
    Oh. I thought the cofigs didn't only save the keybinds, but the events as well. But it doesn't surprise me...had to reinstall all my button/label macros today because I thought I'D only remove the default config... :/
     
  19. GungnirIncarnate

    Builder ⛰️ Ex-President ⚒️⚒️ Premium Upgrade

    Joined:
    Jul 18, 2012
    Messages:
    3,226
    Trophy Points:
    47,340
    Gender:
    Male
    Ratings:
    +481
    A majority of people do not use the different configs as they do not understand them.
     
  20. 314

    314 Irrational GameAdmin, former ServerAdmin
    EcoLegend ⛰️⛰️⛰️⛰️ Ex-President ⚒️⚒️ Prestige ⭐ VI ⭐ Premium Upgrade

    Joined:
    Apr 1, 2014
    Messages:
    7,219
    Trophy Points:
    97,160
    EcoDollars:
    $6,000,000
    Ratings:
    +4,955
    *Thinks he does understand the configs*
    *Uses them*
    *Fails* :D