Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
Leitia
Adept


Joined: 04 May 2007
Posts: 292
Location: Boston

PostPosted: Sat Jan 17, 2009 10:17 pm   

code check
 
Hi, this script worked up until the time I moved the folder of buttons from it's being a subfolder to the main. Now I get access errors on button editing; close or save.

Although the gauges work fine, I went a bit wild in using them to color buttons instead of btncol, which I think I had done badly. I ran checkdisk, #killall, save, save as, new mud, new mud save layout, reset layout, delete layout. Is this code wrong?

Code:
#VAR aw_current {0} {0} "Alertness"
#BUTTON 7 {A} {#class Alertness;cha alert attentive;#var aw_macc 3;#var aw_current 3;#class 0} {} {} {@aw_current} {} {} {} {} {} {} {} {} {78} {} {Gauge||0|@aw_macc|3|7} {} "Alertness" {Explore|Inset} {} {awstate3} {3}
#BUTTON 8 {C} {#class Alertness;cha alert careful;#var aw_macc 2;#var aw_current 2;#class 0} {} {} {@aw_current} {} {} {} {} {} {} {} {} {78} {} {Gauge||0|@aw_macc|2|7} {} "Alertness" {Explore|Inset} {} {awstate4} {3}
#BUTTON 9 {N} {#class Alertness;cha alert normal;#var aw_macc 0;#var aw_current 0;#class 0} {} {} {@aw_current} {} {} {} {} {} {} {} {} {78} {} {Gauge||0|@aw_macc|1|7} {} "Alertness" {Explore|Inset} {} {awstate5} {3}
#BUTTON 1 {P} {#class Alertness;cha alert paranoid;#var aw_macc 5;#var aw_current 5;#class 0} {} {} {@aw_current} {} {} {} {} {} {} {} {} {78} {} {Gauge||0|@aw_macc|5|7} {} "Alertness" {Explore|Inset} {} {awstate1} {3}
#BUTTON 2 {V} {#class Alertness;cha alert vigilant;#var aw_macc 4;#var aw_current 4;#class 0} {} {} {@aw_current} {} {} {} {} {} {} {} {} {78} {} {Gauge||0|@aw_macc|4|7} {} "Alertness" {Explore|Inset} {} {awstate2} {3}


These gauges set Alertness states for MUME, as if you forgot you changed that you can find yourself alone, out of moves, and with company that you would very much want to leave.


I am trying to set the max and current value at the same time:

Code:
#class Alertness
cha alert vigilant
#var aw_macc 4
#var aw_current 4
#class 0


Maybe this is wrong but the script had worked without access errors before I moved that folder.

Oh I didn't declare aw_macc in that export, I was just using aw_current for both
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net