Chaos Project

RPG Maker => RPG Maker Scripts => Script Requests => Topic started by: cyclope on February 28, 2011, 03:42:47 pm

Title: Completely disable actions
Post by: cyclope on February 28, 2011, 03:42:47 pm
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
Spoiler: ShowHide
$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
Title: Re: Completely disable actions
Post by: AliveDrive on February 28, 2011, 03:46:58 pm
Have you tried using autorun? It's great for cutscenes.
Spoiler: ShowHide
(http://i760.photobucket.com/albums/xx245/RatatatOG/autorun.png)

Title: Re: Completely disable actions
Post by: cyclope on February 28, 2011, 03:53:21 pm
Quote from: AliveDrive on February 28, 2011, 03:46:58 pm
Have you tried using autorun? It's great for cutscenes.
Spoiler: ShowHide
(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
Title: Re: Completely disable actions
Post by: AliveDrive on February 28, 2011, 03:58:18 pm
Oh :/ I'm afraid I don't know what pathfinder is.
But do you have a wait for move's completion after the move?
Title: Re: Completely disable actions
Post by: cyclope on February 28, 2011, 04:11:13 pm
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
Spoiler: ShowHide
$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:
Title: Re: Completely disable actions
Post by: AliveDrive on February 28, 2011, 04:22:16 pm
Well I can't help you with the pathfinder bit.

But don't worry, someone will come along with the answer.
Title: Re: Completely disable actions
Post by: winkio on February 28, 2011, 05:22:17 pm
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.