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 ➜ New Race - Special affected by

New Race - Special affected by

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


Posted by AkiraMuyo   (41 posts)  Bio
Date Sat 27 Oct 2001 11:40 AM (UTC)
Message
I'd like to give my brand new race a special affected by spell and/or skill. Now unfortunatly it doesn't show every spell in the affecte list, so how do I add my certain skill or spell to that affected list so that my new race can have that skill/spell?

Thanks for any advice,
Akira
Top

Posted by Kelsid   USA  (35 posts)  Bio
Date Reply #1 on Mon 29 Oct 2001 09:19 AM (UTC)
Message
Akira,


Youre actually talking about a large modification, first Id start in mud.h find the following code:

typedef enum
{
  AFF_BLIND, AFF_INVISIBLE, AFF_DETECT_EVIL, AFF_DETECT_INVIS, 
  AFF_DETECT_MAGIC, AFF_DETECT_HIDDEN, AFF_HOLD, AFF_SANCTUARY, 
  AFF_FAERIE_FIRE, AFF_INFRARED, AFF_CURSE, AFF_FLAMING, AFF_POISON, 
  AFF_PROTECT, AFF_PARALYSIS, AFF_SNEAK, AFF_HIDE, AFF_SLEEP, AFF_CHARM, 
  AFF_FLYING, AFF_PASS_DOOR, AFF_FLOATING, AFF_TRUESIGHT, AFF_DETECTTRAPS, 
  AFF_SCRYING, AFF_FIRESHIELD, AFF_SHOCKSHIELD, AFF_HAUS1, AFF_ICESHIELD, 
  AFF_POSSESS, AFF_BERSERK, AFF_AQUA_BREATH, AFF_RECURRINGSPELL,
  AFF_CONTAGIOUS, AFF_ACIDMIST,  AFF_VENOMSHIELD, MAX_AFFECTED_BY
} affected_by_types;



Then add the affect that you would like to the list. If you arnt comfortable with bitvectors, Id just reccomend replacing something. If you do, make sure you comment out all lines relavant to the replaced affect. Anyways... then you have to assign an ascii name to the bitvector in handler.c (much easier if yer just replacing an existing one) Then you need to create the spell in magic.c. If yer using an existing spell, under the af.duration add a simmilar statement as the following:


af.bitvector = meb(AFF_BLIND);
    affect_to_char( victim, &af );


Using the appropraite affect in place of AFF_BLIND.


Hope this helps, you got your work cut out fer ya.

If you need any other help... just get specific, and ill try to help you out.

-Kelsid

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


11,451 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.