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
Oni
Beginner


Joined: 28 Aug 2002
Posts: 16

PostPosted: Mon Sep 29, 2003 11:20 am   

Adding pouches
 
Ok here is one that has me stumped and hope someone can help me get unstressed.

I have a partial setup that works.

#Alias Trow Throw Regular
#Alias PTrow throw Poison
#Alias 1clean Cleaing up from 1 pouch
#Var Shur number of regular
#Var PShur number of poison
#Var MasterThrow Either Trow or Ptrow
#Var ShurClean Cleaning Var for death trigger
#Trigger {Fighting} #if (@MasterThrow = None) {} {@MasterThrow} So only throwing while fighting
#Trigeer (Death) #if (@ShurClean = None) {} {@ShurClean} Clean up
#BUTTON 1 {@SStat} {} {None|Normal|Poison} {#T- shur and pshur count class;#var MasterThrow None ;#var SStat None;#var ShurClean None|#T+ shur and pshur count class;#var MasterThrow TRow;#var SStat Normal ;#var ShurClean 1Clean|#T+ shur and pshur count class;#var MasterThrow PTrow;#var SStat Poison;#var ShurClean 1Clean } {} {} {} {} {} {} {} {} {} {} {0|0|0} {} {} "" {} {} {}

I have triggers in place to keep track of thrown shur and pshur (as I throw numbers are reduced). Button sets all Vars. Once i get thru the 1st pouch is when things begin to get tricky for me. I want to add a #If statement that will check against the number of either PShur or Shur during the fighting trigger and when it gets to 3 or lower it will get the approratie pouch Pget for poison or Get for normal, at the same time ShurClean should get set to 2clean for cleaning up 2 pouches. Also as I run thru the second pouch would like to have it add a 3rd pouch and shurclean to 3pouch, and so on. If any one can help me I would appricate it very much.[|)]
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Mon Sep 29, 2003 6:27 pm   
 
It would be much better to make @ShurClean a number instead of a mixed number/word, so that 1 can easily be added whenever you get another pouch.
#VAR ShurClean 1

The #IFs then becomes fairly easy
#IF (@Shur < 4) {Get;#ADD ShurClean 1}
#IF (@PShur < 4) {PGet;#ADD ShurClean 1}
Reply with quote
Oni
Beginner


Joined: 28 Aug 2002
Posts: 16

PostPosted: Tue Sep 30, 2003 5:47 am   
 
Thanks works great.
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