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

Gammon Forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  SMAUG
. -> [Folder]  SMAUG coding
. . -> [Subject]  Problem with single spell
Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

Problem with single spell

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


Posted by Oblisgr   (26 posts)  [Biography] 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]
[Go to top] top

Posted by Fiendish   USA  (1,641 posts)  [Biography] 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
[Go to top] top

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

Posted by Fiendish   USA  (1,641 posts)  [Biography] 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
[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.


1,121 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 FutureQuest]