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
SHASCO
Novice


Joined: 29 May 2001
Posts: 48
Location: USA

PostPosted: Wed Jan 30, 2002 7:07 pm   

prompt
 
The prompt in Achaea is in this format:

99h, 99m ex-

h = hit points
m = mana
e = equilibrium
x = balance

Some attacks require balance and others require equilibrium. So if I do an attack my prompt could look like this:

99h, 99m e-
or
99h, 99m x-
or
99h, 99m -

Now there are additional options that may be on the prompt such as this:

99h, 99m cexksdb-

The c, k, s, d and b are all various defences that you can have up, in any combination.

Here is the little code that is used to capture my prompt:

^&{hits}h, &{mana}m (*)-

What would be the best way to modify my prompt so that I can do conditions based off the e (equilibrium) and x (balance)? I need to condition some triggers to go off only if I have e or x depending on what is required by the mudd.

Thank you,

shasco
Reply with quote
fulgurate
Beginner


Joined: 24 Jan 2002
Posts: 20
Location: USA

PostPosted: Thu Jan 31, 2002 1:58 am   
 
I don't think you need to modify the prompt. Search the letters to see if they contain the characteristics you want. Perhaps something like this using the position function.
#var equilibrium %pos("e", %3)

#var balance %pos("x", %3)
and later...
#if @equilibrium {true stuff} {false stuff}
and so on.

fulgurate (W2KPro SP2, 6.25a)
Any code is provided for entertainment purposes only.
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