Spells are not recognized

Posted by Oblisgr on Sat 29 Feb 2020 10:05 PM — 4 posts, 17,562 views.

#0
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        
Amended on Sat 29 Feb 2020 11:25 PM by Oblisgr
Australia Forum Administrator #1
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.
#2
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.
Australia Forum Administrator #3

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.