lostie

by Saran

Back to Mechanic's Corner.

Saran2005-10-20 16:03:54
i was talking to derian who was guiding me through making a auto-sipper but he had to leave.

could someone tell me what i need to add to make this work?

CODE
#IF (@Health < @MaxHealth - @HealthSip and @SippingHM != 0) {
 sip health
 #VAR SippingHM 1
 #ALARM +4 {#VAR DrinkingHM 0}
 } {
 #IF (@Mana < @MaxMana - @ManaSip and @SippingHM != 0) {
   sip mana
   #VAR SippingHM 1
   #alarm +4 {#VAR DrinkingHM 0}
   }
 }


this looks wrong to me

should @SippingHM != 0 be either != 1 or the variable change be to 0?

then a what should a trigger on sip recovery set it to?

sorry really new to zmud (i'm not a complete idiot i swear)
Unknown2005-10-20 16:05:57
Your @SippingHM != 0 should be @SippingHM != 1, and your timer should execute #VAR SippingHM 0 (i.e., use the same variable name throughout).
Saran2005-10-20 16:11:27
thanks biggrin.gif
though i've found a problem with the prompt thing