Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement roaming creatures on two bundled maps #3215

Merged
merged 2 commits into from
May 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion levels/standard/map00450.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ LEVEL_VERSION(1)
SET_GENERATE_SPEED(400)
START_MONEY(PLAYER0,800)
MAX_CREATURES(PLAYER0,18)
COMPUTER_PLAYER(PLAYER5,ROAMING)

REM ****************************************************************************
REM Flags used:
Expand Down Expand Up @@ -267,7 +268,7 @@ ENDIF

REM: To limit creatures on map, only spawn tentacles when the player is near.
IF_ACTION_POINT(3,PLAYER0)
ADD_CREATURE_TO_LEVEL(PLAYER_GOOD,TENTACLE,4,3,7,2500)
ADD_CREATURE_TO_LEVEL(PLAYER5,TENTACLE,4,3,7,2500)
ENDIF

REM: If close to the yellow dungeon, spawn the creatures there, and warn the player about having to fight heroes if he enters.
Expand Down
4 changes: 2 additions & 2 deletions levels/standard/map00456.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ SET_GENERATE_SPEED(850)
COMPUTER_PLAYER(PLAYER1,0)
COMPUTER_PLAYER(PLAYER2,0)
COMPUTER_PLAYER(PLAYER3,0)
COMPUTER_PLAYER(PLAYER5,ROAMING)

ALLY_PLAYERS(PLAYER1,PLAYER2,1)
ALLY_PLAYERS(PLAYER1,PLAYER3,1)
Expand Down Expand Up @@ -309,7 +310,7 @@ ENDIF

REM Enable claiming north-west corner when blue is destroyed. Tunneler will clear white wall blocking path. Also new tentacles added.
IF(PLAYER1,DUNGEON_DESTROYED == 1)
ADD_CREATURE_TO_LEVEL(PLAYER_GOOD,TENTACLE,8,3,5,500)
ADD_CREATURE_TO_LEVEL(PLAYER5,TENTACLE,8,3,5,500)
ADD_PARTY_TO_LEVEL(PLAYER_GOOD,PrisonFood,3,2)
SET_TIMER(PLAYER1,TIMER1)
ENDIF
Expand Down Expand Up @@ -425,7 +426,6 @@ REM Win game
REM ****************************************************************************

IF(PLAYER0,ALL_DUNGEONS_DESTROYED >= 1)
KILL_CREATURE(PLAYER_GOOD,TENTACLE,MOST_EXPERIENCED,10)
IF_CONTROLS(PLAYER_GOOD,TOTAL_CREATURES <= 0)
IF(PLAYER0,FLAG2 >= 1)
REM "I give your performance 2 out of 5 spleens. But I guess it's the result that counts. Victory!"
Expand Down