generated from Jaysyn/ModuleTemplate
42 lines
1.1 KiB
Plaintext
42 lines
1.1 KiB
Plaintext
//::///////////////////////////////////////////////
|
|
//:: 07_act_flux
|
|
//:: Copyright (c) 2001 Bioware Corp.
|
|
//:://////////////////////////////////////////////
|
|
/*
|
|
This script activates the placable
|
|
*/
|
|
//:://////////////////////////////////////////////
|
|
//:: Created By: ruelk
|
|
//:: Created On: 2/21/04
|
|
//:://////////////////////////////////////////////
|
|
//Put this on action taken in the conversation editor
|
|
#include "nw_i0_tool"
|
|
void main()
|
|
{
|
|
|
|
object oPC = GetPCSpeaker();
|
|
|
|
object oTarget;
|
|
oTarget = OBJECT_SELF;
|
|
|
|
//Lets turn on the object to make it look like we are accomplishing something
|
|
AssignCommand(oTarget, PlayAnimation(ANIMATION_PLACEABLE_ACTIVATE));
|
|
|
|
//If the placeable has lighting that effects the area
|
|
//this will make it light up and effect the surroundings accordingly
|
|
SetPlaceableIllumination (oTarget, TRUE);
|
|
RecomputeStaticLighting(GetArea(oTarget));
|
|
|
|
//The Character just did something cool so we will
|
|
//reward them once for it.
|
|
int DoOnce = GetLocalInt(oPC, GetTag(OBJECT_SELF));
|
|
if (DoOnce==FALSE)
|
|
{
|
|
int nAward = GetHitDice(oPC)*100;
|
|
SetLocalInt(oPC, GetTag(OBJECT_SELF), TRUE);
|
|
|
|
RewardPartyXP(nAward, oPC, FALSE);
|
|
}
|
|
|
|
}
|