-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d345e64
commit 6f841a5
Showing
11 changed files
with
289 additions
and
125 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
|
||
(dialog "A nearby farming colony requests assistance...") | ||
|
||
|
||
(opponent-init 8 'neutral) | ||
|
||
(island-configure | ||
(opponent) | ||
'((bronze-hull 0 13) | ||
(sunflower 0 11) | ||
(bronze-hull 0 12) | ||
(bronze-hull 0 14) | ||
(power-core 1 13) | ||
(bronze-hull 1 12) | ||
(bronze-hull 2 12) | ||
(bronze-hull 2 11) | ||
(lemon-tree 2 9) | ||
(fountain 3 10) | ||
(lemon-tree 3 13) | ||
(bronze-hull 3 11) | ||
(fountain 4 14) | ||
(lemon-tree 4 9) | ||
(bronze-hull 4 11) | ||
(lemon-tree 5 9) | ||
(lemon-tree 5 13) | ||
(bronze-hull 5 11) | ||
(lemon-tree 6 13) | ||
(bronze-hull 6 11) | ||
(lemon-tree 6 9) | ||
(masonry 7 14) | ||
(masonry 7 13) | ||
(bronze-hull 7 12) | ||
(workshop 7 10) | ||
(masonry 8 14) | ||
(masonry 8 13) | ||
(bronze-hull 8 12))) | ||
|
||
(defn on-converge | ||
(let ((m (eval-file "/scripts/event/quest/make_quest_marker.lisp"))) | ||
(if m | ||
(progn | ||
(dialog | ||
"<c:Farmer Meyer:9>Looks like a bad storm's coming this way! Hey, I have an idea! How about you do me a favor and relocate my orchard of lemon trees to my brother's island... I'll tell him to pay you 1400@ for each one that you successfully deliver!") | ||
|
||
(defn on-dialog-closed | ||
(map | ||
(lambda | ||
(if (equal (car $0) 'lemon-tree) | ||
(room-rem (opponent) (get $0 1) (get $0 2)))) | ||
(rooms (opponent))) | ||
|
||
;; In case some player decides to farm coins by building his/her own | ||
;; lemon trees and passing them off as Farmer Meyer's trees. | ||
(setq lemon-quest-max-reward 0) | ||
|
||
(push 'quests (cons "/scripts/event/quest_marker/lemons.lisp" m)) | ||
|
||
(map | ||
(lambda | ||
((room-new | ||
(player) | ||
(list 'lemon-tree (car $0) (cdr $0))) | ||
(+= lemon-quest-max-reward 1400))) | ||
(construction-sites (player) '(1 . 2))) | ||
|
||
(dialog "<c:Farmer Meyer:9>Please take good care of them! I marked my brother's address on your sky chart with an *!") | ||
(setq on-dialog-closed exit))) | ||
(progn | ||
(dialog "<c:Farmer Meyer:9>I was going to ask you to help relocate some of these lemon trees, but the storm's getting closer and I need to move out! Maybe we'll meet again, someday...") | ||
(setq on-dialog-closed exit))))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
|
||
|
||
(dialog "Farmer Meyer's brother waves in the distance, excited to see you! Err... hopefully you managed to keep some of his lemon trees alive...") | ||
|
||
|
||
|
||
(opponent-init 6 'neutral) | ||
|
||
(island-configure | ||
(opponent) | ||
'((power-core 3 13) | ||
(coconut-palm 5 13))) | ||
|
||
|
||
(setq on-converge | ||
(lambda | ||
(let ((c (* 1400 (length (filter | ||
(lambda (equal (car $0) 'lemon-tree)) | ||
(rooms (player))))))) | ||
(if (equal c 0) | ||
(progn | ||
(dialog "<c:Farmer Ted:9>Hey, you lost my brother's trees!?") | ||
(setq on-dialog-closed exit)) | ||
(progn | ||
(if (not (bound 'lemon-quest-max-reward)) | ||
(setq lemon-quest-max-reward 99999)) | ||
|
||
(dialog | ||
"<c:Farmer Ted:9>Wonderful! Here's " | ||
(string (min (list lemon-quest-max-reward c))) | ||
" for your trouble!") | ||
|
||
(coins-add (min (list lemon-quest-max-reward c))) | ||
|
||
(unbind 'lemon-quest-max-reward) | ||
(setq quests '()) | ||
|
||
(map | ||
(lambda | ||
(if (equal (car $0) 'lemon-tree) | ||
(room-rem (player) (get $0 1) (get $0 2)))) | ||
(rooms (player))) | ||
|
||
(map | ||
(lambda | ||
((room-new | ||
(opponent) | ||
(list 'lemon-tree (car $0) (cdr $0))))) | ||
(construction-sites (opponent) '(1 . 2))) | ||
|
||
;; For the lemon-tree achievement | ||
(syscall "room-enable" 'lemon-tree 1) | ||
|
||
(setq on-dialog-closed exit)))))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.