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?
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?