Author Topic: Potions that increase character attributes  (Read 575 times)

Offline manikus

  • Skriptor
  • Administrator
  • Hero Member
  • *****
  • Posts: 9715
Re: Potions that increase character attributes
« Reply #15 on: August 19, 2016, 06:38:23 PM »
Here are the "cursed" potions. :D

ITEMS: copy and paste into your text file items.txt
Code: [Select]
\(BEGIN)
name = Potion|CHAlow
id name = Potion of Camel's Humor
launch sound = none
hit sound = none
miss sound = none
missile sprite = none
hit sprite = none
ROF per round = 1.000000
combat range = 1
cost = 5
hands to carry = 1
baseclass = assassin
baseclass = cleric
baseclass = druid
baseclass = fighter
baseclass = magicUser
baseclass = paladin
baseclass = ranger
baseclass = thief
small/medium damage dice = 1D6 + 0
large damage dice = 1D6 + 0
AC base = 0
AC bonus = 0
attack bonus = 0
experience = 0
encumbrance = 10
cursed = no
non lethal = no
readied location = WEAPON
Special Ability = item_PotionCamelsHumor
bundle quantity = 1
weapon type = not weapon
ammo type =
usable = yes
not magical = no
scribtable = no
can drop = yes
CanHalveJoin = no
number of charges = 1
Examine Event ID = 100011
Examine Label = EXAMINE
recharge rate = never
spell effect = none
\(END)

\(BEGIN)
name = Potion|CONlow
id name = Potion of Opossum's Courage
launch sound = none
hit sound = none
miss sound = none
missile sprite = none
hit sprite = none
ROF per round = 1.000000
combat range = 1
cost = 5
hands to carry = 1
baseclass = assassin
baseclass = cleric
baseclass = druid
baseclass = fighter
baseclass = magicUser
baseclass = paladin
baseclass = ranger
baseclass = thief
small/medium damage dice = 1D6 + 0
large damage dice = 1D6 + 0
AC base = 0
AC bonus = 0
attack bonus = 0
experience = 0
encumbrance = 10
cursed = no
non lethal = no
readied location = WEAPON
Special Ability = item_PotionOpossumsCourage
bundle quantity = 1
weapon type = not weapon
ammo type =
usable = yes
not magical = no
scribtable = no
can drop = yes
CanHalveJoin = no
number of charges = 1
Examine Event ID = 100012
Examine Label = EXAMINE
recharge rate = never
spell effect = none
\(END)

\(BEGIN)
name = Potion|DEXlow
id name = Potion of Sloth's Speed
launch sound = none
hit sound = none
miss sound = none
missile sprite = none
hit sprite = none
ROF per round = 1.000000
combat range = 1
cost = 5
hands to carry = 1
baseclass = assassin
baseclass = cleric
baseclass = druid
baseclass = fighter
baseclass = magicUser
baseclass = paladin
baseclass = ranger
baseclass = thief
small/medium damage dice = 1D6 + 0
large damage dice = 1D6 + 0
AC base = 0
AC bonus = 0
attack bonus = 0
experience = 0
encumbrance = 10
cursed = no
non lethal = no
readied location = WEAPON
Special Ability = item_PotionSlothsSpeed
bundle quantity = 1
weapon type = not weapon
ammo type =
usable = yes
not magical = no
scribtable = no
can drop = yes
CanHalveJoin = no
number of charges = 1
Examine Event ID = 100013
Examine Label = EXAMINE
recharge rate = never
spell effect = none
\(END)

\(BEGIN)
name = Potion|INTlow
id name = Potion of Ox's Intellect
launch sound = none
hit sound = none
miss sound = none
missile sprite = none
hit sprite = none
ROF per round = 1.000000
combat range = 1
cost = 5
hands to carry = 1
baseclass = assassin
baseclass = cleric
baseclass = druid
baseclass = fighter
baseclass = magicUser
baseclass = paladin
baseclass = ranger
baseclass = thief
small/medium damage dice = 1D6 + 0
large damage dice = 1D6 + 0
AC base = 0
AC bonus = 0
attack bonus = 0
experience = 0
encumbrance = 10
cursed = no
non lethal = no
readied location = WEAPON
Special Ability = item_PotionOxsIntellect
bundle quantity = 1
weapon type = not weapon
ammo type =
usable = yes
not magical = no
scribtable = no
can drop = yes
CanHalveJoin = no
number of charges = 1
Examine Event ID = 100014
Examine Label = EXAMINE
recharge rate = never
spell effect = none
\(END)

