Battledale_PRC8/_module/nss/px_alchemytbl.nss
Jaysyn904 7b9e44ebbb 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.
2024-03-11 23:44:08 -04:00

65 lines
2.9 KiB
Plaintext

void main()
{
int nRandomBottle = Random(5);
object oPC = GetPCSpeaker();
switch (nRandomBottle)
{
case 0:
SendMessageToPC(oPC,"You imbibe a potion of Celestial Splendor!");
AssignCommand(oPC,ActionPlayAnimation(ANIMATION_FIREFORGET_DRINK));
ApplyEffectToObject(DURATION_TYPE_TEMPORARY,EffectAbilityIncrease(ABILITY_CHARISMA,5),oPC,60.0);
ApplyEffectToObject(DURATION_TYPE_TEMPORARY,EffectAbilityIncrease(ABILITY_WISDOM,5),oPC,60.0);
ApplyEffectToObject(DURATION_TYPE_TEMPORARY,EffectAbilityIncrease(ABILITY_INTELLIGENCE,5),oPC,60.0);
ApplyEffectToObject(DURATION_TYPE_TEMPORARY,EffectAbilityDecrease(ABILITY_CONSTITUTION,5),oPC,60.0);
ApplyEffectToObject(DURATION_TYPE_TEMPORARY,EffectAbilityDecrease(ABILITY_STRENGTH,5),oPC,60.0);
ApplyEffectToObject(DURATION_TYPE_TEMPORARY,EffectAbilityDecrease(ABILITY_DEXTERITY,5),oPC,60.0);
ApplyEffectToObject(DURATION_TYPE_INSTANT,EffectVisualEffect(SPELL_POWER_WORD_STUN),oPC);
break;
case 1:
SendMessageToPC(oPC,"You imbibe a potion of Ogre's Anger!");
AssignCommand(oPC,ActionPlayAnimation(ANIMATION_FIREFORGET_DRINK));
ApplyEffectToObject(DURATION_TYPE_TEMPORARY,EffectAbilityIncrease(ABILITY_DEXTERITY,5),oPC,60.0);
ApplyEffectToObject(DURATION_TYPE_TEMPORARY,EffectAbilityIncrease(ABILITY_STRENGTH,5),oPC,60.0);
ApplyEffectToObject(DURATION_TYPE_TEMPORARY,EffectAbilityIncrease(ANIMATION_LOOPING_CONJURE1,5),oPC,60.0);
ApplyEffectToObject(DURATION_TYPE_TEMPORARY,EffectAbilityDecrease(ABILITY_WISDOM,5),oPC,60.0);
ApplyEffectToObject(DURATION_TYPE_TEMPORARY,EffectAbilityDecrease(ABILITY_INTELLIGENCE,5),oPC,60.0);
ApplyEffectToObject(DURATION_TYPE_TEMPORARY,EffectAbilityDecrease(ABILITY_CHARISMA,5),oPC,60.0);
ApplyEffectToObject(DURATION_TYPE_INSTANT,EffectVisualEffect(SPELL_POWER_WORD_STUN),oPC);
break;
case 2:
SendMessageToPC(oPC,"You imbibe a potion of Mad Troll's Rage!");
AssignCommand(oPC,ActionPlayAnimation(ANIMATION_FIREFORGET_DRINK));
ApplyEffectToObject(DURATION_TYPE_TEMPORARY,EffectPolymorph(POLYMORPH_TYPE_TROLL),oPC,60.0);
ApplyEffectToObject(DURATION_TYPE_TEMPORARY,EffectConfused(),oPC,15.0);
RemoveFromParty(oPC);
ApplyEffectToObject(DURATION_TYPE_INSTANT,EffectVisualEffect(VFX_IMP_CONFUSION_S),oPC);
break;
case 3:
SendMessageToPC(oPC,"You imbibe a potion of Penguin Peril!");
AssignCommand(oPC,ActionPlayAnimation(ANIMATION_FIREFORGET_DRINK));
ApplyEffectToObject(DURATION_TYPE_TEMPORARY,EffectPolymorph(POLYMORPH_TYPE_PENGUIN),oPC,60.0);
ApplyEffectToObject(DURATION_TYPE_TEMPORARY,EffectConfused(),oPC,15.0);
ApplyEffectToObject(DURATION_TYPE_INSTANT,EffectVisualEffect(VFX_DUR_ELEMENTAL_SHIELD),oPC);
break;
case 4:
SendMessageToPC(oPC,"You imbibe a potion of Acid!");
AssignCommand(oPC,ActionPlayAnimation(ANIMATION_FIREFORGET_DRINK));
ApplyEffectToObject(DURATION_TYPE_TEMPORARY,EffectDamage(d10() + 15,DAMAGE_TYPE_ACID),oPC,60.0);
ApplyEffectToObject(DURATION_TYPE_INSTANT,EffectVisualEffect(VFX_FNF_GAS_EXPLOSION_ACID),oPC);
break;
}
}