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
adamwalker
Apprentice


Joined: 12 Mar 2005
Posts: 195

PostPosted: Mon Feb 27, 2006 9:20 pm   

System construction and problem solving
 
okay. I have a problem. My system to cut a long story short is being developed for herb curing afflictions

you know ... eat herb1 to cure affliction1. do not eat herb1 if annorexic. that kinda thing

well i have a nightmare of a problem. i wonder if anyone can think of a solution better then my idea

one poison, when used, gives you 3 random afflictions (although you do not feel the effects). and on the 3rd affliction you die.

eg.

*You get hit with the poison (but do not see it*
2 sec
your right leg breaks (but its not broken)
2 sec
you are now anorexic (but can still eat)
2 sec
you cannot breathe, and die

well my solutions are as follows...

1. the poison works where you get stabbed/shot/etc with a weapon with the poison on it. but you will see the attack.. but no affliction message

So on every attack without a poison to automatically cure it

- could be expencive
- uses up herbslots that i dont want to use
- easyly exploitable

2. every time i get an affliction (but do not see an attack DIRECTLY before it) eat the cure. this is because the afflictions with the poison do not have a 'youve been stabbed' or whatever just before them as thier kinda 'fake' afflictions

- will trigger the cure off other afflictions that are not attack based, like curses. so against a mage type it will trigger every few seconds. but not at all during a sword user

3. make a variable to set @possiblepoison = 1 when you are attacked but there is no affliction message.

Then for the affliction messages that follow #if @possiblepoison = 1 {then trigger the cure}

That way for it to trigger it has to fulfill both criteria.

--

anyone have any different ideas? i just thought it would be something interesting to muse over :)

adam
Reply with quote
TonDiening
GURU


Joined: 26 Jul 2001
Posts: 1958
Location: Canada

PostPosted: Wed Mar 01, 2006 6:21 am   
 
Could you make a multi-state trigger that looks for the messages with-in a number of lines or similar?

If you detect a message and can discern it as not from another source, attempt to cure it?

This multi-state trigger would inject into you curing mechanism with a priority cure test?
Reply with quote
adamwalker
Apprentice


Joined: 12 Mar 2005
Posts: 195

PostPosted: Wed Mar 01, 2006 11:06 am   
 
thanks for your ideas. im not sure if within lines will work very well because multiple attacks could throw off the withinlines function..

however... i might try to see if i can get a few logs to recognise a pattern... it might be that you always see....

<> Prompt
<> Affliction

with no spaces or other outputs between the two. if that was the case i could just trigger it to cure off all afflictions within 1 lines of the prompt.. that might work a bit better

im not home right now and dont have mud access but once i try it ill let ya know!

:D
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