Hi, I an using Blizz-ABS and for a cutscene I need to disable all action buttons, I found this in the manual but idk how to disable the movement, attack, and calcel buttons
$game_system.defend_button = false
$game_system.skill_button = false
$game_system.item_button = false
$game_system.select_button = false
$game_system.hud_button = false
$game_system.hotkey_button = false
$game_system.turn_button = false
$game_system.running_button = false
$game_system.sneaking_button = false
$game_system.jumping_button = false
Have you tried using autorun? It's great for cutscenes.
(http://i760.photobucket.com/albums/xx245/RatatatOG/autorun.png)
Quote from: AliveDrive on February 28, 2011, 03:46:58 pm
Have you tried using autorun? It's great for cutscenes.
(http://i760.photobucket.com/albums/xx245/RatatatOG/autorun.png)
I am using autorun. the problem is that I am using pathfinder to move the chacter and if I press any action button the character stops and doesnt reach its destination
EDIT: btw thanks for the fast reply
Oh :/ I'm afraid I don't know what pathfinder is.
But do you have a wait for move's completion after the move?
Quote from: AliveDrive on February 28, 2011, 03:58:18 pm
Oh :/ I'm afraid I don't know what pathfinder is.
Path finder is a script call you can do in blizz-abs that will rind a path to take you to and specific place in the map, for example if you script call
$game_player.path_target_x = 18
$game_player.path_target_y = 24
so it will to that tile.
Quote from: AliveDrive on February 28, 2011, 03:58:18 pm
But do you have a wait for move's completion after the move?
Yes I've tried :wacko:
Well I can't help you with the pathfinder bit.
But don't worry, someone will come along with the answer.
yeah, i made it like that for RMX-OS because they didn't want to do any extra edits. I'll add in forced vs. canceled pathfinding later, but for now, just have a look at this:
#--------------------------------------------------------------------------
# cancel_path_request?
# Decides if player is trying to cancel path request.
#--------------------------------------------------------------------------
def cancel_path_request?
# true if directional input, turn, jump, or battle action
return Input.dir4 != 0 ||
($game_system.select_button && Input.press?(Input::Select)) ||
($game_system.turn_button && Input.press?(Input::Turn)) ||
($game_system.jumping_button && Input.press?(Input::Jump)) ||
($game_system.attack_button && Input.press?(Input::Attack) ||
($game_system.defend_button && Input.press?(Input::Defend)) ||
($game_system.skill_button && Input.press?(Input::Skill)) ||
($game_system.item_button && Input.press?(Input::Item)))
end
that's the code that currently determines whether or not to cancel. If you don't want path requesting to cancel at all, just use "return true". Otherwise, remove the Input.dir4 and just make sure you turn off all 8 buttons.