[Home] [Downloads] [Search] [Help/forum]

Gammon Software Solutions forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  SMAUG
. -> [Folder]  SMAUG coding
. . -> [Subject]  New Race - Special affected by

Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

New Race - Special affected by

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page


Posted by AkiraMuyo   (41 posts)  [Biography] bio
Date Sat 27 Oct 2001 11:40 AM (UTC)  quote  ]
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
[Go to top] top

Posted by Kelsid   USA  (35 posts)  [Biography] bio
Date Reply #1 on Mon 29 Oct 2001 09:19 AM (UTC)  quote  ]
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
[Go to top] 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.


1,772 views.

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

[Home]

Written by Nick Gammon - 5K

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( http://www.gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Internet Contents Rating Association (ICRA) - 2K]    [Web site powered by FutureQuest.Net]