summaryrefslogtreecommitdiff
path: root/conf
diff options
context:
space:
mode:
Diffstat (limited to 'conf')
-rw-r--r--conf/magic.conf.template119
1 files changed, 103 insertions, 16 deletions
diff --git a/conf/magic.conf.template b/conf/magic.conf.template
index 931fb678..c8fd29df 100644
--- a/conf/magic.conf.template
+++ b/conf/magic.conf.template
@@ -583,7 +583,7 @@ SPELL lay-on-hands (target : STRING) : "#L10" =
)
ELSE (target = pc(target);
needed = max_hp(target) - hp(target);)
-
+
pay_fraction = max(80, 200 - (vit(caster) + (spellpower / 10))); # Pay at least 40%
payment = (needed * pay_fraction) / 200;
available = hp(caster) - (max_hp(caster) / 20);
@@ -685,7 +685,7 @@ SPELL magic-knuckles : "#W12" =
REQUIRE skill(caster, MAGIC) > level,
REQUIRE skill(caster, school) > level,
(REQUIRE skill(caster, school) > 3 OR COMPONENTS ["Beer"]))
- =>
+ =>
EFFECT CALL adjust_spellpower(WAR);
str = str(caster);
CALL install_melee_spell(10 + spellpower / 10, 1300, 34);
@@ -786,13 +786,13 @@ PROCEDURE shear-drop2(target, target2, item, prob, item2, prob2) =
THEN (IF (score < prob)
THEN drop_item_for(place, item, 1, 60000, caster, 5000);
ELSE CALL shear-drop(target, target2, item2, prob2 + prob);)
-
+
PROCEDURE shear-drop3(target, target2, item, prob, item2, prob2, item3, prob3) =
IF (target = name || target2 = name)
THEN (IF (score < prob)
THEN drop_item_for(place, item, 1, 60000, caster, 5000);
ELSE CALL shear-drop2(target, target2, item2, prob2 + prob, item3, prob3 + prob);)
-
+
SPELL shear : "#N14" =
LET level = 1
@@ -823,7 +823,7 @@ SPELL shear : "#N14" =
THEN { set @value, 1; callfunc "QuestSagathaHappy"; };
)
-
+
SPELL barrier (target : PC) : "#A10" =
LET level = 1
@@ -904,7 +904,7 @@ SPELL reveal : "#G11" =
DO IF has_shroud(target) && level(caster) * 2 > level(target)
THEN (unshroud(target);
sfx(target, SFX_DEFAULT, 500);)
-
+
SPELL enchant-lifestone : "#G12" =
LET level = 1
@@ -1022,7 +1022,7 @@ SPELL fire-ball : "#W22" =
CALL elt_damage (target, (damage * 3) / divisor, (damage_bonus * 3) / divisor, ELT_WATER, ELT_FIRE, 15);
)
-SPELL summon-partner : "#A23" =
+SPELL summon-partner : "#A23" =
LET level = 2
school = ASTRAL
IN (MANA 30, CASTTIME 2000,
@@ -1055,7 +1055,7 @@ SPELL summon-partner : "#A23" =
# Level 4 spells
#--------------------------------------------------------------------------------
-SPELL shroud : "#N40" =
+SPELL shroud : "#N40" =
LET level = 4
school = NATURE
IN (MANA 40, CASTTIME 400,
@@ -1064,7 +1064,7 @@ SPELL shroud : "#N40" =
=> EFFECT CALL default_effect();
shroud(caster, 0x04);
-SPELL teleport (destination : STRING) : "#A40" =
+SPELL teleport (destination : STRING) : "#A40" =
LET level = 4
school = ASTRAL
IN (MANA 80, CASTTIME 400,
@@ -1156,27 +1156,27 @@ PROCEDURE debug_mod(name, delta) =
ELSE IF (name = "elanore-sub") THEN CALL debug_xmod("QUEST_MAGIC2", 0xf, 12, delta);
ELSE message(caster, "Unknown");
-SPELL debug-up1 (name : STRING) : "debug+1" =
+SPELL debug-up1 (name : STRING) : "debug+1" =
REQUIRE DEBUG
=> EFFECT CALL debug_mod(name, 1);
-SPELL debug-down1 (name : STRING) : "debug-1" =
+SPELL debug-down1 (name : STRING) : "debug-1" =
REQUIRE DEBUG
=> EFFECT CALL debug_mod(name, 0 - 1);
-SPELL debug-up16 (name : STRING) : "debug+16" =
+SPELL debug-up16 (name : STRING) : "debug+16" =
REQUIRE DEBUG
=> EFFECT CALL debug_mod(name, 16);
-SPELL debug-down16 (name : STRING) : "debug-16" =
+SPELL debug-down16 (name : STRING) : "debug-16" =
REQUIRE DEBUG
=> EFFECT CALL debug_mod(name, 0 - 16);
-SPELL debug-up256 (name : STRING) : "debug+256" =
+SPELL debug-up256 (name : STRING) : "debug+256" =
REQUIRE DEBUG
=> EFFECT CALL debug_mod(name, 256);
-SPELL debug-down256 (name : STRING) : "debug-256" =
+SPELL debug-down256 (name : STRING) : "debug-256" =
REQUIRE DEBUG
=> EFFECT CALL debug_mod(name, 0 - 256);
@@ -1221,7 +1221,7 @@ NONMAGIC SILENT SPELL marriage (target : PC) : "marry" =
THEN (message(caster, "You must both be wearing your wedding rings!"); ABORT;)
script_target = target;
- {
+ {
announce @caster_name$ + " is asking " + strcharinfo(0) + " for marriage.", 2;
mes @caster_name$ + " wishes to marry you.";
mes "Do you accept?";
@@ -1600,6 +1600,93 @@ NONMAGIC SPELL hug5 (target : STRING) : "*hugs" = REQUIRE ((rdistance(location(c
=> EFFECT CALL hug_tree(target);
+# coding of generic spellinvocations
+# #[indicates difficulty level][indicates questionnumber][indicates answerpossibility]
+# X = easy; Y = medium; Z = hard
+# each question have a number of possible answers (mostly using capital letters or not)
+
+NONMAGIC SPELL towelanswer00a : "#X00" = EFFECT { message strcharinfo(0), ""; };
+NONMAGIC SPELL towelanswer00b : "#X01" = EFFECT { message strcharinfo(0), ""; };
+NONMAGIC SPELL towelanswer01a : "#X10" = EFFECT { message strcharinfo(0), ""; };
+NONMAGIC SPELL towelanswer01b : "#X11" = EFFECT { message strcharinfo(0), ""; };
+NONMAGIC SPELL towelanswer02a : "#X20" = EFFECT { message strcharinfo(0), ""; };
+NONMAGIC SPELL towelanswer02b : "#X21" = EFFECT { message strcharinfo(0), ""; };
+NONMAGIC SPELL towelanswer03a : "#X30" = EFFECT { message strcharinfo(0), ""; };
+NONMAGIC SPELL towelanswer03b : "#X31" = EFFECT { message strcharinfo(0), ""; };
+NONMAGIC SPELL towelanswer04a : "#X40" = EFFECT { message strcharinfo(0), ""; };
+NONMAGIC SPELL towelanswer04b : "#X41" = EFFECT { message strcharinfo(0), ""; };
+NONMAGIC SPELL towelanswer05a : "#X50" = EFFECT { message strcharinfo(0), ""; };
+NONMAGIC SPELL towelanswer05b : "#X51" = EFFECT { message strcharinfo(0), ""; };
+NONMAGIC SPELL towelanswer05c : "#X52" = EFFECT { message strcharinfo(0), ""; };
+NONMAGIC SPELL towelanswer05d : "#X53" = EFFECT { message strcharinfo(0), ""; };
+NONMAGIC SPELL towelanswer06a : "#X60" = EFFECT { message strcharinfo(0), ""; };
+NONMAGIC SPELL towelanswer06b : "#X61" = EFFECT { message strcharinfo(0), ""; };
+NONMAGIC SPELL towelanswer06c : "#X62" = EFFECT { message strcharinfo(0), ""; };
+NONMAGIC SPELL towelanswer06d : "#X63" = EFFECT { message strcharinfo(0), ""; };
+NONMAGIC SPELL towelanswer07a : "#X70" = EFFECT { message strcharinfo(0), ""; };
+NONMAGIC SPELL towelanswer07b : "#X71" = EFFECT { message strcharinfo(0), ""; };
+NONMAGIC SPELL towelanswer08a : "#X80" = EFFECT { message strcharinfo(0), ""; };
+NONMAGIC SPELL towelanswer08b : "#X81" = EFFECT { message strcharinfo(0), ""; };
+NONMAGIC SPELL towelanswer08c : "#X82" = EFFECT { message strcharinfo(0), ""; };
+NONMAGIC SPELL towelanswer08d : "#X83" = EFFECT { message strcharinfo(0), ""; };
+NONMAGIC SPELL towelanswer09a : "#X90" = EFFECT { message strcharinfo(0), ""; };
+NONMAGIC SPELL towelanswer09b : "#X91" = EFFECT { message strcharinfo(0), ""; };
+
+NONMAGIC SPELL towelanswer10a : "#Y00" = EFFECT { message strcharinfo(0), ""; };
+NONMAGIC SPELL towelanswer10b : "#Y01" = EFFECT { message strcharinfo(0), ""; };
+NONMAGIC SPELL towelanswer11a : "#Y10" = EFFECT { message strcharinfo(0), ""; };
+NONMAGIC SPELL towelanswer11b : "#Y11" = EFFECT { message strcharinfo(0), ""; };
+NONMAGIC SPELL towelanswer12a : "#Y20" = EFFECT { message strcharinfo(0), ""; };
+NONMAGIC SPELL towelanswer12b : "#Y21" = EFFECT { message strcharinfo(0), ""; };
+NONMAGIC SPELL towelanswer13a : "#Y30" = EFFECT { message strcharinfo(0), ""; };
+NONMAGIC SPELL towelanswer13b : "#Y31" = EFFECT { message strcharinfo(0), ""; };
+NONMAGIC SPELL towelanswer14a : "#Y40" = EFFECT { message strcharinfo(0), ""; };
+NONMAGIC SPELL towelanswer14b : "#Y41" = EFFECT { message strcharinfo(0), ""; };
+NONMAGIC SPELL towelanswer15a : "#Y50" = EFFECT { message strcharinfo(0), ""; };
+NONMAGIC SPELL towelanswer15b : "#Y51" = EFFECT { message strcharinfo(0), ""; };
+NONMAGIC SPELL towelanswer15c : "#Y52" = EFFECT { message strcharinfo(0), ""; };
+NONMAGIC SPELL towelanswer16a : "#Y60" = EFFECT { message strcharinfo(0), ""; };
+NONMAGIC SPELL towelanswer16b : "#Y61" = EFFECT { message strcharinfo(0), ""; };
+NONMAGIC SPELL towelanswer17a : "#Y70" = EFFECT { message strcharinfo(0), ""; };
+NONMAGIC SPELL towelanswer17b : "#Y71" = EFFECT { message strcharinfo(0), ""; };
+NONMAGIC SPELL towelanswer18a : "#Y80" = EFFECT { message strcharinfo(0), ""; };
+NONMAGIC SPELL towelanswer18b : "#Y81" = EFFECT { message strcharinfo(0), ""; };
+NONMAGIC SPELL towelanswer18c : "#Y82" = EFFECT { message strcharinfo(0), ""; };
+NONMAGIC SPELL towelanswer18d : "#Y83" = EFFECT { message strcharinfo(0), ""; };
+NONMAGIC SPELL towelanswer19a : "#Y90" = EFFECT { message strcharinfo(0), ""; };
+NONMAGIC SPELL towelanswer19b : "#Y91" = EFFECT { message strcharinfo(0), ""; };
+NONMAGIC SPELL towelanswer19c : "#Y92" = EFFECT { message strcharinfo(0), ""; };
+NONMAGIC SPELL towelanswer19d : "#Y93" = EFFECT { message strcharinfo(0), ""; };
+NONMAGIC SPELL towelanswer110a : "#YA0" = EFFECT { message strcharinfo(0), ""; };
+NONMAGIC SPELL towelanswer110b : "#YA1" = EFFECT { message strcharinfo(0), ""; };
+NONMAGIC SPELL towelanswer111a : "#YB0" = EFFECT { message strcharinfo(0), ""; };
+NONMAGIC SPELL towelanswer111b : "#YB1" = EFFECT { message strcharinfo(0), ""; };
+
+NONMAGIC SPELL towelanswer20a : "#Z00" = EFFECT { message strcharinfo(0), ""; };
+NONMAGIC SPELL towelanswer20b : "#Z01" = EFFECT { message strcharinfo(0), ""; };
+NONMAGIC SPELL towelanswer20c : "#Z02" = EFFECT { message strcharinfo(0), ""; };
+NONMAGIC SPELL towelanswer20d : "#Z03" = EFFECT { message strcharinfo(0), ""; };
+NONMAGIC SPELL towelanswer21a : "#Z10" = EFFECT { message strcharinfo(0), ""; };
+NONMAGIC SPELL towelanswer21b : "#Z11" = EFFECT { message strcharinfo(0), ""; };
+NONMAGIC SPELL towelanswer22a : "#Z20" = EFFECT { message strcharinfo(0), ""; };
+NONMAGIC SPELL towelanswer22b : "#Z21" = EFFECT { message strcharinfo(0), ""; };
+NONMAGIC SPELL towelanswer23a : "#Z30" = EFFECT { message strcharinfo(0), ""; };
+NONMAGIC SPELL towelanswer23b : "#Z31" = EFFECT { message strcharinfo(0), ""; };
+NONMAGIC SPELL towelanswer24a : "#Z40" = EFFECT { message strcharinfo(0), ""; };
+NONMAGIC SPELL towelanswer24b : "#Z41" = EFFECT { message strcharinfo(0), ""; };
+NONMAGIC SPELL towelanswer25a : "#Z50" = EFFECT { message strcharinfo(0), ""; };
+NONMAGIC SPELL towelanswer25b : "#Z51" = EFFECT { message strcharinfo(0), ""; };
+NONMAGIC SPELL towelanswer26a : "#Z60" = EFFECT { message strcharinfo(0), ""; };
+NONMAGIC SPELL towelanswer26b : "#Z61" = EFFECT { message strcharinfo(0), ""; };
+NONMAGIC SPELL towelanswer26c : "#Z62" = EFFECT { message strcharinfo(0), ""; };
+NONMAGIC SPELL towelanswer26d : "#Z63" = EFFECT { message strcharinfo(0), ""; };
+NONMAGIC SPELL towelanswer27a : "#Z70" = EFFECT { message strcharinfo(0), ""; };
+NONMAGIC SPELL towelanswer27b : "#Z71" = EFFECT { message strcharinfo(0), ""; };
+NONMAGIC SPELL towelanswer27c : "#Z72" = EFFECT { message strcharinfo(0), ""; };
+NONMAGIC SPELL towelanswer27d : "#Z73" = EFFECT { message strcharinfo(0), ""; };
+NONMAGIC SPELL towelanswer28a : "#Z80" = EFFECT { message strcharinfo(0), ""; };
+NONMAGIC SPELL towelanswer28b : "#Z81" = EFFECT { message strcharinfo(0), ""; };
+
#--------------------------------------------------------------------------------
# Teleport anchors
#--------------------------------------------------------------------------------