From ee8b2ad6c9eb2bb74e7740730709dba91a772ea9 Mon Sep 17 00:00:00 2001 From: Mauro Junior <45118493+jetrotal@users.noreply.github.com> Date: Fri, 8 Mar 2024 04:32:25 -0300 Subject: [PATCH] New subcommands: JumpTo and SetAnimationType --- src/game_interpreter.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/game_interpreter.cpp b/src/game_interpreter.cpp index 5aaea46094..988b25181f 100644 --- a/src/game_interpreter.cpp +++ b/src/game_interpreter.cpp @@ -5061,6 +5061,7 @@ bool Game_Interpreter::CommandCallMovement(lcf::rpg::EventCommand const& com) { int eventID = ValueOrVariable(com.parameters[0], com.parameters[1]); int outputParam = ValueOrVariable(com.parameters[2], com.parameters[3]); + int outputParamB = ValueOrVariable(com.parameters[4], com.parameters[5]); Game_Character* event = GetCharacter(eventID); Game_Character* target; @@ -5078,6 +5079,8 @@ bool Game_Interpreter::CommandCallMovement(lcf::rpg::EventCommand const& com) { if (moveCommand == "SetMoveSpeed")event->SetMoveSpeed(outputParam); if (moveCommand == "SetMoveFrequency")event->SetMoveFrequency(outputParam); if (moveCommand == "SetTransparency")event->SetTransparency(outputParam); + if (moveCommand == "SetAnimationType")event->SetAnimationType(static_cast(outputParam)); + if (moveCommand == "Event2Event") { target = GetCharacter(outputParam); @@ -5104,7 +5107,9 @@ bool Game_Interpreter::CommandCallMovement(lcf::rpg::EventCommand const& com) { if (moveCommand == "SetLayer")event->SetLayer(outputParam); if (moveCommand == "SetFlying")event->SetFlying(outputParam); //FIXME: I wish any event could imitate an airship, lacks more work. if (moveCommand == "ChangeCharset")event->SetSpriteGraphic(outputString,outputParam); // syntax ChangeCharset/actor1 - + + if (moveCommand == "JumpTo")event->Game_Character::Jump(outputParam, outputParamB); + if (moveCommand == "StopMovement")event->CancelMoveRoute(); return true;