|
qustion about skills and such
|
Reply to this subject
Start a new subject
 
Refresh page
| Posted by |
Typhon
USA (112 posts) bio
|
| Date |
Wed 03 Sep 2003 06:47 AM (UTC) [ quote
] |
| Message |
is there a way to set spells on a pc that they would normally not have because of their classes... i know in my code i can sset a skill on someone at say 100% and they can use it.. but not spells.. is there a way to maybe go about this.. or is there a way to possibly finish imping the personal skills code already in the stock smaug?
-typ | top |
|
| Posted by |
David Haley
USA (3,881 posts) bio
Moderator |
| Date |
Reply #1 on Wed 03 Sep 2003 07:41 AM (UTC) [ quote
] |
| Message |
| This should be fairly straightforward. I think the do_cast function makes sure that the player "should" have the spell. You'd just remove the check if spell->class == player->class. I don't have the exact line in front of me but it should be that simple. |
David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone
http://david.the-haleys.org | top |
|
| Posted by |
Typhon
USA (112 posts) bio
|
| Date |
Reply #2 on Wed 03 Sep 2003 07:53 AM (UTC) [ quote
] |
| Message |
| wouldnt that screw with the normal class spells that people get though.. i dont wanna change those.. but i wanna be able to give people a spell if theres a clan skill/god spell anything like that.. | top |
|
| Posted by |
Meerclar
USA (554 posts) bio
|
| Date |
Reply #3 on Wed 03 Sep 2003 08:30 AM (UTC) [ quote
] |
| Message |
| If the spell is conditional access you can add another check against the condition instead of removing the existing check. Granted, removing the existing is gonna be less headache but if ya wanna do it right..... |
Meerclar - Lord of Cats
Coder, Builder, and Tormenter of Mortals
Stormbringer: Rebirth
storm-bringer.org:4500
www.storm-bringer.org | 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.
2,087 views.
Reply to this subject
Start a new subject
 
Refresh page
top
Comments to:
Gammon Software support
Forum RSS feed ( http://www.gammon.com.au/rss/forum.xml )