diff options
| author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2021-03-01 22:19:46 -0500 |
|---|---|---|
| committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2021-03-01 22:19:46 -0500 |
| commit | 7fa69be4e88f1fcf057871fec7e4503f50578465 (patch) | |
| tree | 70a01aafe4092c29c112f72895494dbfa2033496 /res/scripts/pink_shell.lua | |
| parent | d8e7d815c197c5477678d835038dc3ff86c2a7e8 (diff) | |
| download | tanetane-7fa69be4e88f1fcf057871fec7e4503f50578465.tar.gz tanetane-7fa69be4e88f1fcf057871fec7e4503f50578465.tar.bz2 tanetane-7fa69be4e88f1fcf057871fec7e4503f50578465.zip | |
Started writing the Mixolydia scene!
Looking pretty good so far. TODO: direction facing functions have inverted Y coordinate. confusion expression doesn't exist yet. rest of scene.
Diffstat (limited to 'res/scripts/pink_shell.lua')
| -rw-r--r-- | res/scripts/pink_shell.lua | 148 |
1 files changed, 148 insertions, 0 deletions
| diff --git a/res/scripts/pink_shell.lua b/res/scripts/pink_shell.lua index 4223188..5747186 100644 --- a/res/scripts/pink_shell.lua +++ b/res/scripts/pink_shell.lua | |||
| @@ -16,4 +16,152 @@ end | |||
| 16 | 16 | ||
| 17 | function pink_shell.talk_to_mixolydia() | 17 | function pink_shell.talk_to_mixolydia() |
| 18 | SetDirection("mixolydia", Direction.UP) | 18 | SetDirection("mixolydia", Direction.UP) |
| 19 | SetAnimation("mixolydia", "talk") | ||
| 20 | StartCutscene() | ||
| 21 | DisplayMessage("* Oh, me, oh, my! We have visitors! `", "Mixolydia", SpeakerType.WOMAN) | ||
| 22 | WaitForEndOfMessage() | ||
| 23 | |||
| 24 | SetAnimation("mixolydia", "still") | ||
| 25 | Delay(500) | ||
| 26 | |||
| 27 | SetDirection("mixolydia", Direction.DOWN) | ||
| 28 | Delay(1000) | ||
| 29 | |||
| 30 | if gamestate.went_in_hot_spring then | ||
| 31 | SetAnimation("mixolydia", "talk") | ||
| 32 | DisplayMessage("* ...You people stink.", "Mixolydia", SpeakerType.WOMAN) | ||
| 33 | WaitForEndOfMessage() | ||
| 34 | |||
| 35 | SetAnimation("mixolydia", "still") | ||
| 36 | Delay(1000) | ||
| 37 | end | ||
| 38 | |||
| 39 | FaceTowardSpriteCardinally("mixolydia", "lucas") | ||
| 40 | ShowExpression("mixolydia", "confusion") | ||
| 41 | Delay(1000) | ||
| 42 | |||
| 43 | RemoveExpression("mixolydia") | ||
| 44 | SetAnimation("mixolydia", "talk") | ||
| 45 | DisplayMessage("* Oh, wait a minute...", "Mixolydia", SpeakerType.WOMAN) | ||
| 46 | WaitForEndOfMessage() | ||
| 47 | |||
| 48 | SetAnimation("mixolydia", "still") | ||
| 49 | Delay(1000) | ||
| 50 | |||
| 51 | SetAnimation("mixolydia", "talk") | ||
| 52 | DisplayMessage("* Are you Lucas?", "Mixolydia", SpeakerType.WOMAN) | ||
| 53 | ShowChoice("Yes", "No") | ||
| 54 | WaitForEndOfMessage() | ||
| 55 | |||
| 56 | if GetChoiceSelection() == 1 then | ||
| 57 | DisplayMessage("* This island really has done a number on you.\n\f* But I'll humor you and listen anyway.", "Mixolydia", SpeakerType.WOMAN) | ||
| 58 | WaitForEndOfMessage() | ||
| 59 | end | ||
| 60 | |||
| 61 | if gamestate.went_in_hot_spring then | ||
| 62 | SetAnimation("mixolydia", "still") | ||
| 63 | Delay(1000) | ||
| 64 | |||
| 65 | SetAnimation("mixolydia", "talk") | ||
| 66 | DisplayMessage("* ...Wow, you guys really stink.", "Mixolydia", SpeakerType.WOMAN) | ||
| 67 | WaitForEndOfMessage() | ||
| 68 | end | ||
| 69 | |||
| 70 | SetAnimation("mixolydia", "still") | ||
| 71 | Delay(2000) | ||
| 72 | |||
| 73 | SetAnimation("mixolydia", "talk") | ||
| 74 | DisplayMessage("* Ionia told me about you. `\n\f* I'm Mixolydia, one of the Magifolk. `\n\f* If that's too hard to remember, <Mixo>...\n... no, <Missy> will do just fine. `", "Mixolydia", SpeakerType.WOMAN) | ||
| 75 | WaitForEndOfMessage() | ||
| 76 | |||
| 77 | SetAnimation("mixolydia", "still") | ||
| 78 | Delay(2000) | ||
| 79 | |||
| 80 | SetAnimation("mixolydia", "talk") | ||
| 81 | DisplayMessage("* Okay... Line up here.", "Mixolydia", SpeakerType.WOMAN) | ||
| 82 | WaitForEndOfMessage() | ||
| 83 | |||
| 84 | SetAnimation("mixolydia", "still") | ||
| 85 | Delay(1000) | ||
| 86 | |||
| 87 | -- direct everyone to stand in their positions | ||
| 88 | BreakUpParty("lucas") | ||
| 89 | MakeSpriteNotSolid("lucas") | ||
| 90 | MakeSpriteNotSolid("mixolydia") | ||
| 91 | |||
| 92 | UnpauseSprite("lucas") | ||
| 93 | SetMovementSpeed("lucas", 1) | ||
| 94 | DirectSpriteToLocation("lucas", "lucas_lineup", PathfindingOptions.CARDINAL_DIRECTIONS_ONLY) | ||
| 95 | WaitForSpritePath("lucas") | ||
| 96 | DisableBehaviour("lucas") | ||
| 97 | SetDirection("lucas", Direction.DOWN) | ||
| 98 | SetAnimation("lucas", "tired") | ||
| 99 | PauseSprite("lucas") | ||
| 100 | SetMovementSpeed("lucas", 2) | ||
| 101 | Delay(100) | ||
| 102 | |||
| 103 | UnpauseSprite("kuma") | ||
| 104 | SetMovementSpeed("kuma", 1) | ||
| 105 | DirectSpriteToLocation("kuma", "kumatora_lineup", PathfindingOptions.CARDINAL_DIRECTIONS_ONLY) | ||
| 106 | WaitForSpritePath("kuma") | ||
| 107 | DisableBehaviour("kuma") | ||
| 108 | SetDirection("kuma", Direction.DOWN) | ||
| 109 | SetAnimation("kuma", "tired") | ||
| 110 | PauseSprite("kuma") | ||
| 111 | SetMovementSpeed("kuma", 0) | ||
| 112 | Delay(100) | ||
| 113 | |||
| 114 | UnpauseSprite("duster") | ||
| 115 | SetMovementSpeed("duster", 1) | ||
| 116 | DirectSpriteToLocation("duster", "duster_lineup", PathfindingOptions.CARDINAL_DIRECTIONS_ONLY) | ||
| 117 | WaitForSpritePath("duster") | ||
| 118 | DisableBehaviour("duster") | ||
| 119 | SetDirection("duster", Direction.DOWN) | ||
| 120 | SetAnimation("duster", "tired") | ||
| 121 | PauseSprite("duster") | ||
| 122 | SetMovementSpeed("duster", 0) | ||
| 123 | Delay(100) | ||
| 124 | |||
| 125 | UnpauseSprite("boney") | ||
| 126 | SetMovementSpeed("boney", 1) | ||
| 127 | DirectSpriteToLocation("boney", "boney_lineup", PathfindingOptions.CARDINAL_DIRECTIONS_ONLY) | ||
| 128 | WaitForSpritePath("boney") | ||
| 129 | DisableBehaviour("boney") | ||
| 130 | SetDirection("boney", Direction.DOWN) | ||
| 131 | SetAnimation("boney", "tired") | ||
| 132 | PauseSprite("boney") | ||
| 133 | SetMovementSpeed("boney", 0) | ||
| 134 | Delay(100) | ||
| 135 | |||
| 136 | if gamestate.still_has_claus then | ||
| 137 | UnpauseSprite("join_claus") | ||
| 138 | SetMovementSpeed("join_claus", 1) | ||
| 139 | DirectSpriteToLocation("join_claus", "claus_lineup", PathfindingOptions.CARDINAL_DIRECTIONS_ONLY) | ||
| 140 | WaitForSpritePath("join_claus") | ||
| 141 | DisableBehaviour("join_claus") | ||
| 142 | SetDirection("join_claus", Direction.DOWN) | ||
| 143 | SetAnimation("join_claus", "tired") | ||
| 144 | PauseSprite("join_claus") | ||
| 145 | SetMovementSpeed("join_claus", 0) | ||
| 146 | end | ||
| 147 | |||
| 148 | MakeSpriteSolid("lucas") | ||
| 149 | Delay(1000) | ||
| 150 | |||
| 151 | if gamestate.went_in_hot_spring then | ||
| 152 | SetAnimation("mixolydia", "talk") | ||
| 153 | DisplayMessage("* ...Yuck. What a stench.", "Mixolydia", SpeakerType.WOMAN) | ||
| 154 | WaitForEndOfMessage() | ||
| 155 | |||
| 156 | SetAnimation("mixolydia", "still") | ||
| 157 | Delay(1000) | ||
| 158 | end | ||
| 159 | |||
| 160 | SetAnimation("mixolydia", "talk") | ||
| 161 | DisplayMessage("* Tanetane Island...\nIt wreaks havoc on a person's mind.\n\f* Every trauma you've suffered is pulled out.\n\f* The things down there tear at your weaknesses and the scars in your heart.\n\f* But I'll bring you back to your senses now. `", "Mixolydia", SpeakerType.WOMAN) | ||
| 162 | WaitForEndOfMessage() | ||
| 163 | |||
| 164 | SetAnimation("mixolydia", "still") | ||
| 165 | |||
| 166 | -- TODO: rest of scene | ||
| 19 | end | 167 | end |
