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 ➜ Running the server ➜ Pets

Pets

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


Posted by Stan   (8 posts)  Bio
Date Fri 14 Sep 2001 01:23 PM (UTC)
Message
1)how can i make pets fight on command, like in pokemon?
2)how can i change the level display to powerlevel and make it so that the person adds to their powerlevel each hit?


if you dont know what i means then let me explain further...
i start out with a power level of 1000, i go fight a warrior and each hit adds to my powerlevel by 2.....how can i do that? its essential for my dragonball z mud.
Top

Posted by Nick Gammon   Australia  (23,166 posts)  Bio   Forum Administrator
Date Reply #1 on Sat 15 Sep 2001 01:18 AM (UTC)
Message
I'm not sure what you mean by "fight on command" as I haven't played Pokemon.

Can you give an example?

As for the powerlevel you could do that with a trigger that calls a small script that adds 2 to a powerlevel number (stored in a variable).

I don't know what the trigger will be, as you haven't said what a "hit" looks like, but the script would look like this:


sub HaveHit (strTriggerName, strLine, arrWildCards)
world.setvariable "powerlevel", world.getvariable ("powerlevel") + 2
end sub

- Nick Gammon

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

Posted by Stan   (8 posts)  Bio
Date Reply #2 on Sat 15 Sep 2001 04:16 PM (UTC)
Message
when i say fight on command i mean that the owner of the paet will say something like sparky attack fluffy, and sparky will attack fluffy and the pets will commence in a fight while the owners watch.
Top

Posted by Nick Gammon   Australia  (23,166 posts)  Bio   Forum Administrator
Date Reply #3 on Sun 16 Sep 2001 12:50 AM (UTC)
Message
I'm not too sure about that. I think you can "charm" pets but I have never done it.

- Nick Gammon

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

Posted by Creeper386   USA  (62 posts)  Bio
Date Reply #4 on Thu 01 Nov 2001 04:24 AM (UTC)
Message
Well don't know if anyone well read this but figured I post it here...

Wouldn't it work if you use the order command and have an if check for rather or not they are a pet if they are the command gets through if not... It doesn't?

I've seen this done on another mud not sure how it's coded but that seems feasible.

Creep
Top

Posted by Creeper386   USA  (62 posts)  Bio
Date Reply #5 on Thu 01 Nov 2001 04:27 AM (UTC)
Message
Or would it be possible to have a mob prog on the pets so that when something is said by the owner of the pet it would trigger the pet to do something?

Creep

Throwing out suggestions with my limited coding knowledge! :P
Top

Posted by Kelsid   USA  (35 posts)  Bio
Date Reply #6 on Fri 02 Nov 2001 06:16 AM (UTC)
Message
Actually.... You could just create a macro, Pets are permanently charmed so you could just say something outloud and follow it up with a ORDER <PET> to KILL <Critter>.


-Kelsid


P.S. If you are referring to player characters, you will need to comment out the appropraite lines preventing charmed creatures from attacking player characters in the function do_order.

-Kelsid
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.


24,019 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.