Storyline: Mara Hag v2

This commit is contained in:
Thr0lu5 2024-10-13 12:24:03 -03:00
parent 30bf358735
commit 9b4df2bf57
2 changed files with 53 additions and 40 deletions

View File

@ -13,7 +13,6 @@
# Variables:
# player storyline_mara_hag_visited
# player storyline_mara_hag_denied
# Items:
# Raven feather
@ -21,13 +20,12 @@
# Grandmother's Hairpin
## TODO:
## Set ITEM IDs
## set default qX_answer to 0 and use overrides to hide source code spoilers.
script {
name "A visit from Mara Hag"
description "A night time visit from an old spirit... -- 0.36-1"
description "A night time visit from an old spirit... -- 0.36-2"
icon "@raw:maraHag_128.jpeg"
owner 0
storyline
@ -42,9 +40,9 @@ script {
local "min_level" 5
local "min_Sizu" 5
local "min_Fate" 5
local "bronze_award_feather" #
local "silver_award_herbs" #
local "gold_award_hairpin" #
local "bronze_award_feather" 100037
local "silver_award_herbs" 100038
local "gold_award_hairpin" 100039
local "q1_answer" 3 #
local "q2_answer" 2 #
local "q3_answer" 1 #
@ -52,8 +50,8 @@ script {
local "q5_answer" 4 #
}
precondition "Not been visited" player "storyline_mara_hag_visited" == 0
precondition "Level" level >= local "min_level"
precondition "Already visited" player "storyline_mara_hag_visited" == 0
precondition "Level required" level >= local "min_level"
reserves { owner fees local "owner_fee" }
@ -186,15 +184,11 @@ script {
"
selected text "
<center><img src=data:,${2}/></center>
<h2>What an eerie encounter.</h2>
<h3>You feel uneasy, though it's unlikely this will happen again.</h3><br>
<h2>You go back to sleep.</h2>
<h3>But feel uneasy....</h3><br>
"
actions { set player "storyline_mara_hag_visited" 1 }
actions { set player "storyline_mara_hag_denied" 1 }
next state ""
next state "banished"
}
}
@ -242,13 +236,11 @@ script {
"
selected text "
<center><img src=data:,${2}/></center>
<h2>What an eerie encounter.</h2>
<h3>You feel uneasy, though it's unlikely this will happen again.</h3><br>
<h2>You go back to sleep.</h2>
<h3>But feel uneasy....</h3><br>
"
actions { set player "storyline_mara_hag_visited" 1 }
actions { set player "storyline_mara_hag_denied" 1 }
next state "banished"
}
}
@ -767,10 +759,7 @@ script {
text "
<h2>A slim pile of grey dust.</h2>
<h3>
You touch it and it evaporates.<br>
Nothing remains.
</h3>
<h3>You touch it and it evaporates. Nothing remains.</h3>
"
selected text "
@ -789,6 +778,7 @@ script {
text "
<h2>A feather from a raven.</h2>
<h3>It is light, clean, and in very good condition, this could make a quill, perhaps?</h3>
[ Awarded: <strong>${item:local bronze_award_feather}</strong> ]
"
selected text "
@ -809,12 +799,11 @@ script {
text "
<h2>A feather from a raven.</h2>
<h3>It is light, clean, and in very good condition, this could make a quill, perhaps?</h3>
[ Awarded: <strong>${item:local bronze_award_feather}</strong> ]
...
<h2>
A small bundle of herbs,<br>
tied together with a grey lock of hair.
</h2>
<h2>A small bundle of herbs, tied together with a grey lock of hair.</h2>
<h3>They smell nice, though you can't recall seeing these growing around here.</h3>
[ Awarded: <strong>${item:local silver_award_herbs}</strong> ]
"
selected text "
@ -838,18 +827,15 @@ script {
text "
<h2>A feather from a raven.</h2>
<h3>It is light, clean, and in very good condition, this could make a quill, perhaps?</h3>
<strong>[ Awarded: ${item:local bronze_award_feather} ]</strong>
...
<h2>
A small bundle of herbs,<br>
tied together with a grey lock of hair.
</h2>
<h2>A small bundle of herbs, tied together with a grey lock of hair.</h2>
<h3>They smell nice, though you can't recall seeing these growing around here.</h3>
<strong>[ Awarded: ${item:local silver_award_herbs} ]</strong>
...
<h2>
Your grandmother's copper hairpin,<br>
worn but beloved.
</h2>
<h3>You are filled with memories, but can't help to wonder, how could this get here?</h3>
<h2>Your grandmother's copper hairpin, worn but beloved.</h2>
<h3>You are filled with memories of the past.</h3>
<strong>[ Awarded: ${item:local gold_award_hairpin} ]</strong>
"
selected text "
@ -868,4 +854,32 @@ script {
}
}
}
state "banished" {
init {
set player "storyline_mara_hag_visited" 2
create item local "gold_award_hairpin" 1
}
text "
<center><img src=data:,${2}/></center>
<h2>The sun rises.</h2>
<h2>In the morning, by your bedstand is...</h2><br>
"
choice {
text "
<h2>Your grandmother's copper hairpin, worn but beloved.</h2>
<h3>You are filled with memories of the past.</h3>
[ Awarded: <strong>${item:local gold_award_hairpin} ]</strong>
"
actions { award item local "gold_award_hairpin" 1 }
selected text "
<center><img src=data:,${2}/></center>
<h2>What an eerie night.</h2>
"
}
}
}

View File

@ -8,11 +8,10 @@
## Variables:
### A visit from Mara Hag:
- player storyline_mara_hag_visited [1: Finished Mara Hag]
- player storyline_mara_hag_denied [1: Sended Mara Hag away]
- player storyline_mara_hag_visited [1: Ended Mara Hag | 2: Banished Mara Hag]
### A thrall's gamble
- storyline_thrallGamble [ counts sideways wins ]
- player storyline_thrallGamble [Counts lucky wins]
## Items: