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 ➜ qustion about skills and such

qustion about skills and such

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


Posted by Typhon   USA  (112 posts)  Bio
Date Wed 03 Sep 2003 06:47 AM (UTC)
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
Date Reply #1 on Wed 03 Sep 2003 07:41 AM (UTC)
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)
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  (733 posts)  Bio
Date Reply #3 on Wed 03 Sep 2003 08:30 AM (UTC)
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.


15,068 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.