Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to "verify" your details, 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.
Entire forum
➜ SMAUG
➜ SMAUG coding
➜ Problem with single spell
Problem with single spell
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Oblisgr
(123 posts) Bio
|
Date
| Sat 10 Jun 2017 02:06 PM (UTC) |
Message
| I have created a spell (spell_smaug) with the following effects:
Mana +10*L
Move -10*L
Every time I try (with no success)to cast the spell, -10 mana is taken from my character even I have assign the spell to drain 0 mana. The move is not reduced.
If the spell is succeful is adds the mana assigned and reduces the move, properly.
why this happens?
Here is a screeshot of my slookup:
[URL=http://s91.photobucket.com/user/oblisgr/media/evocation_zps3phvxvhv.png.html][IMG]http://i91.photobucket.com/albums/k309/oblisgr/evocation_zps3phvxvhv.png[/IMG][/URL] | Top |
|
Posted by
| Fiendish
USA (2,533 posts) Bio
Global Moderator |
Date
| Reply #1 on Sun 11 Jun 2017 09:11 PM (UTC) |
Message
| Typically a person must link to their code before we can help debug it. |
https://github.com/fiendish/aardwolfclientpackage | Top |
|
Posted by
| Oblisgr
(123 posts) Bio
|
Date
| Reply #2 on Mon 12 Jun 2017 10:14 AM (UTC) |
Message
| It is core code.
As I have understood the spell_smaug by default gets -10mana at fail casting and -20mana at successful by default if 0 is the cost. | Top |
|
Posted by
| Fiendish
USA (2,533 posts) Bio
Global Moderator |
Date
| Reply #3 on Mon 12 Jun 2017 10:01 PM (UTC) |
Message
|
Quote: It is core code.
Core code in what? There are like a billion different versions of SMAUG. Can you link to your files somewhere?
Quote: I have created a spell
Doesn't sound like core code to me. It sounds to me like something that you have created. |
https://github.com/fiendish/aardwolfclientpackage | 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,026 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top