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.
65 lines
1.2 KiB
Plaintext
65 lines
1.2 KiB
Plaintext
////::///////////////////////////////////////////////
|
|
//:: NW_O2_ONOFF.nss
|
|
//:: Copyright (c) 2001 Bioware Corp.
|
|
//:://////////////////////////////////////////////
|
|
/*
|
|
Turns the placeable object's animation on/off
|
|
*/
|
|
//:://////////////////////////////////////////////
|
|
//:: Created By: Brent
|
|
//:: Created On: January 2002
|
|
//:://////////////////////////////////////////////
|
|
|
|
|
|
void main()
|
|
{
|
|
// 2 is off, 1 is on
|
|
|
|
if (GetLocalInt(OBJECT_SELF,"NW_L_AMION") == 1)
|
|
{
|
|
|
|
PlayAnimation(ANIMATION_PLACEABLE_DEACTIVATE);
|
|
|
|
SetLocalInt(OBJECT_SELF,"NW_L_AMION",2);
|
|
|
|
|
|
|
|
|
|
}
|
|
else
|
|
{
|
|
|
|
PlayAnimation(ANIMATION_PLACEABLE_ACTIVATE);
|
|
|
|
SetLocalInt(OBJECT_SELF,"NW_L_AMION",1);
|
|
|
|
|
|
|
|
}
|
|
|
|
if (GetTag(OBJECT_SELF)=="jw_sarc_pillar")
|
|
|
|
{
|
|
ActionCastSpellAtObject(SPELL_CHAIN_LIGHTNING,GetLastUsedBy(),METAMAGIC_ANY,TRUE);
|
|
}
|
|
|
|
if (GetTag(OBJECT_SELF)=="jw_sarc_pillar2")
|
|
|
|
{
|
|
ActionCastSpellAtObject(SPELL_ICE_STORM,GetLastUsedBy(),METAMAGIC_ANY,TRUE);
|
|
}
|
|
|
|
if (GetTag(OBJECT_SELF)=="jw_sarc_pillar3")
|
|
|
|
{
|
|
ActionCastSpellAtObject(SPELL_WALL_OF_FIRE,GetLastUsedBy(),METAMAGIC_ANY,TRUE);
|
|
}
|
|
|
|
if (GetTag(OBJECT_SELF)=="jw_sarc_pillar4")
|
|
|
|
{
|
|
SignalEvent(GetObjectByTag("jw_sarc"),EventUserDefined(50));
|
|
}
|
|
|
|
}
|