Skip to content

Commit

Permalink
format code, add chapter 4 challenge code
Browse files Browse the repository at this point in the history
  • Loading branch information
joshraphael committed Jan 31, 2025
1 parent 020f0a9 commit f3ffb00
Showing 1 changed file with 27 additions and 4 deletions.
31 changes: 27 additions & 4 deletions 18190.rascript
Original file line number Diff line number Diff line change
Expand Up @@ -268,12 +268,35 @@ achievement(
title = "Totem Spirit",
description = "Complete chapter 1 in no more than 15 jumps",
points = 2,
trigger = InGame() && prev( Chapter() ) == CHAPTER1 && trigger_when( UpgradeChapter( CHAPTER2, false ) ) && disable_when( tally( 16, CharacterJumps( false, false, false ) ), until = GameReset() )
trigger = (
InGame() &&
prev( Chapter() ) == CHAPTER1 &&
trigger_when( UpgradeChapter( CHAPTER2, false ) )
) &&
disable_when(
tally(
16,
CharacterJumps( false, false, false )
),
until = GameReset()
)
)

achievement(
title = "Nex episode",
description = "Complete chapter 2 in no more than 15 jumps",
title = "Rock Tunnel",
description = "Without dying, collect 3 hearts and complete chapter 4 in no more than 14 jumps",
points = 3,
trigger = InGame() && prev( Chapter() ) == CHAPTER2 && trigger_when( UpgradeChapter( CHAPTER3, false ) ) && disable_when( tally( 16, CharacterJumps( false, false, false ) ), until = GameReset() )
trigger = (
InGame() &&
prev( Chapter() ) == CHAPTER4 &&
HeartsCollected() == 3 &&
trigger_when( UpgradeChapter( CHAPTER5, false ) )
) &&
disable_when(
tally(
15,
CharacterJumps( false, false, false )
),
until = GameReset()
)
)

0 comments on commit f3ffb00

Please sign in to comment.