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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
jackwest
Novice


Joined: 01 Jan 2009
Posts: 35

PostPosted: Thu Jan 15, 2009 10:42 am   

is it possible to pull priority/position information out of a button?
 
specifically, is it possible to pull either priority or button position out of a button via scripting?

essentially, i have a column of buttons. i want them to be multi-state, with 2 of the options being move button up and move button down, so their order can be changed. however this requires the script to know the current position of the button, and I dont know how to get this information out...

suggestions?

jack
Reply with quote
Tech
GURU


Joined: 18 Oct 2000
Posts: 2733
Location: Atlanta, USA

PostPosted: Thu Jan 15, 2009 4:29 pm   
 
You have two options...

You can use the #BUTTON with no arguments which will list all the buttons, their captions and commands and do a trigger base on the caption to get the priority of the one you want.

Alternatively you can use the Lua and the zs.button object to get the position or the common properties to get the priority.
_________________
Asati di tempari!
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD 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