The mob prog tends to fire several times on just one prompt. I had an act argument set to 'faint $n' whenever someone fainted on the mob, but then the mob would spam me and faint on my like 9 times. Also, whenever I forced the mob to do anything, or interacted with it in a few other ways, it would faint on me once.
Does the argument prompt work on a keyword basis perhaps? If it's string, then I have no idea why it's firing repeatedly. It's also firing twice whenever I try using my speech prog of 'hello'. The documentation doesn't mention this, or any troubleshooting for that matter.
I think it is certainly possible to send a mob program into a loop. For example, if a program matched on "sigh" and the program forced the player to sigh, then you would have a loop.
It is hard to be more specific in your case without seeing the program.
Can you please either send me the entire area by email, or post here the mob program in question, so I can try it out and see for myself?
How do I get the MOB COMMANDS to work?? (i.e. MOB TRANSFER, MOB FORCE, MOB KILL, MOB THIS, MOB THAT) Like the entire second half of the 22 or so page Mobprogs.doc file covers these and just how useful and important they are. However, I have no idea how to get the bloody things to work! They don't seem to be supported in Area Editor, so could someone tell me how to put those things in manually? Thanks :)
There are various examples in newacad.are file. Here is one:
if class ($r) == Mage
mpechoat $r The ground opens beneath you! You drop into the Mages portal.
mpechoat $r You land in the Mages Hall with a bounce.
mpechoaround $r $r disappears down a portal marked: Mages Only!
mptransfer $r 10323
mpat $r mpforce $r bounce
endif
I would recommend you read some building guides written for your codebase. Even if they are writtten for on-line building, the same principles work on AE, you just don't used the same commands.
They will explain about triggers, mpcommands and other mobprogram ( or rprog and oprog too ) things. Writing a mprog on AE does not, in my opinion, differ much from writing on the mud. In one case you type it on a window, in another the text editor, but the contents of the program are the same.
If you are using Smaug, I can give you the URL to the guide I used when learning. It was written by Tank and can be found at: http://dod.hpi.net/building.html