Name: OnEnter random high level
spawner
Description: For those of you who really can't stand the CR
system, and you don't feel like having a bunch of manually placed, high
level creatures in your module for people to get used to, here is your
template. This is similar to the tables found in the 1st Edition
MM2.
Instructions:
1). Make a waypoint somewhere in your area named "WP_Boss".
2). Drop this script into the OnEnter event of the Area Properties.
3). -optional- Make changes to the BlueprintResRef's in the script as
dictated by terrain (if necessary).
4). -optional- Make changes to frequency by changing the ">95" setting
to whatever you'd like. It defaults to a 5% chance of a spawn which I
think is plenty in a persistent world with 3 or more players.
5). -optional- customize the BlueprintResRef's to reflect rarity (that
is, if you want the d20 roll to spawn 1 common creature from 1-19 and a
different, very rare creature on a roll of 20).
NWScript:
void main()
{
int eChance;
string sTemplate;
location lLoca;
int nRoll;
lLoca = GetLocation(GetWaypointByTag("WP_Boss"));
if (GetIsPC(GetEnteringObject()))
{
{
eChance = d100(1);
if (eChance > 95)
{nRoll = d20(1);
if (nRoll == 1) {
sTemplate = "nw_beardireboss"; }
else if (nRoll == 2) {
sTemplate = "nw_willowisp"; }
else if (nRoll == 3) {
sTemplate = "nw_demon"; }
else if (nRoll == 4) {
sTemplate = "nw_halffnd001"; }
else if (nRoll == 5) {
sTemplate = "nw_slaaddthboss"; }
else if (nRoll == 6) {
sTemplate = "nw_mummyboss"; }
else if (nRoll == 7) {
sTemplate = "nw_golbone"; }
else if (nRoll == 8) {
sTemplate = "nw_helmhorr"; }
else if (nRoll == 9) {
sTemplate = "nw_shguard"; }
else if (nRoll == 10) {
sTemplate = "nw_golstone"; }
else if (nRoll == 11) {
sTemplate = "nw_airelder"; }
else if (nRoll == 12) {
sTemplate = "nw_eartheld"; }
else if (nRoll == 13) {
sTemplate = "nw_fireelder"; }
else if (nRoll == 14) {
sTemplate = "nw_watelder"; }
else if (nRoll == 15) {
sTemplate = "nw_drgblack001"; }
else if (nRoll == 16) {
sTemplate = "nw_drgcopp001"; }
else if (nRoll == 17) {
sTemplate = "nw_drgsilv001"; }
else if (nRoll == 18) {
sTemplate = "nw_drgbrass002"; }
else if (nRoll == 19) {
sTemplate = "nw_drggreen002"; }
else if (nRoll == 20) {
sTemplate = "nw_drgred002"; }
CreateObject(OBJECT_TYPE_CREATURE, sTemplate,lLoca, TRUE);
SetIsDestroyable(TRUE);}
}
}
}
All the blueprints included in the script are good as is. Enjoy
_________________
"We are building a religion - a limited edition..."
Brotherhood of Darkness - massive semi-persistent world
Click Here
|