Spell & Skill Creation

Posted by Yourdrunkendad on Fri 08 Aug 2003 05:50 AM — 5 posts, 21,684 views.

#0
Here's a little quote from the official smaug 1.4a help file.

sset create herb 'sunflower'
sset create skill 'coding'

Once you do that you will be able to set various fields on each:

name -- This is what the skill or herb is called in the above cases they would be set to sunflower and coding.
Example: sset 107 name sunflower

code -- This is the code executed when the skill/spell is called or the herb is used.
Example: sset 107 code spell_smaug

target -- This sets what type of spell it is or what it would affect. The options are ignore, offensive, defensive, self, objinv. Things like area attack/affect spells would use target ignore as well as the new missile type spells which must be target ignore, range>0, and use code type spell_smaug for it to be a ranged spell attack. Offensive would be used for damage/curse type spells, when cast on someone these will initiate a fight, for example the fireball spell. Defensive is used for things that should not initiate a fight when cast on another mob/pc, like sanctuary. Finally objinv is used for any spells cast on an object in your inventory, like enchant weapon.

Example: sset 107 target offensive

It makes no referrence to "107" at all, why it's there, what it means.. can someone please enlighten me?

Amended on Fri 08 Aug 2003 05:52 AM by Yourdrunkendad
Australia Forum Administrator #1
If you type "help sset" you see this:


help sset
SSET
Syntax: sset <victim> <skill> <value>
or:     sset <victim> all     <value>
or:     sset <sn>     <field> <value>


Thus it would seem that the number is a slot number (sn). Try typing "slookup all" to see the slot numbers ...


slookup all
Sn:    0 Slot:   95 Skill/spell: 'reserved            ' Damtype: none
Sn:    1 Slot:  246 Skill/spell: 'Wrath of Dominus    ' Damtype: none
Sn:    2 Slot:  302 Skill/spell: 'acetum primus       ' Damtype: acid
Sn:    3 Slot:   70 Skill/spell: 'acid blast          ' Damtype: acid
Sn:    4 Slot:  200 Skill/spell: 'acid breath         ' Damtype: acid
Sn:    5 Slot:  102 Skill/spell: 'alertness           ' Damtype: none
Sn:    6 Slot:  231 Skill/spell: 'animate dead        ' Damtype: none
Sn:    7 Slot:  224 Skill/spell: 'antimagic shell     ' Damtype: none
Sn:    8 Slot:  236 Skill/spell: 'aqua breath         ' Damtype: none

...


#2
Ok thanks, I have another question for you though. Every help file I find online says See online documentation for more information. In referrence to damtype, acttype, classtype, and powertype.

Does anyone actually know where this "online documentation" is? I sure as hell can't find it.
Australia Forum Administrator #3
Do have the document SMAUGDOC in the doc subdirectory? That seems to describe that sort of thing.
Australia #4
acttype, powertype ect isnt contained in the smaugdoc either, i seeem not to be able to find any reliable information about them either. What the docs do say is to see online information, but alas the dont seem to be any.

Robert Powell