void main() { int nDiceRoll1 = d100(1); int nDiceRoll2 = d100(1); int nDiceRoll3 = d100(1); int nDiceRoll4 = d100(1); int nDiceRoll5 = d100(1); int nDiceRoll6 = d100(1); int nDiceRoll7 = d100(1); int nDiceRoll8 = d100(1); if(nDiceRoll1 <= 20) { CreateObject(OBJECT_TYPE_CREATURE, "wrynnsoldier1", GetLocation(GetNearestObjectByTag("KuljherAttack1"))); } else if(nDiceRoll1 <= 50) { CreateObject(OBJECT_TYPE_CREATURE, "wrynnsoldier2", GetLocation(GetNearestObjectByTag("KuljherAttack1"))); } else { CreateObject(OBJECT_TYPE_CREATURE, "wrynnsoldier3", GetLocation(GetNearestObjectByTag("KuljherAttack1"))); } if(nDiceRoll2 <= 20) { CreateObject(OBJECT_TYPE_CREATURE, "wrynnsoldier1", GetLocation(GetNearestObjectByTag("KuljherAttack"))); } else if(nDiceRoll2 <= 50) { CreateObject(OBJECT_TYPE_CREATURE, "wrynnsoldier2", GetLocation(GetNearestObjectByTag("KuljherAttack"))); } else { CreateObject(OBJECT_TYPE_CREATURE, "wrynnsoldier3", GetLocation(GetNearestObjectByTag("KuljherAttack"))); } if(nDiceRoll3 <= 20) { CreateObject(OBJECT_TYPE_CREATURE, "wrynnsoldier1", GetLocation(GetNearestObjectByTag("KuljherAttack2"))); } else if(nDiceRoll1 <= 50) { CreateObject(OBJECT_TYPE_CREATURE, "wrynnsoldier2", GetLocation(GetNearestObjectByTag("KuljherAttack2"))); } else { CreateObject(OBJECT_TYPE_CREATURE, "wrynnsoldier3", GetLocation(GetNearestObjectByTag("KuljherAttack2"))); } if(nDiceRoll4 <= 20) { CreateObject(OBJECT_TYPE_CREATURE, "wrynnsoldier1", GetLocation(GetNearestObjectByTag("KuljherAttack3"))); } else if(nDiceRoll4 <= 50) { CreateObject(OBJECT_TYPE_CREATURE, "wrynnsoldier2", GetLocation(GetNearestObjectByTag("KuljherAttack3"))); } else { CreateObject(OBJECT_TYPE_CREATURE, "wrynnsoldier3", GetLocation(GetNearestObjectByTag("KuljherAttack3"))); } if(nDiceRoll5 <= 20) { CreateObject(OBJECT_TYPE_CREATURE, "wrynnsoldier1", GetLocation(GetNearestObjectByTag("KuljherAttack4"))); } else if(nDiceRoll5 <= 50) { CreateObject(OBJECT_TYPE_CREATURE, "wrynnsoldier2", GetLocation(GetNearestObjectByTag("KuljherAttack4"))); } else { CreateObject(OBJECT_TYPE_CREATURE, "wrynnsoldier3", GetLocation(GetNearestObjectByTag("KuljherAttack4"))); } if(nDiceRoll6 <= 20) { CreateObject(OBJECT_TYPE_CREATURE, "wrynnsoldier1", GetLocation(GetNearestObjectByTag("KuljherAttack5"))); } else if(nDiceRoll6 <= 50) { CreateObject(OBJECT_TYPE_CREATURE, "wrynnsoldier2", GetLocation(GetNearestObjectByTag("KuljherAttack5"))); } else { CreateObject(OBJECT_TYPE_CREATURE, "wrynnsoldier3", GetLocation(GetNearestObjectByTag("KuljherAttack5"))); } if(nDiceRoll7 <= 20) { CreateObject(OBJECT_TYPE_CREATURE, "wrynnsoldier1", GetLocation(GetNearestObjectByTag("KuljherAttack6"))); } else if(nDiceRoll7 <= 50) { CreateObject(OBJECT_TYPE_CREATURE, "wrynnsoldier2", GetLocation(GetNearestObjectByTag("KuljherAttack6"))); } else { CreateObject(OBJECT_TYPE_CREATURE, "wrynnsoldier3", GetLocation(GetNearestObjectByTag("KuljherAttack6"))); } if(nDiceRoll8 <= 20) { CreateObject(OBJECT_TYPE_CREATURE, "wrynnsoldier1", GetLocation(GetNearestObjectByTag("KuljherAttack7"))); } else if(nDiceRoll8 <= 50) { CreateObject(OBJECT_TYPE_CREATURE, "wrynnsoldier2", GetLocation(GetNearestObjectByTag("KuljherAttack7"))); } else { CreateObject(OBJECT_TYPE_CREATURE, "wrynnsoldier3", GetLocation(GetNearestObjectByTag("KuljherAttack7"))); } }