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.
53 lines
1.5 KiB
Plaintext
53 lines
1.5 KiB
Plaintext
//::///////////////////////////////////////////////
|
|
//:: FileName jw_sailortake_dr
|
|
//:://////////////////////////////////////////////
|
|
//:://////////////////////////////////////////////
|
|
//:: Created By: Script Wizard
|
|
//:: Created On: 12/08/2002 21:06:14
|
|
//:://////////////////////////////////////////////
|
|
void jw_drink_drugs();
|
|
|
|
void main()
|
|
{
|
|
// Give the speaker the items
|
|
CreateItemOnObject("jw_yasdin_note", GetPCSpeaker(), 1);
|
|
|
|
|
|
// Remove items from the player's inventory
|
|
object oItemToTake;
|
|
oItemToTake = GetItemPossessedBy(GetPCSpeaker(), "jw_yasdin_drugs");
|
|
if(GetIsObjectValid(oItemToTake) != 0)
|
|
ActionTakeItem(oItemToTake, GetPCSpeaker());
|
|
DestroyObject(oItemToTake);
|
|
|
|
//ActionPauseConversation();
|
|
|
|
ActionWait(1.0);
|
|
ActionPlayAnimation(ANIMATION_FIREFORGET_DRINK);
|
|
ActionDoCommand(jw_drink_drugs());
|
|
|
|
ActionSpeakString("Ah . . . good stuff . . .");
|
|
|
|
|
|
|
|
AdjustAlignment(GetPCSpeaker(),ALIGNMENT_EVIL,20);
|
|
|
|
}
|
|
|
|
void jw_drink_drugs()
|
|
|
|
{
|
|
|
|
object oUser=OBJECT_SELF;
|
|
|
|
SetPlotFlag(OBJECT_SELF,FALSE);
|
|
ApplyEffectToObject(DURATION_TYPE_TEMPORARY,EffectDazed(),oUser,30.0);
|
|
ApplyEffectToObject(DURATION_TYPE_TEMPORARY,EffectVisualEffect(VFX_DUR_MIND_AFFECTING_DISABLED),oUser,3.0);
|
|
FloatingTextStringOnCreature("Ahh . . . feels good",oUser);
|
|
ApplyEffectToObject(DURATION_TYPE_TEMPORARY,EffectAbilityDecrease(ABILITY_WISDOM,4),oUser,300.0);
|
|
ApplyEffectToObject(DURATION_TYPE_TEMPORARY,EffectAbilityDecrease(ABILITY_CHARISMA,4),oUser,300.0);
|
|
|
|
|
|
SetPlotFlag(OBJECT_SELF,TRUE);
|
|
}
|