File: raft.dat

package info (click to toggle)
edgar 1.37-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 227,860 kB
  • sloc: ansic: 93,832; sh: 388; makefile: 185; xml: 88
file content (38 lines) | stat: -rw-r--r-- 1,097 bytes parent folder | download
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
IF Raft_Point HEALTH 0
HAS_ITEM "Chopped Log" 6 6 Raft_Point 2 8
END
IF Raft_Point HEALTH 1
HAS_ITEM "Chopped Log" 6 6 Raft_Point 2 3
END
IF Raft_Point HEALTH 8
TALK Edgar To get to the Forbidden Swamp I'll need to build a raft.
TALK Edgar I can build the raft if I chop down enough trees from the forest
ADD OBJECTIVE "Collect 6 Chopped Logs" " "
ADD TRIGGER "Chopped Log" 6 UPDATE_OBJECTIVE "Collect 6 Chopped Logs"
SET Raft_Point HEALTH 1
END
IF Raft_Point HEALTH 3
TALK Edgar I need 6 Chopped Logs to build a raft
SET Raft_Point HEALTH 1
END
IF Raft_Point HEALTH 2
HAS_ITEM "Basic Sword" 1 1 Raft_Point 6 5
HAS_ITEM "Small Wooden Shield" 1 1 Raft_Point 7 5
END
IF Raft_Point HEALTH 6
HAS_ITEM "Small Wooden Shield" 1 1 Raft_Point 4 5
END
IF Raft_Point HEALTH 7
HAS_ITEM "Basic Sword" 1 1 Raft_Point 4 5
END
IF Raft_Point HEALTH 5
TALK Edgar I'm not going to the swamp without a sword and shield
SET Raft_Point HEALTH 2
END
IF Raft_Point HEALTH 4
REMOVE "Chopped Log" 6 6 Raft_Point 4 4
TALK Edgar OK, here goes!
KILL Raft_Point
ADD ENTITY ITEM misc/raft "Raft" 3360 256
SET Raft FACE LEFT
END