What is wrong with "Paralysis" in 1.4a ?

Posted by Gatewaysysop on Mon 13 Jan 2003 06:09 AM — 6 posts, 20,665 views.

#0
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.

Amended on Mon 13 Jan 2003 06:11 AM by Gatewaysysop
USA #1
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.
#2
"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.

Thanks again everyone.
USA #3
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.
Australia Forum Administrator #4
Internally it seems to be _paralysis, see below:


<3000hp 5000m 3100mv> mstat self
Name: Lordrom             Status : Non-Deadly
User: (broken pipe)@127.0.0.1   Descriptor: 10  Trust: 0  AuthBy: (unknown)
Vnum: 0        Sex: male      Room: 10357    Count: 1   Killed: 0
Str: 18 )( Int: 18 )( Wis: 14 )( Dex: 14 )( Con: 16 )( Cha: 14 )( Lck: 16
Level   : 65              Class  : 00/Mage         Race      : 00/Human     
Hps     : 3000/3000       Mana   : 5000/5000       Move      : 3100/3100   
Hitroll : 5               Align  : 0               ArmorClass: 76
Damroll : 5               Wimpy  : 0               Position  : 12
Fighting: (none)          Master : (none)          Leader    : (none)
Deity   : (none)          Favor  : 0               Glory     : 0 (0)
MentalState: -12   EmotionalState: 0     Thirst: 40   Full: 47   Drunk: 0
Save versus: 0 0 0 0 0       Items: (8/13000)  Weight (1023/1000000)
Year: 1620   Secs: 11545552  Timer: 0  Gold: 267
PlayerFlags: autoexits autoloot blank combine prompt holylight ansi autogold
Pcflags    : nstart
Affected by: none
Speaks: -1   Speaking: 1   Experience: 2000
Languages  : common elvish dwarven pixie ogre orcish trollese rodent insectoid mammal reptile dragon spiritual magical goblin god ancient halfling clan gith 

<3000hp 5000m 3100mv> mset self affected _paralysis

Build: Lordrom: mset self affected _paralysis

<3000hp 5000m 3100mv> mstat self
Name: Lordrom             Status : Non-Deadly
User: (broken pipe)@127.0.0.1   Descriptor: 10  Trust: 0  AuthBy: (unknown)
Vnum: 0        Sex: male      Room: 10357    Count: 1   Killed: 0
Str: 18 )( Int: 18 )( Wis: 14 )( Dex: 14 )( Con: 16 )( Cha: 14 )( Lck: 16
Level   : 65              Class  : 00/Mage         Race      : 00/Human     
Hps     : 3000/3000       Mana   : 5000/5000       Move      : 3100/3100   
Hitroll : 5               Align  : 0               ArmorClass: 76
Damroll : 5               Wimpy  : 0               Position  : 12
Fighting: (none)          Master : (none)          Leader    : (none)
Deity   : (none)          Favor  : 0               Glory     : 0 (0)
MentalState: -12   EmotionalState: 0     Thirst: 40   Full: 47   Drunk: 0
Save versus: 0 0 0 0 0       Items: (8/13000)  Weight (1023/1000000)
Year: 1620   Secs: 11545552  Timer: 0  Gold: 267
PlayerFlags: autoexits autoloot blank combine prompt holylight ansi autogold
Pcflags    : nstart
Affected by: paralysis
Speaks: -1   Speaking: 1   Experience: 2000
Languages  : common elvish dwarven pixie ogre orcish trollese rodent insectoid mammal reptile dragon spiritual magical goblin god ancient halfling clan gith 



The source in build.c seems to give the internal names, see this ...


char *  const   a_flags [] =
{
"blind", "invisible", "detect_evil", "detect_invis", "detect_magic",
"detect_hidden", "hold", "sanctuary", "faerie_fire", "infrared", "curse",
"_flaming", "poison", "protect", "_paralysis", "sneak", "hide", "sleep",
"charm", "flying", "pass_door", "floating", "truesight", "detect_traps",
"scrying", "fireshield", "shockshield", "r1", "iceshield", "possess",
"berserk", "aqua_breath", "recurringspell", "contagious", "acidmist",
"venomshield"
};


Not sure why this, but try that and see what happens.
#5
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. ;)