Is it possible to make "wandering monsters"??

Moderator: Event DM

Post Reply
AyounTheDark
Sage
Posts: 2654
Joined: Tue Feb 15, 2005 7:11 pm
Location: Fortress of untamed Fury in Ysgard. (GMT +1)

Is it possible to make "wandering monsters"??

Post by AyounTheDark » Mon Apr 30, 2007 9:27 pm

I've been trying to peek some more at the DM-client, and came to wonder if there's means of making "wandering monsters". A term some may have known/used in their PnP days (and maybe still do).

I was thinking along of these two possibilities.:

1) As I've seen some tavern maids "wander" in strange "patterns", that could be one to use, to create more randomness in dungeons/encounters.
But could this be possible with a small group moving together? (Some small patrol for example)

2) I thought about if it was possible to make an area with a %-age chance for some spawn to appear, and at random what kind/strength of the spawn too. - Again to add to the unpredictability of a dungeon/encounter.


Does anyone bright out there know how to do either, or both of the above?


Thanks.

Whisper
High Fury Templar
Champion of Ra-Ghul
Master of the AKN
Quartermaster of AAAA

Webninjas are stealthy. Be careful.
Member of the Ghostie fan club
Grunt wrote:I'll third this for fuck's sake. Who gives a shit about sanity. :D
User avatar
Talwin Hawkins
Team Member; Retired with Honors
Posts: 3980
Joined: Fri Aug 27, 2004 7:56 pm
Timezone: GMT+1
Location: London - England GMT

Post by Talwin Hawkins » Mon Apr 30, 2007 9:40 pm

For the wandering maid thing that is easy. All you need is waypoints. They are invisble flags that the NPCs follow in whatever order you give them. AFAIK this cannot be done in the DM client, though someone smarter can confirm this.

As for the %chances, im almost certain that something like this can be entered in the onarea event of the trigger. Again someone smarter can explain this further.
User avatar
Final Shinryuu
Sage
Posts: 2060
Joined: Thu Jun 24, 2004 3:20 am
Location: http://hades.mercuric.net/

Post by Final Shinryuu » Mon Apr 30, 2007 10:12 pm

These are both easily doable.
User avatar
Cassandros
Scholar
Posts: 1186
Joined: Sun Jun 26, 2005 2:32 pm
Timezone: +11
Location: Australia

Post by Cassandros » Tue May 01, 2007 12:56 am

There is a variable you can apply to creatures in the Toolset that makes them wander around, look bored/tired etc but they will not wander into other areas.
Currently Playing:
- Kalgar Darthvord
- Kalum Brekarian
AyounTheDark
Sage
Posts: 2654
Joined: Tue Feb 15, 2005 7:11 pm
Location: Fortress of untamed Fury in Ysgard. (GMT +1)

Post by AyounTheDark » Tue May 01, 2007 7:07 am

Sounds good. Now all I have to figure is how to get that dun.

But say in option 2, I can choose to have several variables to make the following:

Trigger area with 20% to spawn a bunch of critters;

01-10 Kobold swat team
11-25 Gnoll fanatics
26-50 Frenzied maidens of Dre'ana
51-75 ...


Can it be dun like that, or how?

Whisper
High Fury Templar
Champion of Ra-Ghul
Master of the AKN
Quartermaster of AAAA

Webninjas are stealthy. Be careful.
Member of the Ghostie fan club
Grunt wrote:I'll third this for fuck's sake. Who gives a shit about sanity. :D
User avatar
Horred the Plague
Apprentice Scholar
Posts: 500
Joined: Thu Sep 08, 2005 5:21 am

Post by Horred the Plague » Tue May 01, 2007 12:47 pm

AyounTheDark wrote:Sounds good. Now all I have to figure is how to get that dun.

But say in option 2, I can choose to have several variables to make the following:

Trigger area with 20% to spawn a bunch of critters;

01-10 Kobold swat team
11-25 Gnoll fanatics
26-50 Frenzied maidens of Dre'ana
51-75 ...


Can it be dun like that, or how?
This 'can' be done, and it does not even take an "encounter trigger" to do so. A system could be set up to look for local variables set on the trigger, with a universal script to spawn them. Put this script in the trigger's OnEnter event slot. This type of system could be set up a number of ways, depending on preferrences.

If dealing with a specific area, you could even choose the location that each spawning creature appears at, and/or when they appear. It has to be done on a per case basis, and would require a little more scripting...plus some planning to pick the right locales. This is definitely the 'neatest' way to set them up, but it requires more work than a generic system would.
User avatar
Rhissaerk Jalesh
Team Member; Retired with Honors
Posts: 1820
Joined: Fri Aug 06, 2004 4:00 am

Post by Rhissaerk Jalesh » Tue May 01, 2007 1:01 pm

Wandering monsters supposedly generate lag. I could be wrong on that but it's why I've never used any. Even when I really wanted too...*sniffs*

I had a random encounter system but it also, sadly, generated lag, so I had to scrap it. There is a way to do one that DOESN'T generate lag though, but it's beyond my meager crappy coding skills. Infact, so is the random encounter system I HAVE, someone else coded it FOR me. *chuckles*

If lag isn't an issue for you though, I think I still have that random encounter code lying around here somewhere, I could send it to you.
Last edited by Rhissaerk Jalesh on Tue May 01, 2007 11:06 pm, edited 1 time in total.
User avatar
Mabus
Prince of Bloated Discourse
Posts: 181
Joined: Tue May 16, 2006 3:49 am
Timezone: -8 PST
Location: Sigil, The Hive Ward (PST -8)

Post by Mabus » Tue May 01, 2007 6:02 pm

I wouldn't mind gettting that code myself.
"In the end all things betray you. Honor. Ideals. Heroism. Allies. Comrades. Lovers. Your eyes. Your limbs. Your heart. And in the end, you betray yourself. And that is the greatest betrayal of all."

"Heroes never die from old age."
AyounTheDark
Sage
Posts: 2654
Joined: Tue Feb 15, 2005 7:11 pm
Location: Fortress of untamed Fury in Ysgard. (GMT +1)

Post by AyounTheDark » Wed May 02, 2007 7:33 am

Rhissaerk Jalesh wrote:If lag isn't an issue for you though, I think I still have that random encounter code lying around here somewhere, I could send it to you.
I'd appreciate it, at least to puzzle with it and test it some. :)

Whisper
High Fury Templar
Champion of Ra-Ghul
Master of the AKN
Quartermaster of AAAA

Webninjas are stealthy. Be careful.
Member of the Ghostie fan club
Grunt wrote:I'll third this for fuck's sake. Who gives a shit about sanity. :D
User avatar
mhogar
Power Crafter
Posts: 2969
Joined: Sat Feb 19, 2005 6:33 pm
Timezone: GMT +1
Location: In HEAL storage room

Post by mhogar » Wed May 02, 2007 12:50 pm

let me guess:

Code: Select all

int nValue = Random(100) + 1; /* creates a random number between 1 and 100 */
string sCreature;
location lLoc;

if (nValue == 100){

   /* create an encounter with Whisper the Snake */

   sCreature = "WHISPERSNAKE";
   lLoc = GetLocation(OBJECT_SELF);
   ActionDoCommand(ActionCreate(sCreature, lLoc));

}
/* and more if's */
:lol:

Some day I may start coding ....
Post Reply