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


Register forum user name Search FAQ

Gammon Forum

[Folder]  Entire forum
-> [Folder]  SMAUG
. -> [Folder]  Running the server
. . -> [Subject]  Spells are not recognized

Spells are not recognized

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


Posted by Oblisgr   (123 posts)  [Biography] bio
Date Sat 29 Feb 2020 10:05 PM (UTC)

Amended on Sat 29 Feb 2020 11:25 PM (UTC) by Oblisgr

Message
For smaugfuss 1.9.3

I face a bug.
I create a spell with everything properly set up but the smaug is not recognizing it as spell.
Anyone has a clue?


slookup "drain agility"
Sn:  121 Slot: 10001 Spell: 'Drain agility       '
Saves: none  SaveEffect: none
Type: Spell  Target: offensive  Minpos: 0  Mana: 0  Beats: 0  Range: 0
Flags: 0  Guild: -1  Value: 0  Info: 0  Code: (null)
Sectors Allowed: All
Dammsg: 
Wearoff: (none set)



  0% Drain agility         0% Drain endurance       0% Drain intelligence  
  0% Drain luck            0% Drain personality     0% Drain strength      
  0% Drain willpower      28% Rend                
----------------------------------[Spells]----------------------------------
 19% Shield               19% Shock damage        
[Go to top] top

Posted by Nick Gammon   Australia  (23,017 posts)  [Biography] bio   Forum Administrator
Date Reply #1 on Sun 01 Mar 2020 03:59 AM (UTC)
Message
What do you mean "not recognized"? I see it right there in your second box:

Quote:

0% Drain agility


You will need to explain what you are expecting to happen, and what is actually happening.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Oblisgr   (123 posts)  [Biography] bio
Date Reply #2 on Sun 01 Mar 2020 09:14 AM (UTC)
Message
if you can see on the spells list fot example the (shield) and the (shock damage) appear under the spells tab while the rest of the spells outside it.

They are all spells but smaug separates them.
[Go to top] top

Posted by Nick Gammon   Australia  (23,017 posts)  [Biography] bio   Forum Administrator
Date Reply #3 on Sun 01 Mar 2020 10:47 AM (UTC)

Amended on Sun 01 Mar 2020 10:49 AM (UTC) by Nick Gammon

Message

I create a spell with everything properly set up but the smaug is not recognizing it as spell.

It’s properly set up, but not working, eh? So it isn’t properly set up, is basically it.

The spell list seems to be shown in the file act_info.c. I suggest you look at what conditions need to be met, in that file, for the spell to show up as a spell.

Rather than just asserting that it is properly set up, how about showing how you set it up?

I’m assuming the spells are in the file skills.dat, so perhaps show an excerpt from that file for a spell that works (eg. Shock damage) and then the entry that you used for one that doesn’t work (eg. Drain agility).

We can’t read minds, you know. We don’t know what coding changes you have made, nor what configuration changes you have made to files. Just a bare description of the problem, without any debugging, or showing what you have changed, is unlikely to get you any helpful results.


- Nick Gammon

www.gammon.com.au, www.mushclient.com
[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,002 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]