\(BEGIN)
name = Potion|STRlow
id name = Potion of Kitten's Strength
launch sound = none
hit sound = none
miss sound = none
missile sprite = none
hit sprite = none
ROF per round = 1.000000
combat range = 1
cost = 5
hands to carry = 1
baseclass = assassin
baseclass = cleric
baseclass = druid
baseclass = fighter
baseclass = magicUser
baseclass = paladin
baseclass = ranger
baseclass = thief
small/medium damage dice = 1D6 + 0
large damage dice = 1D6 + 0
AC base = 0
AC bonus = 0
attack bonus = 0
experience = 0
encumbrance = 10
cursed = no
non lethal = no
readied location = WEAPON
Special Ability = item_PotionKittensStrength
bundle quantity = 1
weapon type = not weapon
ammo type =
usable = yes
not magical = no
scribtable = no
can drop = yes
CanHalveJoin = no
number of charges = 1
Examine Event ID = 100015
Examine Label = EXAMINE
recharge rate = never
spell effect = none
\(END)

\(BEGIN)
name = Potion|WISlow
id name = Potion of Lemming's Wisdom
launch sound = none
hit sound = none
miss sound = none
missile sprite = none
hit sprite = none
ROF per round = 1.000000
combat range = 1
cost = 5
hands to carry = 1
baseclass = assassin
baseclass = cleric
baseclass = druid
baseclass = fighter
baseclass = magicUser
baseclass = paladin
baseclass = ranger
baseclass = thief
small/medium damage dice = 1D6 + 0
large damage dice = 1D6 + 0
AC base = 0
AC bonus = 0
attack bonus = 0
experience = 0
encumbrance = 10
cursed = no
non lethal = no
readied location = WEAPON
Special Ability = item_PotionLemmingsWisdom
bundle quantity = 1
weapon type = not weapon
ammo type =
usable = yes
not magical = no
scribtable = no
can drop = yes
CanHalveJoin = no
number of charges = 1
Examine Event ID = 100016
Examine Label = EXAMINE
recharge rate = never
spell effect = none
\(END)

