Display gold in mudlet gui

how would I go about making a small window to display the gold I am carrying in mudlet?

Comments

  • AhmetAhmet Wherever I wanna be
    You'll want a script that creates a miniConsole.

    You'll want a script that's hooked to a GMCP event for your character stats.

    Inside the second script, you'll want to clear the miniConsole, then echo your current gold (which is stored in GMCP) to your miniConsole.
    Huh. Neat.
  • AhmetAhmet Wherever I wanna be
    The mudlet clan is also a good place to ask questions if you're struggling with something in particular.
    Huh. Neat.
  • how can I join the mudlet clan?
  • Thank you for pointing me in the right direction, I figured it out.
  • is there a command I need to use inside the script to make it update? It pulls the info when I log in but does not update the miniconsole any other time
  • KlendathuKlendathu Eye of the Storm
    Assuming your routine to display gold is displayGold(), add the following line to the bottom of the script block containing displayGold(), after the end of the function:<br>registerAnonymousEventHandler("gmcp.Char.Status.gold","displayGold")

    Every time your gold amount is updated, it'll fire the script.

    Tharos, the Announcer of Delos shouts, "It's near the end of the egghunt and I still haven't figured out how to pronounce Clean-dat-hoo."
Sign In or Register to comment.