-
Notifications
You must be signed in to change notification settings - Fork 2
/
test.tw
101 lines (80 loc) · 2.02 KB
/
test.tw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
:: Start
<<newcharacter Steve>>
<<newcharacter Klara>>
<<focus Steve>>
<<addfocus Klara>>
<<addfocus Steve'>>
<<goto [[Lobby]]>>
:: Lobby
[[Debug Room]]
[[Upstairs]] | [[Downstairs]]
This is the lobby, there is a spike.
<<link 'Hurt me'>><<run takeDamage(getFocus('name'), 10)>><</link>>
<<link 'Read (Lockpicking for Dummies)'>>\
<<if skillCheck('lockpick', 0)>>\
<<qdiag 'Fail' 'You already read this.'>>
<<else>>
<<diag 'Learned'>>
You learn how to crack simple locks.
<<forcetrainskill 'lockpick'>>
<</diag>>
<</if>>
<</link>>
<<link 'Take Knife'>><<giveitem 'Knife'>><</link>>
<<link 'Throw Knife'>><<takeitem 'Knife'>><</link>>
<<link 'Send Fork to not-Steve'>><<giveitem 'Klara' 'Fork of Magic'>><</link>>
<<link 'Stab Cushion'>>\
<<if hasItem(getFocus('name'), 'Knife')>><<goto [[Stab Zone]]>><<else>><<goto [[UnStab Zone]]>><</if>>
<</link>>
:: Downstairs
You are downstairs.
[[Lobby]]
<<skillcheck 'lockpick' 1>>
You can do this.
<</skillcheck>>
<<link 'Open Chest'>>\
<<if skillCheck('lockpick', 1)>>\
<<qdiag 'Success' 'You pick the lock!'>>
<<else>>
<<qdiag 'Fail' 'You fail to pick the lock...'>>
<</if>>
<</link>>
:: Upstairs
You are upstairs.
[[Lobby]]
:: Stab Zone
You won.
[[Lobby]]
:: UnStab Zone
You lost.
[[Lobby]]
:: Fork Zone
How about a spork?
[[Lobby]]
:: Debug Room
[[Lobby]]
You are <<getfocus 'name'>> with <<getfocus 'health'>> health.
<<showhealth>>
<<if getFocus('name') == 'Steve'>>\
Klara: Hey. <<link 'Become Klara'>><<focus Klara>><<goto [[Debug Room]]>><</link>>
<</if>>\
<<if getFocus('name') == 'Klara'>>\
Steve: Hey. <<link 'Become Steve'>><<focus Steve>><<goto [[Debug Room]]>><</link>>
<</if>>\
:: StoryMenu
<<link 'Show Inventory'>><<inventory>><</link>>
<<link 'Characters'>><<focusmenu>><</link>>
:: StoryInit
<<run setupRPG()>>
<<defhook 'Knife' 'inventory'>>
<<goto [[Stab Zone]]>>
<</defhook>>
<<defhook 'Fork of Magic' 'inventory'>>
<<goto [[Fork Zone]]>>
<</defhook>>
:: StoryTitle
A test
:: StoryData
{
"ifid": "7A858D87-DE11-4B1B-A54A-0B48BEB01366"
}