SPECIAL ABILITIES:  copy and paste into your text file specialAbilities.txt
Code: [Select]
\(BEGIN)
name = item_PotionCamelsHumor
[CanExamineOrWhatever] = $SET_HOOK_PARAM( 5, "DRINK" );
-$SET_HOOK_PARAM( 6, 0 );
-$RETURN "Y";
[ExamineOrWhatever] = $VAR tgt; $VAR num; $VAR item; $VAR newItem;
-tgt = $IndexOf($CharacterContext());
-num = -($RANDOM(4) +# 2);
-item = "Potion|CHAlow";
-newItem = "Empty Bottle";
-$IF ($GET_CHAR_Ready($CharacterContext(), "WEAPON", 0) == item)
- {
- $TAKE_CHAR_ITEM($CharacterContext(),item);
- $GIVE_CHAR_ITEM($CharacterContext(),newItem);
- $MODIFY_CHAR_ATTRIBUTE(tgt,"CHA",num,"MINUTES",120,"Charisma","Potion Camel's Humor");
- };
\(END)

\(BEGIN)
name = item_PotionKittensStrength
[CanExamineOrWhatever] = $SET_HOOK_PARAM( 5, "DRINK" );
-$SET_HOOK_PARAM( 6, 0 );
-$RETURN "Y";
[ExamineOrWhatever] = $VAR tgt; $VAR strMod; $VAR num; $VAR item; $VAR newItem;
-tgt = $IndexOf($CharacterContext());
-strMod = $GET_CHAR_LIMITED_STRMOD(tgt);
-num = -($RANDOM(4) +# 2;)
-item = "Potion|STRlow";
-newItem = "Empty Bottle";
-$IF ($GET_CHAR_Ready($CharacterContext(), "WEAPON", 0) == item)
- {
- $TAKE_CHAR_ITEM($CharacterContext(),item);
- $GIVE_CHAR_ITEM($CharacterContext(),newItem);
- $MODIFY_CHAR_ATTRIBUTE(tgt,"STR",num,"MINUTES",120,"Strength","Potion Kitten's Strength");
- $IF (strMod ># 0) {$MODIFY_CHAR_ATTRIBUTE(tgt,"STRMOD",100 -# strMod,"MINUTES",120,"","Potion Kitten's Strength");};
- };
\(END)

\(BEGIN)
name = item_PotionLemmingsWisdom
[CanExamineOrWhatever] = $SET_HOOK_PARAM( 5, "DRINK" );
-$SET_HOOK_PARAM( 6, 0 );
-$RETURN "Y";
[ExamineOrWhatever] = $VAR tgt; $VAR num; $VAR item; $VAR newItem;
-tgt = $IndexOf($CharacterContext());
-num = -($RANDOM(4) +# 2);
-item = "Potion|WISlow";
-newItem = "Empty Bottle";
-$IF ($GET_CHAR_Ready($CharacterContext(), "WEAPON", 0) == item)
- {
- $TAKE_CHAR_ITEM($CharacterContext(),item);
- $GIVE_CHAR_ITEM($CharacterContext(),newItem);
- $MODIFY_CHAR_ATTRIBUTE(tgt,"WIS",num,"MINUTES",120,"Wisdom","Potion Lemming's Wisdom");
- };
\(END)
\(BEGIN)
name = item_PotionOpossumsCourage
[CanExamineOrWhatever] = $SET_HOOK_PARAM( 5, "DRINK" );
-$SET_HOOK_PARAM( 6, 0 );
-$RETURN "Y";
[ExamineOrWhatever] = $VAR tgt; $VAR num; $VAR item; $VAR newItem;
-tgt = $IndexOf($CharacterContext());
-num = -($RANDOM(4) +# 2);
-item = "Potion|CONlow";
-newItem = "Empty Bottle";
-$IF ($GET_CHAR_Ready($CharacterContext(), "WEAPON", 0) == item)
- {
- $TAKE_CHAR_ITEM($CharacterContext(),item);
- $GIVE_CHAR_ITEM($CharacterContext(),newItem);
- $MODIFY_CHAR_ATTRIBUTE(tgt,"CON",num,"MINUTES",120,"Constitution","Potion Opossum's courage");
- };
\(END)

\(BEGIN)
name = item_PotionOxsIntellect
[CanExamineOrWhatever] = $SET_HOOK_PARAM( 5, "DRINK" );
-$SET_HOOK_PARAM( 6, 0 );
-$RETURN "Y";
[ExamineOrWhatever] = $VAR tgt; $VAR num; $VAR item; $VAR newItem;
-tgt = $IndexOf($CharacterContext());
-num = -($RANDOM(4) +# 2);
-item = "Potion|INTlow";
-newItem = "Empty Bottle";
-$IF ($GET_CHAR_Ready($CharacterContext(), "WEAPON", 0) == item)
- {
- $TAKE_CHAR_ITEM($CharacterContext(),item);
- $GIVE_CHAR_ITEM($CharacterContext(),newItem);
- $MODIFY_CHAR_ATTRIBUTE(tgt,"INT",num,"MINUTES",120,"Intelligence","Potion Ox's Intellect");
- };
\(END)

\(BEGIN)
name = item_PotionSlothsSpeed
[CanExamineOrWhatever] = $SET_HOOK_PARAM( 5, "DRINK" );
-$SET_HOOK_PARAM( 6, 0 );
-$RETURN "Y";
[ExamineOrWhatever] = $VAR tgt; $VAR num; $VAR item; $VAR newItem;
-tgt = $IndexOf($CharacterContext());
-num = -($RANDOM(4) +# 2);
-item = "Potion|DEXlow";
-newItem = "Empty Bottle";
-$IF ($GET_CHAR_Ready($CharacterContext(), "WEAPON", 0) == item)
- {
- $TAKE_CHAR_ITEM($CharacterContext(),item);
- $GIVE_CHAR_ITEM($CharacterContext(),newItem);
- $MODIFY_CHAR_ATTRIBUTE(tgt,"DEX",num,"MINUTES",120,"Dexterity","Potion Sloth's Speed");
- };
\(END)

To change the value by which the potion increases the attribute, you simply have to change the "num = " line in the corresponding SA.
To change the length of time, change the value immediately after the word "MINUTES".