Última actividad 1 month ago

A small spell system.

spells.nv Sin formato 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 :: recite the spell
22|:: look up the $name spell?|
23 :: flip a page
24
25|:: flip a page :spellbook: $name $type $element $damage|
26 :flipped pages: $name $type $element $damage
27|:: flip a page|
28 :no more pages:
29
30|:: close the spellbook? :flipped pages: $name $type $element $effect $amount|
31 :spellbook: $name $type $element $damage
32|:: close the spellbook|
33
34|:: recite the spell :spellbook: $name $type $element $effect $amount?|
35 :spell name: $name
36 :type: $type
37 :element: $element
38 :effect: $effect
39 :amount: $amount
40|:: recite the spell|
41 :log: There's no spell to recite
42
43|:: write down a spell :spell name: $name
44 :type: $type
45 :element: $element
46 :effect: $effect
47 :amount: $amount
48|:spellbook: $name $type $element $effect $amount
49
50|:: write down a spell|
51 :I need all of these to write down a spell:
52 . spell name
53 . type
54 . element
55 . effect
56 . amount
57
58|:: cast a spell :couldn't find the spell: $name|
59 :log: You don't know the spell for $name
60
61|:: cast a spell on $thing :couldn't find the spell: $name|
62 :log: You don't know the spell for $name
63
64|:: cast a spell :spell name: $name
65 :type: $type
66 :element: $element
67 :effect: $effect
68 :amount: $amount
69|:log: You cast $name
70
71|:: cast a spell on $thing :spell name: $name
72 :type: $type
73 :element: $element
74 :effect: $effect
75 :amount: $amount
76|:log: You cast $name on $thing