 |
MadPsychoCoder Newbie
Joined: 15 Jan 2002 Posts: 2 Location: USA
|
Posted: Tue Jan 15, 2002 5:58 pm
A compilation of problems I'm having |
First of all, I have written a section of triggers to automatically heal my tank character in combat as well as self healing the healer character. Now the healer character's self healing is what I wanted to work on, its a trigger set firing off his prompt. So basically it looks like this, for part of the set at least:
#trigger {<%1/%2Hp %3/%4M %5/%6Mv %7/%8P>} {#if (%1 < @lowhealththresh) {cast 'major heal}
Now this works well and is very flexable, easly set and reset, threshhold changed etc, but I can not get the trigger to recognize > as greater then. See this particular trigger set turns off when my mana pool is empty so that I can use movement based skills if needed without being spammed every line about casting a spell I don't have mana for. So I wanted to change it so that when it turns off the class of autoheal spells, it could also turn on a greater then trigger to turn the class back on automatically when mana reaches over a specific level.
Secondly I can not seem to download this newest vesion of the beta update. I have never been able to download beta's off the website but my zmud always automatically told me when there was a new version availible and I would download it that way. This time if I select download now, nothing happens, my task bar icon for zmud dissapears and I have to control-alt-del in win 98 to close the zmud ghost thats still there in order to run zmud again. Personally I don't understand the refusal to just let all registered users who understand the ramifications of using beta software to download all beta updates.
Thirdly:
When I close down zmud 6.24 I get an error message sometimes saying that zmud will be shut down for an invalid page fault error but when you close the error message another smaller error message opens that just says error. Close the smaller error and the page fault error comes back and this continues to loop untill you control-alt-del on the smaller error and end zmud. It stops your computer from shutting down or rebooting till you deal with that issue.
Daniel Parsley
Remember, Love is EVERYTHING it is cracked up to be. Why do you think people who have not found it, are so cynical of its existance. |
|
|
 |
PrestoPimp Apprentice
Joined: 18 Sep 2001 Posts: 175 Location: USA
|
Posted: Wed Jan 16, 2002 7:08 am |
Since you've got yer prompt setup in a trigger already you want to defin your mana values as a variable I have my prompt setup to where it takes the current/maxhp and mana and mv and xptolevel and gold and stores them all into little variables..
Then, you put in your prompt trigger after all the variable crap..
#IF (@currentmana > *whatever value*) {
#T+ autoheal
}
that takes care of the mana problem.. as far as yer error problems go, I would suggest posting those in the beta forum
and only d/l the beta versions if there are updates that is immenant to your mudding existence, or you like unstable programs.
For tomarrow is another day, and other days come but 6 times a week. |
|
|
 |
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Wed Jan 16, 2002 5:34 pm |
I'd recommend changing to the preferred method of using wildcards in the trigger phrase and reserving the numbers for the trigger value (the commands it issues).
#TR {~<(%n)/(%d)Hp (%n)/(%d)M (%n)/(%d)Mv (%n)/(%d)P} {#IF (%3 > @lowmanathreshold) {#T+ name of class with healing trigger}}
LightBulb
All scripts untested unless otherwise noted |
|
|
 |
MadPsychoCoder Newbie
Joined: 15 Jan 2002 Posts: 2 Location: USA
|
Posted: Thu Jan 17, 2002 7:04 pm |
Yes, this looks like a much cleaner version of the trigger, so I will implement this, but the problem though was that I can't get it to recognize Greater then as >. Cause I want the program to automatically turn the turned off triggers for autohealing back on when I regen some mana. Maybe someone has an idea why less then works but greater than does not.
Daniel Parsley
Remember, Love is EVERYTHING it is cracked up to be. Why do you think people who have not found it, are so cynical of its existance. |
|
|
 |
PrestoPimp Apprentice
Joined: 18 Sep 2001 Posts: 175 Location: USA
|
Posted: Thu Jan 17, 2002 8:34 pm |
Try going into your commands menu with all the predefined keys you will see this by a screen with :,;,>,<,etc on it and see if the > is assigned to something other than greater than.. I dont have zmud installed on this hard drive yet, or I could tell you exactly where it is. If it is predefined and you dont want it that way, make it another character. And the way I posted above in my first post was the way you would do the mana thing.. read that part.
For tomarrow is another day, and other days come but 6 times a week. |
|
|
 |
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Fri Jan 18, 2002 6:47 am |
The greater-than (>) symbol should be recognized unless you're using it as a non-default special character. It's the MapDir special character by default, and still works fine in expressions. However, if you switched it to some of the other special character positions, it could easily make it unusable for expressions.
If you can't get it to work, you can just change to the less-than symbol and invert your expressions.
#TR {~<(%n)/(%d)Hp (%n)/(%d)M (%n)/(%d)Mv (%n)/(%d)P} {#IF (@lowmanathreshold <= %3) {#T+ name of class with healing trigger}}
or switch the true/false actions.
#TR {~<(%n)/(%d)Hp (%n)/(%d)M (%n)/(%d)Mv (%n)/(%d)P} {#IF (%3 <= @lowmanathreshold) {} {#T+ name of class with healing trigger}}
LightBulb
All scripts untested unless otherwise noted |
|
|
 |
|
|