summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathanael Sensfelder <SpamShield0@MultiAgentSystems.org>2020-07-11 15:37:46 +0200
committerNathanael Sensfelder <SpamShield0@MultiAgentSystems.org>2020-07-11 15:37:46 +0200
commite9f9708a43fa6030a943478f203f08fc37aa28ec (patch)
tree2136140a155362e33b60cb4bfcfa358a0de5b358 /data/examples/the_thief/include/characters.fate
parent88657c6dba477efeb42dd1b94d7636f5633b38d4 (diff)
...
Diffstat (limited to 'data/examples/the_thief/include/characters.fate')
-rw-r--r--data/examples/the_thief/include/characters.fate61
1 files changed, 61 insertions, 0 deletions
diff --git a/data/examples/the_thief/include/characters.fate b/data/examples/the_thief/include/characters.fate
new file mode 100644
index 0000000..4c36a8e
--- /dev/null
+++ b/data/examples/the_thief/include/characters.fate
@@ -0,0 +1,61 @@
+(fate_version 1)
+
+(require include/type/character.fate)
+
+(declare_variable local character oscar)
+(declare_variable local character carla)
+(declare_variable local character simon)
+(declare_variable local character julie)
+(declare_variable local character statue)
+
+(require include/locations.fate)
+
+(set_fields
+ (name Oscar)
+ (agility 50)
+ (perception 50)
+ (money 20)
+ (location room0)
+ (variable oscar)
+)
+
+(set_fields
+ (name Carla)
+ (agility 75)
+ (perception 35)
+ (money 7)
+ (location room1)
+ (variable carla)
+)
+
+(set_fields
+ (name Simon)
+ (agility 35)
+ (perception 75)
+ (money 80)
+ (location room1)
+ (variable simon)
+)
+
+(set_fields
+ (name Julie)
+ (agility 60)
+ (perception 60)
+ (money 90)
+ (location room2)
+ (variable julie)
+)
+
+(set_fields
+ (name ( A oddly human shaped statue, with clothes adorned ))
+ (agility 0)
+ (perception 0)
+ (money 30)
+ (location corridor)
+ (variable statue)
+)
+
+;; Alright, but we clearly need to be able to point to variables using a type.
+;; like (pointer (variable carla)) -> pointer to variable of type character
+;; (a string, really) resolves to (variable carla), but allows characters to be
+;; put in a set, for example.