Initial upload
Initial upload. PRC8 has been added. Module compiles, PRC's default AI & treasure scripts have been integrated. Started work on top hak for SLA / Ability / Scripting modifications.
This commit is contained in:
70
_module/nss/jw_zen_milit_con.nss
Normal file
70
_module/nss/jw_zen_milit_con.nss
Normal file
@@ -0,0 +1,70 @@
|
||||
//::///////////////////////////////////////////////
|
||||
//:: swt_NPC_random
|
||||
//:: swt_NPC_random.nss
|
||||
//:: Copyright (c) 2001 Bioware Corp.
|
||||
//:://////////////////////////////////////////////
|
||||
/*
|
||||
|
||||
*/
|
||||
//:://////////////////////////////////////////////
|
||||
//:: Created By: Lysandius
|
||||
//:: Created On: 09-07-2002
|
||||
//:://////////////////////////////////////////////
|
||||
|
||||
|
||||
|
||||
void main()
|
||||
{
|
||||
//if(d3() == 1)
|
||||
{ object oPC=GetLastSpeaker();
|
||||
object oMe=OBJECT_SELF;
|
||||
ClearAllActions();
|
||||
AssignCommand(oPC,ClearAllActions());
|
||||
AssignCommand(oPC,SetFacingPoint(GetPosition(oMe)));
|
||||
SetFacingPoint(GetPosition(oPC));
|
||||
|
||||
|
||||
|
||||
int nRandom=Random(6)+1;
|
||||
string sText;
|
||||
switch (nRandom)
|
||||
{
|
||||
case 1: sText="The Zhents are doing something terrible in the temple. It is drawing power from somewhere.";
|
||||
break;
|
||||
|
||||
case 2: sText="We did what we could to resist the Zhents, but they are too strong for us and now there are hardly any of us left.";
|
||||
break;
|
||||
|
||||
case 3: sText="We smashed the Zhents' headquarters alright, but they took it out on our loved ones.";
|
||||
break;
|
||||
|
||||
case 4: sText="Midoc has some sort of plan, but we don't have the strength to carry it out.";
|
||||
break;
|
||||
|
||||
case 5: sText="However many Zhents we killed, they just bought in reinforcements. I don't know what will become of this town.";
|
||||
break;
|
||||
|
||||
case 6: sText="I don't know which threat is worse, the Zhents or the drow.";
|
||||
break;
|
||||
|
||||
}
|
||||
|
||||
int nDisguised=0;
|
||||
if (GetTag(GetItemInSlot(INVENTORY_SLOT_CHEST,oPC))=="jw_zhent_splint"||GetTag(GetItemInSlot(INVENTORY_SLOT_CHEST,oPC))=="jw_new_zh_robe")
|
||||
{
|
||||
nDisguised=1;
|
||||
}
|
||||
|
||||
if (nDisguised==1)
|
||||
{
|
||||
|
||||
ActionSpeakString("I guess this is it - you're here to kill us.");
|
||||
}
|
||||
else
|
||||
{
|
||||
ActionSpeakString(sText);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user