|
Oni Beginner
Joined: 28 Aug 2002 Posts: 16
|
Posted: 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.[|)] |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: 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} |
|
|
|
Oni Beginner
Joined: 28 Aug 2002 Posts: 16
|
Posted: Tue Sep 30, 2003 5:47 am |
Thanks works great.
|
|
|
|
|
|