Shattered Kingdoms
https://shatteredkingdoms.com/forums/

(zMud) XP guage - By BlackDragon
https://shatteredkingdoms.com/forums/viewtopic.php?f=42&t=20220
Page 1 of 1

Author:  Rennus_Dragonsbane [ Fri May 07, 2010 5:59 am ]
Post subject:  (zMud) XP guage - By BlackDragon

Grabs your rough exp and displays it a a bargraph guage.

Code:
#TRIGGER {You {are|have|still|may} &expstr1.} {#if (@expstr1=="just begun your journey to the next level.") {#var exp 0}
#if (@expstr1=="have a long way to go before the next level.") {#var exp 10}
#if (@expstr1=="over one-third of the way to the next level.") {#var exp 33}
#if (@expstr1=="very close to half-way to the next level.") {#var exp 44}
#if (@expstr1=="at the half-way of your journey to the next level.") {#var exp 50}
#if (@expstr1=="just begun your second-half journey to the next level.") {#var exp 59}
#if (@expstr1=="over two-thirds of the way to the next level.") {#var exp 66}
#if (@expstr1=="over three-fourths of the way to the next level.") {#var exp 75}
#if (@expstr1=="almost eligible for a level advancement.") {#var exp 90}
#if (@expstr1=="advance to the next level.") {#var exp 100;#wait (500);#echo You may now train a level}}


I have the 'response' gagged so I put the echo in at the end just to remind me.
Code:
#BUTTON 34 {approx EXP @status} {worth} {} {} {@exp} {} {} {Size} {160} {11} {Pos} {8} {465} {32} {} {Gauge||10|100|90|8} {} "" {Explore|Inset} {You @EXPSTR1} {}


Other little bits to make above work.
Code:
#VAR exp {0}
Code:
#VAR status {0}
Code:
#TRIGGER {Status: (%w)} {#var status %1}

Page 1 of 1 All times are UTC - 8 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/