Initial Commit

Initial Commit
This commit is contained in:
Jaysyn904
2023-09-21 19:51:32 -04:00
parent 65b5bd7fd3
commit 102ba7dab6
6400 changed files with 5741850 additions and 0 deletions

24
_module/nss/test.nss Normal file
View File

@@ -0,0 +1,24 @@
#include "dungeon_inc"
void main()
{
int nNumber = 1;
int nLevel = GetHitDice(GetEnteringObject());
string sResRef = "dun_bos_mithgol";
int nACBonus = 2;
int nAtkBonus = 2;
int nDmgBonus = 2;
//Level 5: +2 to AC and attack
object oCreature;
int i;
for (i = 1; i <= nNumber; i++)
{
oCreature = CreateObject(OBJECT_TYPE_CREATURE, sResRef, GetLocation(GetWaypointByTag("testwp")));
LevelDungeonCreature(oCreature, nLevel, 1);
/*LevelHenchmanUpTo(oCreature, nLevel, CLASS_TYPE_INVALID, 0, GetCreatureStartingPackage(oCreature), PACKAGE_INVALID);
ApplyEffectToObject(DURATION_TYPE_PERMANENT, SupernaturalEffect(EffectAttackIncrease(nAtkBonus)), oCreature);
ApplyEffectToObject(DURATION_TYPE_PERMANENT, SupernaturalEffect(EffectACIncrease(nACBonus)), oCreature);
ApplyEffectToObject(DURATION_TYPE_PERMANENT, SupernaturalEffect(EffectDamageIncrease(nDmgBonus)), oCreature);*/
}
}