 |
| Arzoc |
Posted: Mon Jan 07, 2008 8:00 pm
#when? |
 |
Leitia Adept

Joined: 04 May 2007 Posts: 292 Location: Boston
|
Posted: Sun Mar 16, 2008 7:34 am |
Check it on every prompt and check it every time you have an effecting event, say you wake up, you need to check then because you were unable to act before then.
That also requires you to confirm you have eaten goldenseal, or you will clear the flag and still be afflicted. If illusions are involved you may further consider if you had tried to eat goldenseal, I think that is how that works |
|
|
|
 |
Arzoc Beginner
Joined: 07 Jan 2008 Posts: 18
|
Posted: Sun Mar 16, 2008 10:58 am |
That is no problem, I have a p_cured alias which deletes the item from @afflictions when the curing message is given.
But let's give an example :
I'm afflicted with stupidity (healed by goldenseal), it triggers the command to eat goldenseal but I was asleep so I didn't eat it. Now stupidity still is an item in @afflictions, but it won't heal it anymore because of the %1 in my p_afflicted alias.
You see?
It's a temperary solution for now, but I want to replace the %1 into something that checks the @afflictions variable. |
|
|
|
 |
Leitia Adept

Joined: 04 May 2007 Posts: 292 Location: Boston
|
Posted: Mon Mar 17, 2008 11:52 am |
the triggers should set %1 in @afflicted, that should be the last you need it for
p_afflicted will cure @afflicted with something like #if (@I_Have_Balance) {#exec %db(@herb_cures,%item(@afflicted,1))}
my thoughts about what events to check it on were conjecture, all events are followed by a prompt so I think you can just call p_afflicted every time the prompt triggers
then you need to put p_afflicted in the prompt trigger, but your @I_Have_Balance is too much to check on every prompt so eventually you will want to make a flag to check instead that tells you to run p_afflicted
#if (@flag = 1) {p_afflicted}
though p_afflicted is specialized so the curing system grows
#case @flag {p_afflicted} {writhe_script}
and so forth
though you likely won't have a case in a prompt, was just saying |
|
|
|
 |
|
|
|
|
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
|
|