Problem with single spell

Posted by Oblisgr on Sat 10 Jun 2017 02:06 PM — 4 posts, 20,008 views.

#0
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]
USA Global Moderator #1
Typically a person must link to their code before we can help debug it.
#2
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.
USA Global Moderator #3
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.