Further file organization
Further file organization
This commit is contained in:
24
nwn/nwnprc/trunk/scripts/urang_hips.nss
Normal file
24
nwn/nwnprc/trunk/scripts/urang_hips.nss
Normal file
@@ -0,0 +1,24 @@
|
||||
#include "prc_inc_spells"
|
||||
#include "x0_i0_modes"
|
||||
|
||||
void main()
|
||||
{
|
||||
object oPC = OBJECT_SELF;
|
||||
|
||||
if(GetIsAreaNatural(GetArea(oPC)) != AREA_NATURAL)
|
||||
{
|
||||
FloatingTextStringOnCreature("*You need natural surroundings to camouflage yourself in front of your foes.*", oPC, FALSE);
|
||||
return;
|
||||
}
|
||||
|
||||
object oSkin = GetPCSkin(oPC);
|
||||
|
||||
DelayCommand(0.2, SetActionMode(oPC, ACTION_MODE_STEALTH, TRUE));
|
||||
DelayCommand(0.21, UseStealthMode());
|
||||
DelayCommand(0.2, ActionUseSkill(SKILL_HIDE, oPC));
|
||||
DelayCommand(0.2, ActionUseSkill(SKILL_MOVE_SILENTLY, oPC));
|
||||
|
||||
//AddItemProperty(DURATION_TYPE_TEMPORARY,PRCItemPropertyBonusFeat(31),oSkin,3.0f);
|
||||
AddSkinFeat(FEAT_HIDE_IN_PLAIN_SIGHT, IP_CONST_FEAT_HIDE_IN_PLAIN_SIGHT, oSkin, oPC, 3.0f);
|
||||
SetActionMode(oPC, ACTION_MODE_STEALTH, TRUE);
|
||||
}
|
Reference in New Issue
Block a user