Skip to content

Larger Events V4 - #3632

Open
LizardKing777 wants to merge 8 commits into
EasyRPG:masterfrom
LizardKing777:Larger-Events
Open

LizardKing777 wants to merge 8 commits into
EasyRPG:masterfrom
LizardKing777:Larger-Events

Conversation

@LizardKing777

Copy link
Copy Markdown
modified:   src/game_character.cpp
modified:   src/game_character.h
modified:   src/game_event.cpp
modified:   src/game_map.cpp
modified:   src/game_player.cpp

Fresh build off the latest upstream source. Adds checks Event triggering and Vehicle boarding/unboarding code to ensure new code is only executing when {_X} and/or {!Y} strings are detected.

	modified:   src/game_character.h
	modified:   src/game_event.cpp
	modified:   src/game_map.cpp
	modified:   src/game_player.cpp

Fresh build off the latest upstream source. Adds checks Event triggering and Vehicle boarding/uboarding code to ensure new code is only executing when {_X} and/or {!Y} strings are detected.
Comment thread src/game_player.cpp Outdated
}

// Note: RPG_RT ignores the lock_facing flag here!
if (vehicle->IsAscendingOrDescending()) return false;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is slowly getting at a reviewable stage.

Your commit contains various unrelated changes. Carefully look through your commit and fix them.

Imo this here is a good example: it changes the formatting and removes a comment.

Rebuilt game_player.cpp, game_map.cpp and game_event.cpp to make sure comments remain and format of code is preserved.
This adds two comment commands, "@easyrpg_set_collision" and "@easyrpg_reset_collision" which allow you to override the default collision settings at runtime and then return them to their defaults if desired. This will override any strings in the filename.

All spacing for the new code was manually input and all files were run through dos2unix before uploading, so hopefully that resolves any formatting issues.
@LizardKing777

Copy link
Copy Markdown
Author

New comment commands to override and reset collision boundaries at runtime.

dwaCje3l5h

@LizardKing777

Copy link
Copy Markdown
Author

I don't think there's anything else to add to this at this point. I do have some ideas for how to expand on this with pixel movement, but that's probably a totally new PR down the road.

Adds two more comment commands, "@easyrpg_show_collision" and "@easyrpg_hide_collision" to show which tiles are currently within the collision box of a given event.
@LizardKing777

LizardKing777 commented Nov 14, 2026 •

Copy link
Copy Markdown
Author

Nevermind, thought of a few more tweaks. Here's a collision box overlay so you can see what tiles are being occupied by a given event!

T93zXqP7yo

Fixes a few offset issues with the overlay.
Adds the ability to direct the game to ignore collision on specific tiles of an expanded event collision space, so can have an event be passable in specific parts of the collision box.
@LizardKing777

Copy link
Copy Markdown
Author

Now you can customize the collision box into whatever shape you like.

pTNBwDIfei

@LizardKing777

Copy link
Copy Markdown
Author

After some reflection, I'm starting to wonder if the filename tags are needed or if they're excessive. Pretty much everything can be accomplished by comment commands (and overrules the filename tags anyway), and for an example the demon in the above video's filename is "$Damon{_7}{!2}{n0,0;0,-1}.png" - it might be better to cut out the filename parsing and just use @EasyRPG comment commands. Thoughts?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants