Ostatnio aktywny 1 month ago

A small spell system.

Rewizja c34e04e2998e178f84e4f19df10f56d31503aef6

spells.nv Surowy Playground
1||:: write down a spell :spell name: fireball
2 :type: projectile
3 :element: fire
4 :effect: damage
5 :amount: 5
6 :: cast fireball on slime
7 :: cast haze on slime
8
9|:: cast $spell|
10 :: look up the $spell spell
11 :: cast a spell
12
13|:: cast $spell on $thing|
14 :: look up the $spell spell
15 :: cast a spell on $thing
16
17|:: look up the $name spell :no more pages:|
18 :couldn't find the spell: $name
19|:: look up the $name spell :spellbook: $name $type $element $effect $amount?|
20 :: close the spellbook
21 :spell name: $name
22 :type: $type
23 :element: $element
24 :effect: $effect
25 :amount: $amount
26|:: look up the $name spell?|
27 :: flip a page
28
29|:: flip a page :spellbook: $name $type $element $damage|
30 :flipped pages: $name $type $element $damage
31|:: flip a page|
32 :no more pages:
33
34|:: close the spellbook? :flipped pages: $name $type $element $effect $amount|
35 :spellbook: $name $type $element $damage
36|:: close the spellbook|
37
38|:: write down a spell :spell name: $name
39 :type: $type
40 :element: $element
41 :effect: $effect
42 :amount: $amount
43|:spellbook: $name $type $element $effect $amount
44
45|:: write down a spell|
46 :I need all of these to write down a spell:
47 . spell name
48 . type
49 . element
50 . effect
51 . amount
52
53|:: cast a spell :couldn't find the spell: $name|
54 :log: You don't know the spell for $name
55
56|:: cast a spell on $thing :couldn't find the spell: $name|
57 :log: You don't know the spell for $name
58
59|:: cast a spell :spell name: $name
60 :type: $type
61 :element: $element
62 :effect: $effect
63 :amount: $amount
64|:log: You cast $name
65
66|:: cast a spell on $thing :spell name: $name
67 :type: $type
68 :element: $element
69 :effect: $effect
70 :amount: $amount
71|:log: You cast $name on $thing
72