Welcome to the Builder Academy

Question NPC Groups with DG Scripts

More
04 Apr 2013 12:12 #1782 by zusuk
Is there a simple way to get mobiles to group up with DG Scripts?

Website
www.luminariMUD.com

Main Game Port
luminariMUD.com:4100

Please Log in or Create an account to join the conversation.

More
04 Apr 2013 19:43 #1784 by Rumble
Replied by Rumble on topic NPC Groups with DG Scripts
Yes, I'm at work and without MUD access.

Download TBAmud codebase
go to lib/world/trg directory
search for "follow" or "group"
copy a good example

Rumble
The Builder Academy
tbamud.com 9091
rumble@tbamud.com

Please Log in or Create an account to join the conversation.

More
05 Apr 2013 11:47 #1791 by Ornir
Replied by Ornir on topic NPC Groups with DG Scripts
Hi Zusuk,

I did this useing two scripts, one for the leader and one for the followers.

Both scripts are on-load.

The leader script sets up the group by having the mobile issue the grouping commands. The follower script follows the leader adn joins the group.

You knew this, but I thought I would post for others.

Please add to this Rumble, especially if you have a better way!

- R

Luminari - a Pathfinder/D&D inspired adventure!
www.luminarimud.com
luminarimud.com 4100
The following user(s) said Thank You: zusuk

Please Log in or Create an account to join the conversation.

More
05 Apr 2013 14:28 #1794 by Rumble
Replied by Rumble on topic NPC Groups with DG Scripts
There are several ways to do it depending on what you want.

Guards to protect a leader: mob fight trig

A group of wandering mobs: mob load trig

A mob responding to another mob: mob entry trig

More interactive stuff: a combination to include commands, and variables.

Rumble
The Builder Academy
tbamud.com 9091
rumble@tbamud.com

Please Log in or Create an account to join the conversation.

More
07 Apr 2013 09:59 #1829 by zusuk
Replied by zusuk on topic NPC Groups with DG Scripts
Thanks a ton, Ripley came on the MUD and showed us how to do it... was a lot easier than I thought :P

Website
www.luminariMUD.com

Main Game Port
luminariMUD.com:4100

Please Log in or Create an account to join the conversation.

Time to create page: 0.255 seconds