Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ SMAUG ➜ SMAUG coding ➜ Spell & Skill Creation

Spell & Skill Creation

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


Posted by Yourdrunkendad   (35 posts)  Bio
Date Fri 08 Aug 2003 05:50 AM (UTC)

Amended on Fri 08 Aug 2003 05:52 AM (UTC) by Yourdrunkendad

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


Shampoo is for sissies real men use poo*
[werd]thewerd.com "Smacking Your Mom Then Running Away"
Top

Posted by Nick Gammon   Australia  (23,158 posts)  Bio   Forum Administrator
Date Reply #1 on Fri 08 Aug 2003 07:43 AM (UTC)
Message
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

...



- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Yourdrunkendad   (35 posts)  Bio
Date Reply #2 on Fri 08 Aug 2003 01:48 PM (UTC)
Message
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.

Shampoo is for sissies real men use poo*
[werd]thewerd.com "Smacking Your Mom Then Running Away"
Top

Posted by Nick Gammon   Australia  (23,158 posts)  Bio   Forum Administrator
Date Reply #3 on Sat 09 Aug 2003 01:28 AM (UTC)
Message
Do have the document SMAUGDOC in the doc subdirectory? That seems to describe that sort of thing.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Robert Powell   Australia  (367 posts)  Bio
Date Reply #4 on Sat 06 Dec 2003 12:30 AM (UTC)
Message
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

Just a guy having a bit of fun. Nothing more, nothing less, I do not need I WIN to feel validated.
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.


17,376 views.

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

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.