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
➜ magic system coding
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Xinphinity
USA (26 posts) Bio
|
Date
| Wed 19 Oct 2005 04:46 PM (UTC) |
Message
| I'm bumbling my way through changes to the magic system.
First thing I did was remove the local function from magic.c say_spell. So now you see nothing (player, room, victim) when the casting is performed.
But here is what I want.
Firstly, I want to be able to have different messages for different classes of magic. If its cast by a mage, I want to have a message that is like 'you incant an arcane phrase and begin preparing the (spell name) spell', if by a cleric more like 'you quietly prepare a prayer to your god to provide you the (spell name) spell'.
I will determine the messaging on my own that is just an example. Now, if that wasn't tricky enough, I also want this to be spell level percent based, meaning, if they are casting it when they have 20% skill the message might be 'you nervously stammer an arcane phrase' whereas at 100% it would be 'you effortlessly incant'.
You get the point. Ok, next thing, and again I'm looking for advice on how and where to insert this - I'd gladly accept someones offer to provide this but that isnt my expectation.
I'd like to insert a 'preparation time' for the spells based again, on level. The caster can 'try' to cast it as soon as they have prepared it, but, until they reach full preparedness, the have a chance of failure based again on knowledge of the spell, level, and maybe even intelligence, etc.
Could someone evaluate what I am trying to do here and give me some feedback?
Thanks! | Top |
|
Posted by
| Zeno
USA (2,871 posts) Bio
|
Date
| Reply #1 on Wed 19 Oct 2005 05:00 PM (UTC) |
Message
| The first part shouldn't be too hard. Just make your own say_spell function, do an ifcheck for the different classes of mages, then a case switch for the percent.
As for the time, you mean like using cast, and then there's a time before the spell is cast? You'll have to use timers (IE, add_timer) for that, or if you just want a delay/waitstate on the player, that's a bit easier. |
Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.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.
10,224 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top