Mob format

For builders to discuss and ask building questions.
Post Reply
Enig
Sword Grand Master
Sword Grand Master
Posts: 787
Joined: Wed Dec 20, 2006 5:28 pm
Location: The Frozen North (Canada!)

Mob format

Post by Enig » Thu Mar 06, 2008 7:44 am

Hi! The description info for this mob is tentative, at best, and I'll probably end up colourizing him, but that's aside from my question. Actually, I'd like to make sure that I've got the standard format for mobs correct and since this is a simple mob with a simple prog it seemed a great test subject. Please tell me if I've written anything up incorrectly, or have forgotten vital information, and thanks in advance for your time :)

Code: Select all

#QQ00
bored apprentice abjurer
a bored-looking apprentice abjurer
An apprentice abjurer is standing here, looking bored.
He's a small human with incredibly average features dressed in the school uniform of the Turtle's Aegis.
~
U 15 Class_wizard race_human sex_male pos_standing deity_none
Act_citizen|Act_Sentinel
armor_type_cloth
d4+0 -200
11 15 10 13 13 13 13
0 0 0 0 0
Lang_Common
Lang_Common
0 0 0
>give_prog i1111~
if quest (0,1,$n)==0
  mpjunk $o
  sayto $n Congratulations.  You've solved the first puzzle.
  mpecho The apprentice looks and sounds extremely bored as he speaks.
  sayto $n Go ahead now, and good luck with the rest of your testing.
  mpmset $n 0 1 1
else
  mpecho The apprentice shrugs and eats the bread.
endif
~
|
User avatar
Kregor
Sword Grand Master
Sword Grand Master
Posts: 1474
Joined: Sun Jul 11, 2004 6:14 am
Location: Baldur's Gate

Re: Mob format

Post by Kregor » Thu Mar 06, 2008 12:00 pm

Enig wrote: U 15 Class_wizard race_human sex_male pos_standing deity_none
Act_citizen|Act_Sentinel
armor_type_cloth
All the above and below flags need to be in all upper case. The mud lives in the unix world, and type is case sensitive there.
d4+0 -200
the number following the hit die is the number of points per hit die added when the mob loads and levels up. If you subtract 200 from his d4, he's not going to be in too good shape :)

Smaug uses this number to artificially pump up a mobile because the combat AI in base Smaug sucks. For us, you can keep it to the mobile's CON bonus. which would be +1 in this mob's case.
Lang_Common
Lang_Common
Again, upper case flags
>give_prog i1111~
if quest (0,1,$n)==0
mpjunk $o
sayto $n Congratulations. You've solved the first puzzle.
mpecho The apprentice looks and sounds extremely bored as he speaks.
sayto $n Go ahead now, and good luck with the rest of your testing.
mpmset $n 0 1 1
else
mpecho The apprentice shrugs and eats the bread.
endif
~
If you want the bread to be gone regardless of the result, you'll need to move the junk command above the if check, otherwise, it will keep piling up on the mobile when it says he just eats it.
"There is no safety for honest men except by believing all possible evil of evil men."

Kregor - Ranger of Tangled Trees
Rozor - Lady Luck's Duelist
Tygen - Ranger-Bard of Mielikki
Dalvyn
Sword Grand Master
Sword Grand Master
Posts: 4708
Joined: Tue Jul 15, 2003 9:26 pm
Location: House of Wonder, Waterdeep

Re: Mob format

Post by Dalvyn » Thu Mar 06, 2008 1:24 pm

d4+0 -200
Actually, this part seems to be correct. The '-200' is the mob's alignment (CN in this case).

You forgot some tildas (~) though. Basically, each "string" of characters should be ended with a tilda, including
- the list of keywords
- the short description
- the long description
- the mob description
Image
Post Reply