[Home] [Downloads] [Search] [Help/forum]


Register forum user name Search FAQ

Gammon Forum

[Folder]  Entire forum
-> [Folder]  Area Editor
. -> [Folder]  General
. . -> [Subject]  MOB PROGS-- SMAUG

MOB PROGS-- SMAUG

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


Posted by Kris   USA  (198 posts)  [Biography] bio
Date Fri 09 Mar 2001 12:57 AM (UTC)

Amended on Fri 09 Mar 2001 12:59 AM (UTC) by Kris

Message
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.
[Go to top] top

Posted by Nick Gammon   Australia  (22,975 posts)  [Biography] bio   Forum Administrator
Date Reply #1 on Fri 09 Mar 2001 02:00 AM (UTC)
Message
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?

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Kris   USA  (198 posts)  [Biography] bio
Date Reply #2 on Tue 13 Mar 2001 08:20 PM (UTC)
Message
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 :)
[Go to top] top

Posted by Nick Gammon   Australia  (22,975 posts)  [Biography] bio   Forum Administrator
Date Reply #3 on Tue 13 Mar 2001 08:41 PM (UTC)
Message
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


- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Frostflower   Finland  (4 posts)  [Biography] bio
Date Reply #4 on Thu 05 Apr 2001 09:29 AM (UTC)
Message
To Kris

Hi,

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

Frostflower

[Go to top] 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.


14,677 views.

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

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

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

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at HostDash]