Aule Vala
Joined: 28 Jan 2007 Posts: 64
|
Posted: Fri Jan 02, 2009 5:08 pm Post subject: Random Encounters |
|
|
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. |
|