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


Register forum user name Search FAQ

Gammon Forum

[Folder]  Entire forum
-> [Folder]  SMAUG
. -> [Folder]  SMAUG coding
. . -> [Subject]  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] Refresh page


Posted by Typhon   USA  (112 posts)  [Biography] 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
[Go to top] top

Posted by David Haley   USA  (3,881 posts)  [Biography] 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
[Go to top] top

Posted by Typhon   USA  (112 posts)  [Biography] 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..
[Go to top] top

Posted by Meerclar   USA  (733 posts)  [Biography] 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
[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.


11,557 views.

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

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

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

[Best viewed with any browser - 2K]    [Hosted at HostDash]