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


Register forum user name Search FAQ

Gammon Forum

[Folder]  Entire forum
-> [Folder]  SMAUG
. -> [Folder]  Running the server
. . -> [Subject]  Need A Program

Need A Program

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


Posted by Zehava   (1 post)  [Biography] bio
Date Mon 23 Apr 2001 07:22 PM (UTC)
Message
I am building a program that when the player enters the room a mobile will cast a spell.. say.. poison gas on the player. .. how would i do this.. i have never built a program... or is there an easier way to do it?

ICQ= 61771993

[Go to top] top

Posted by Kris   USA  (198 posts)  [Biography] bio
Date Reply #1 on Mon 23 Apr 2001 08:37 PM (UTC)
Message
You've got the right idea. It's actually absurdly simple. You make it a greet_prog, and, if using area editor, you put the probability (percentage from 1-99) of the program triggering in the 'arguments' field. If not using area editor, then it would be: greet_prog 99~ (this would make it so it fires 99% of the time; 100% never works for me)
After that, you put in the command:

cast 'gas breath' $n

$n tells the mob to cast the spell 'gas breath' on the player or mob that activated the trigger, in this case the player or mob that entered the room. Mobs can perform special admin commands as well (i.e. disconnect, slay, goto, transfer, etc). These are called 'mpcommands'. I would suggest you emerse yourself in some useful help files to start out, and then play around with them; get creative. Try the following help files:

help mpcommands
help mptriggers
help variables
help ifchecks

That should get you started. I also recommend you read the related help files it lists. If you want help on a specific ifcheck, then you do 'help ifcheck <ifcheck>'; i.e. if you want to know exactly how to use the ifcheck 'level', then you would type 'help ifcheck level' and it would give you a more detailed listing on that specific ifcheck. I hope this helps =)

Oh, and it's always better to encourage people to reply on the board rather than ICQ; if I had told you this via ICQ, then nobody else would benefit from my answer, which would result in the same questions getting asked over and over again (Nick explained this nuance to me a few times :P) =)
[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.


9,880 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]