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
➜ Dawn of Time
➜ Administration
➜ where can i find docs on spells and skills
where can i find docs on spells and skills
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Kos
(24 posts) Bio
|
Date
| Fri 08 Feb 2002 06:08 PM (UTC) |
Message
| I was wondering if there is some type of documentation that will help me in implementing new spells and skills.
thanks
Kos
Soon to be open Forsaken Lands | Top |
|
Posted by
| Astin
USA (34 posts) Bio
|
Date
| Reply #1 on Sun 10 Feb 2002 06:19 AM (UTC) Amended on Sun 10 Feb 2002 06:21 AM (UTC) by Astin
|
Message
| Hey,
As far as I know there is no written document on spell creation and skill creation. Creating them OLC only allows you to use the affects of spells/skills already implemented. To create a new spell or skill you must code it in. I hope this helps out a bit :)
-- Astin |
ICQ: 161947723
YIM: Astinof
AIM: Aerostatal
EMAIL: Astin@endlessdreams.org | Top |
|
Posted by
| Daos
USA (42 posts) Bio
|
Date
| Reply #2 on Sun 03 Mar 2002 07:05 AM (UTC) |
Message
| If you want to make your own spells and skills, the first thing I would recommend you do is to make your own spell/skill files. Mine for example are magic_ds.cpp, magic_ds.h, and skill_ds.cpp
The reason why you should make your own files when adding to the dawn src is so it makes your patching job a lot easier when future releases come out.
Use your .cpp files to place your spell/skill code in and use your personal magic_**.h file to place your spell declarations at.
After you have written your spell code, add your magic_**.h file as an #include to magic.h of the src code.
After you make your #include addition, edit dyntable.cpp with proper spell code and add in the global spell name code to gsn.h (EXTERN shint gsn_<spell/skill name>;)
If you are doing a skill, you will have to modify interp.cpp and interp.h for command interpretation.
For spells, files to modify are:
magic_**.cpp/.h
gsn.h
dyntable.cpp
magic.h (just one time to add your personal header spell file)
For skills, files to modify are:
skills_**.cpp
gsn.h
dyntable.cpp
interp.cpp/.h
Hope this brings some enlightenment.
- Daos | Top |
|
Posted by
| Kos
(24 posts) Bio
|
Date
| Reply #3 on Mon 04 Mar 2002 11:40 PM (UTC) |
Message
| |
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.
15,554 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top