Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ SMAUG ➜ SMAUG coding ➜ What is wrong with "Paralysis" in 1.4a ?

What is wrong with "Paralysis" in 1.4a ?

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Gatewaysysop   (14 posts)  Bio
Date Mon 13 Jan 2003 06:09 AM (UTC)

Amended on Mon 13 Jan 2003 06:11 AM (UTC) by Gatewaysysop

Message
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.

Top

Posted by Meerclar   USA  (733 posts)  Bio
Date Reply #1 on Mon 13 Jan 2003 08:29 AM (UTC)
Message
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.

Meerclar - Lord of Cats
Coder, Builder, and Tormenter of Mortals
Stormbringer: Rebirth
storm-bringer.org:4500
www.storm-bringer.org
Top

Posted by Gatewaysysop   (14 posts)  Bio
Date Reply #2 on Mon 13 Jan 2003 03:58 PM (UTC)
Message
"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.
Top

Posted by Meerclar   USA  (733 posts)  Bio
Date Reply #3 on Mon 13 Jan 2003 08:42 PM (UTC)
Message
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.

Meerclar - Lord of Cats
Coder, Builder, and Tormenter of Mortals
Stormbringer: Rebirth
storm-bringer.org:4500
www.storm-bringer.org
Top

Posted by Nick Gammon   Australia  (23,166 posts)  Bio   Forum Administrator
Date Reply #4 on Wed 15 Jan 2003 03:28 AM (UTC)
Message
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.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Gatewaysysop   (14 posts)  Bio
Date Reply #5 on Wed 15 Jan 2003 09:10 PM (UTC)
Message
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. ;)



Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


18,818 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.