Completely disable actions

Started by cyclope, February 28, 2011, 03:42:47 pm

Previous topic - Next topic

cyclope

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
Things I Hate

1. People who point at their wrist asking for the time... I know where my watch is pal, where the hell is yours? Do I point at my crotch when I ask where the toilet is?

2. People who are willing to get off their a** to search the entire room for the TV remote because they refuse to walk to the TV and change the channel manually.

3. When people say "Oh you just want to have your cake and eat it too". Damn Right! What good is cake if you can't eat it?

4. When people say "it's always the last place you look". Of course it is. Why the hell would you keep looking after you've found it? Do people do this? Who and where are they?

5. When people say while watching a film, "did ya see that?" No Loser, I paid $12 to come to the cinema and stare at the damn floor!

6. People who ask "Can I ask you a question?"... Didn't give me a choice there, did ya sunshine?

AliveDrive

Have you tried using autorun? It's great for cutscenes.
Spoiler: ShowHide

Quote from: Blizzard on September 09, 2011, 02:26:33 am
The permanent solution for your problem would be to stop hanging out with stupid people.

cyclope

February 28, 2011, 03:53:21 pm #2 Last Edit: February 28, 2011, 04:04:43 pm by cyclope
Quote from: AliveDrive on February 28, 2011, 03:46:58 pm
Have you tried using autorun? It's great for cutscenes.
Spoiler: ShowHide



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
Things I Hate

1. People who point at their wrist asking for the time... I know where my watch is pal, where the hell is yours? Do I point at my crotch when I ask where the toilet is?

2. People who are willing to get off their a** to search the entire room for the TV remote because they refuse to walk to the TV and change the channel manually.

3. When people say "Oh you just want to have your cake and eat it too". Damn Right! What good is cake if you can't eat it?

4. When people say "it's always the last place you look". Of course it is. Why the hell would you keep looking after you've found it? Do people do this? Who and where are they?

5. When people say while watching a film, "did ya see that?" No Loser, I paid $12 to come to the cinema and stare at the damn floor!

6. People who ask "Can I ask you a question?"... Didn't give me a choice there, did ya sunshine?

AliveDrive

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: Blizzard on September 09, 2011, 02:26:33 am
The permanent solution for your problem would be to stop hanging out with stupid people.

cyclope

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:
Things I Hate

1. People who point at their wrist asking for the time... I know where my watch is pal, where the hell is yours? Do I point at my crotch when I ask where the toilet is?

2. People who are willing to get off their a** to search the entire room for the TV remote because they refuse to walk to the TV and change the channel manually.

3. When people say "Oh you just want to have your cake and eat it too". Damn Right! What good is cake if you can't eat it?

4. When people say "it's always the last place you look". Of course it is. Why the hell would you keep looking after you've found it? Do people do this? Who and where are they?

5. When people say while watching a film, "did ya see that?" No Loser, I paid $12 to come to the cinema and stare at the damn floor!

6. People who ask "Can I ask you a question?"... Didn't give me a choice there, did ya sunshine?

AliveDrive

Well I can't help you with the pathfinder bit.

But don't worry, someone will come along with the answer.
Quote from: Blizzard on September 09, 2011, 02:26:33 am
The permanent solution for your problem would be to stop hanging out with stupid people.

winkio

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.