The Lands of Arda Forum Index The Lands of Arda
The Greatest Neverwinter Nights Persistent World in The Lord of the Rings setting
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Important Notice: We regret to inform you that our free phpBB forum hosting service will be discontinued by the end of June 30, 2024. If you wish to migrate to our paid hosting service, please contact billing@hostonnet.com.
Random Encounters

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    The Lands of Arda Forum Index -> General Discussion
View previous topic :: View next topic  
Author Message
Aule
Vala


Joined: 28 Jan 2007
Posts: 64

PostPosted: Fri Jan 02, 2009 5:08 pm    Post subject: Random Encounters Reply with quote

I thought I would post how to do random encounters.

1) Create a new trigger in the desired area.
2) Create at least one and up to 4 waypoints where the creatures originate from.
3) Attach a new script in the OnEnter section.
4) Put the following line at the start of your script:

#include "inc_rndencounter"

5) Call the following function:

void call_random_encounter
(
float fNominalPartyLevel,
int nRespawnTime,
string sWaypointTag1,
string sWaypointTag2,
string sWaypointTag3,
string sWaypointTag4,
string sCreature1="", int nMinSize1=0, int nMaxSize1=0, int nWeight1=0,
string sCreature2="", int nMinSize2=0, int nMaxSize2=0, int nWeight2=0,
string sCreature3="", int nMinSize3=0, int nMaxSize3=0, int nWeight3=0,
string sCreature4="", int nMinSize4=0, int nMaxSize4=0, int nWeight4=0,
string sCreature5="", int nMinSize5=0, int nMaxSize5=0, int nWeight5=0
)


Note: The weights are use to select from the creature options. If you want them to be equally random, just make the weights all 1. Min/Max size is the quantity of creatures. Actual creature quantities scales to the size and level of the party.

Enjoy,
Aule
_________________
And the reality is the bright bubbles go towards the black sky as the silver minnow smirks at the echo of a grimace.
Back to top
View user's profile Send private message
SerraAvatar
Site Admin


Joined: 29 Jan 2007
Posts: 573

PostPosted: Fri Jan 02, 2009 5:55 pm    Post subject: Reply with quote

Nice, good to know. For the random bosses I added so far I used a slightly changed version of your Lizard Mage´s on Death script Smile
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    The Lands of Arda Forum Index -> General Discussion All times are GMT
Page 1 of 1

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001 phpBB Group
Web Hosting Directory
Chronicles phpBB2 theme by Jakob Persson (http://www.eddingschronicles.com). Stone textures by Patty Herford.


Start Your Own Video Sharing Site

Free Web Hosting | Free Forum Hosting | FlashWebHost.com | Image Hosting | Photo Gallery | FreeMarriage.com

Powered by PhpBBweb.com, setup your forum now!
For Support, visit Forums.BizHat.com