|
stark62 Wanderer
Joined: 04 Apr 2003 Posts: 94 Location: United Kingdom
|
Posted: Tue Feb 02, 2010 3:47 am
#IF ! or #IF that is the question |
Ok am trying something little advanced for me but if it works could help alot ok have an item and alias that produces this
You cast the spell
You have a health of 3000h and a mana of 3000m.
You have mumps
You have smallpox
You have plague
You have a vomit sickness
exits n,s,e,w
balance
Ok so if i have a list of ailments and the lines eg as above (You have mumps etc)
is it possible to trigger a class on when i cast the spell
look through ailments - now i get a problem here - ok if its there its easy a trigger - is it possible some how test to see if "You have mumps" is there between the cast spell and balance - Its easy if the line is there but im also looking to see if it is not there |
|
|
|
stark62 Wanderer
Joined: 04 Apr 2003 Posts: 94 Location: United Kingdom
|
Posted: Tue Feb 02, 2010 5:28 pm |
OK no takers on that problem how about this IF also
#IF {%if( (HP1<=800) AND (HD1=1))} {siphealth;play dead;HD1=0} {play dead}
can not get the AND working with HP1 or HD1 |
|
|
|
stark62 Wanderer
Joined: 04 Apr 2003 Posts: 94 Location: United Kingdom
|
Posted: Tue Feb 02, 2010 5:50 pm |
Wow getting better at this solved it eventually with trial and error error error error
#IF ((@HP1 <= 800) AND (@HD1=1)) {siphealth:play dead;HD1=0} {dead} |
|
|
|
|
|