|
Oni Beginner
Joined: 28 Aug 2002 Posts: 16
|
Posted: Tue Aug 26, 2003 9:36 pm
Need help with a button |
I am not sure in what direction to go on this one. I whould like a button that can add and remove pouches as needed on my char. Here is where I was going. But this does not seem conductive to removeing pouches if I select 1 and want to remove 1. I was wondering if anyone had any ideas so this will work the way I want it to. As time goes on i will add more states so that I will be using more pouches.
#BUTTON {@Npouch} {} {1 Pouch|2 Pouches} {#var NPouch 1;get pouch from pack|#var Npouch 2;get 2 pouches from pack}
@Npouch is just so i have a visual reminder for how many pouches my char has currently. |
|
|
|
megamog75 Enchanter
Joined: 20 Nov 2002 Posts: 627 Location: USA
|
Posted: Wed Aug 27, 2003 5:51 am |
I don't think that you would really want to do this.
How do you know if the bag your pulling is the right one?
but you could make an #alias to do this:
#al gs {get %1 pouch from pack}
Now when you type "gs 3" you will get 3 pouches from your pack
or if you type gs 1 you will get 1 pouch (maybe)
you might have to do an #if %1="" get pouch from pack and the other stuff in the false |
|
|
|
|
|