|
FarrixStormcrow Newbie
Joined: 04 Jan 2002 Posts: 4
|
Posted: Fri Jan 04, 2002 7:36 pm
Help the newbie |
I play on achaea
What I want to do is be able to cure various afflictions automaticly using variables and triggers, but becuz you can have mulitple afflictions and have to wait a small time between each cure, also some are more dangerous than others and they have to be taken care of first.
So if I had something like
#tr {^Your (%w) leg has been greatly damaged} {#var legbreak=1}
#tr (^Your mind is drowned in confusion} {#var conf=1}
Basically I need to know how to take care of the if statements and how to target the broken leg first so I could obviously be able to runaway :)
the ifs would be if #var legbreak=1 then do cure wait for you can cure again message then set legbreak to 0 so it could be used again |
|
|
|
Crymson4 Novice
Joined: 20 Nov 2001 Posts: 35 Location: USA
|
Posted: Fri Jan 04, 2002 8:06 pm |
Depending on how many "afflictions" there are, this could be quite involved. To start with, make a class folder called "Injuries" or something similar. Leave it enabled at all times, since it will work when you want it to, and be dormant when you aren't injured.
Inside that folder, make a trigger for every possible injury you can get, (like you did above), and assign a var for every affliction.
You can then make one large nested #IF to generate the "priority" you want.
For example: If legbreak is more important than confusion, it would something like this:
#IF (@Legbreak=1) {cure legbreak} {
#IF (@Confusion=1) {cure confusion} {
#IF (status3=1) {cure status 3..etc etc}
Now, if there is no chance for failure, you want to set your #VAR's back to 0, so next time the trigger fires, it won't try to heal a wound you don't have.
Keep in mind, this #IF goes with every trigger, so if more than one injury happens in a combat round, it'll repeat the cure for every injury. Also the reason you want to set your #VAR back to 0, no need to try and cure a broken leg 5 times if it only takes once. If you can fail at a cure skill, then the trigger becomes a little more involved. You'd have to write a repeat trigger in there, but that's for another day.
Keep in mind, this is totally untested.
Good luck
-=Crymson
Someone once said "Don't try to be a great man, just be a man; and let history draw it's own conclusions.". |
|
|
|
iljhar GURU
Joined: 10 Oct 2000 Posts: 1116 Location: USA
|
Posted: Fri Jan 04, 2002 8:09 pm |
Well, some questions come to mind. First, can you cure yourself during a fight or will you have to finish the fight first before you can start healing yourself? Second, if you can heal yourself during the fight, how long do you want to wait until you start healing something. For instance, say in the 3rd round of battle, you get hit by the confusion spell. Then, in the 7th round of battle, you get your leg broken. Since the broken leg is more severe, do you hold off curing the confusion spell for a more severe ailment or do you try to cure it right away and hope not to get something more serious in the next rounds of battle? If you have to wait until the end of battle, then it'd be easier as you would just use a string list to give precedence to certain ailments and everything would be fine. If you could give me some more info, I can work out a skeleton of the script for you. There was something similar to this, but I can't remember what the topic was about and no idea who posted it or whatnot.
Iljhar |
|
|
|
FarrixStormcrow Newbie
Joined: 04 Jan 2002 Posts: 4
|
Posted: Fri Jan 04, 2002 9:25 pm |
Well first off you can cure during the fight
though there is for lack of better term a "cure balance" ie you have to wait a small amount of time before you can cure another ailment. There are 2 ways to cure either by a magic salve...mainly for your broken limbs
and healing herbs...which are for your confusion and other mind related ailments...both can be used simultaneously...you just have to wait the small amount of time before you could take care of another limb or ailment. So if you could got your leg damaged and stuck by confusion at the same they could be taken care of at the same time...with a salve and herb, however there are about 30 different afflictions that herbs can cure, hence the need to priortize, and having both arms and legs broken, you'd need to fix your legs first for the runaway tactic |
|
|
|
|
|
|
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
|
|