Jaysyn904 102ba7dab6 Initial Commit
Initial Commit
2023-09-21 19:51:32 -04:00

25 lines
971 B
Plaintext

#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);*/
}
}