Ok here's the deal. When I'm using the MSET command on mobs or players or myself, I have a very annoying problem.
There seems to be no way to toggle the "affected by" paralysis flag. For example;
MSET <mob/player/whoever> affected <flag> is what I'm doing.
I can do: MSET bob affected blind , for example. That sort of thing works fine. Apparently all the others that I've tried will work too. But for some reason when I type in this command;
MSET bob affected paralysis
NOTHING happens. It tells me that "paralysis" is not a known flag. And yet, if a mob or players stuns someone else, and I go and MSTAT the stunned mob, sure enough, it says: "affected by: <blah> <blah> paralysis <blah> <blah>"
Am I missing something? Is there a reason I cannot manually set this flag like I can with so many others? Is it a typo of some kind in the code so that paralysis isn't the spelling I need to use when setting the flag? This is quite annoying and I would really like to be able to set or remove this flag on mobs and players when necessary.
Any and all help is appreciated here. Thanks in advance everyone.
For reference I'm using the precompiled windows version of 1.4a available from this very site.
My bet is that paralysis, like a few other odd spells, displays a different name than the actual flag used in the affect. Check the spell function behind paralysis to be sure what the actual act_flag is.
"My bet is that paralysis, like a few other odd spells, displays a different name than the actual flag used in the affect. Check the spell function behind paralysis to be sure what the actual act_flag is."
While I appreciate the suggestion, this doesn't really help me at all. First, paralysis doesn't come from any specific spell that I know of. There isn't one in the stock 1.4a distro capable of causing paralysis to my knowledge, so I'm not sure if there's even a way to check what you're talking about. Secondly, as I made sure to mention, I'm using the pre-compiled version and have no means of checking the coding of the spell function, if such a spell function even exists for this particular affect.
There is a stun skill that causes you to be "affected by: paralysis" for a certain number of rounds, and has a function, "do_stun" but as stated I have no way of seeing the code for "do_stun" , which itself may or may not help anyway.
So can someone, anyone, PLEASE just tell me what the heck I'm doing wrong that I cannot mset someone as affected by "paralysis" ? It has to be a typo or a mismatched affect name or something, because clearly there is such a flag, becuase the game implements it when you're stunned, and you can set mobs with the area editor as "affected by: paralysis" too. I just cannot stand it when the game tells me, "paralysis - no such flag" or whatever, despite me seeing with my own eyes, "Affected by: paralysis" I'm sure those with more experience than myself must know the answer to this, or at least know what I'm talking about. I am begging for your help here.
Again I appreciate any help, but bear in mind that I'm not able to sift through the source because I have the pre-compiled version.
Try using stun instead of paralysis since you have a do_stun function. Also, to check the code behind the spell functions, its possible to download the src for most codebases and read them in most text editors. It is alsopossible that paralysis uses an act2 flag and unless the set function has been expanded to include extra flag structures you cant set them at all. I suggested checking the code behind the function as most people Ive dealt with that use a precompiled codebase still download the src just for situations like this.
Outstanding. I guess it as some kind of typo / mismatching afterall. Bizarre though. In any case, thanks a million. You are the definately the 'man. ;)