The RPG Maker Resource Kit

RMRK RPG Maker Creation => XP => XP Event Systems => Topic started by: Punk on November 26, 2006, 05:38:34 AM

Title: [XP] Double Tap Dash Button 3
Post by: Punk on November 26, 2006, 05:38:34 AM
Requires
3 Variables
4 Switches
5 Common Events

Check Tapping
Code: [Select]
Common Event: Check Tapping
Trigger: Parallel
Condition Switch: Never Tapped

List of event commands
@>Conditional Branch: Script: Input.trigger?(Input::UP)
@>>Control Variables: [Tap 1] = 2
@>>Control Switches: [Tapped Once] = ON
@>>Control Switches: [Never Tapped] = OFF
@>>Branch End
@>Conditional Branch: Script: Input.trigger?(Input::DOWN)
@>>Control Variables: [Tap 1] = 8
@>>Control Switches: [Tapped Once] = ON
@>>Control Switches: [Never Tapped] = OFF
@>>Branch End
@>Conditional Branch: Script: Input.trigger?(Input::LEFT)
@>>Control Variables: [Tap 1] = 4
@>>Control Switches: [Tapped Once] = ON
@>>Control Switches: [Never Tapped] = OFF
@>>Branch End
@>Conditional Branch: Script: Input.trigger?(Input::RIGHT)
@>>Control Variables: [Tap 1] = 6
@>>Control Switches: [Tapped Once] = ON
@>>Control Switches: [Never Tapped] = OFF
@>>Branch End

Check Tapping Again
Code: [Select]
Common Event: Check Tapping Again
Trigger: Parallel
Condition Switch: Tapped Once

List of event commands
@>Conditional Branch: Script: Input.trigger?(Input::UP)
@>>Control Variables: [Tap 2] = 2
@>>Control Switches: [Verification] = ON
@>>Control Switches: [Tapped Once] = OFF
@>>Branch End
@>Conditional Branch: Script: Input.trigger?(Input::DOWN)
@>>Control Variables: [Tap 2] = 8
@>>Control Switches: [Verification] = ON
@>>Control Switches: [Tapped Once] = OFF
@>>Branch End
@>Conditional Branch: Script: Input.trigger?(Input::LEFT)
@>>Control Variables: [Tap 2] = 4
@>>Control Switches: [Verification] = ON
@>>Control Switches: [Tapped Once] = OFF
@>>Branch End
@>Conditional Branch: Script: Input.trigger?(Input::RIGHT)
@>>Control Variables: [Tap 2] = 6
@>>Control Switches: [Verification] = ON
@>>Control Switches: [Tapped Once] = OFF
@>>Branch End

Timer
Code: [Select]
Common Event: Timer
Trigger: Parallel
Condition Switch: Tapped Once

@>Wait: 5 Frames
@>Control Variables: [Time] += 1
@>Conditional Branch: Variable: [Time] == 2
@>>Control Variables: [Tap 1] = 0
@>>Control Variables: [Tap 2] = 0
@>>Control Variables: [Time] = 0
@>>Control Switches: [Never Tapped] = ON
@>>Control Switches: [Tapped Once] = OFF

Verify Correct Button
Code: [Select]
Common Event: Verify Correct Button
Trigger: Parallel
Condition Switch: Verification

List of Event Commands:
@>Conditional Branch: Variable [Tap 1] == Variable [Tap 2]
@>>Control Switches: [Tapped Twice] = ON
@>>Control Switches: [Tapped Once] = OFF
@>>Control Switches: [Verification] = OFF
@>>Else
@>>Control Switches: [Never Tapped] = ON
@>>Control Switches: [Tapped Once] = OFF
@>>Control Switches: [Verification] = OFF

Dashing (Success)
Code: [Select]
Common Event: Dashing (Success)
Trigger: Parallel
Condition Switch: Tapped Twice

@>Conditional Branch: Script: Input.press?(Input::UP) or Input.press?(Input::DOWN) or Input.press?(Input::LEFT) or Input.press?(Input::RIGHT)
@>>Set Move Route: Player:
$>Change Speed: 5
@>>Else
@>>Set Move Route: Player:
$>Change Speed: 4
@>>Control Variables: [Tap 1] = 0
@>>Control Variables: [Tap 2] = 0
@>>Control Variables: [Time] = 0
@>>Control Switches: [Tapped Twice] = OFF
@>>Control Switches: [Never Tapped] = ON
@>>Branch End
Title: Re: Double Tap Dash Button 3
Post by: Best-Gammer on November 26, 2006, 03:28:23 PM
omg y cant people add the game name to there topic!?


is this for xp of 2k3
Title: Re: Double Tap Dash Button 3
Post by: Punk on November 27, 2006, 01:15:24 AM
XP
Title: Re: Double Tap Dash Button 3
Post by: Best-Gammer on November 27, 2006, 02:44:37 AM
idont get it...this should be in scripts....havent seen 2k3 varibles in a while
Title: Re: Double Tap Dash Button 3
Post by: Blizzard on November 27, 2006, 10:57:20 AM
These are event systems, they don't belong into scripts.