Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

 
Reply to this topicStart new topic
> I want to remove the fight/run menu
link491
post Jun 25 2012, 05:41 PM
Post #1


Level 2
Group Icon

Group: Member
Posts: 18
Type: None
RM Skill: Undisclosed




Alright, as many people may know, in rmvxa, there is a menu before the standard fight, items, guard, etc battle menu, this menu slivers the fight and the flee option. I am looking to remove this beginning menu, as it ruins the tab battle system I am using. Is there a script to do this? If not, how can undo it manually?

Thanks in advance
Link491
Go to the top of the page
 
+Quote Post
   
Kaleb Daub
post Jun 25 2012, 06:04 PM
Post #2


Level Up!
Group Icon

Group: Revolutionary
Posts: 300
Type: Artist
RM Skill: Beginner




Don't really understand what you are asking could you explain more. Like show screen shots or or post a link to this battle system you are using.

This post has been edited by mooshra: Jun 25 2012, 06:16 PM


__________________________
My games.
Go to the top of the page
 
+Quote Post
   
amerk
post Jun 26 2012, 09:31 AM
Post #3


Level 56
Group Icon

Group: Global Mod
Posts: 1,784
Type: None
RM Skill: Undisclosed
Rev Points: 15




What I believe he means is that you get a Fight/Flee command window initially, and if you elect Fight, then you get your Attack, Skill, Defend, Item commands.

If I'm understanding, he would prefer to skip the initial window of Fight/Flee and go straight to the second command window of Attack, Skill, etc. However, this would require scripting and perhaps window modification, as you would probably want to add the Flee command to the second window.


__________________________
Go to the top of the page
 
+Quote Post
   
Kaleb Daub
post Jun 27 2012, 05:00 AM
Post #4


Level Up!
Group Icon

Group: Revolutionary
Posts: 300
Type: Artist
RM Skill: Beginner




I don't know of a script like that but you could maybe see if screwing with this script works it has many useful functions of altering the command list.
http://yanflychannel.wordpress.com/rmvxa/b...e-command-list/

This post has been edited by mooshra: Jun 27 2012, 05:00 AM


__________________________
My games.
Go to the top of the page
 
+Quote Post
   
Night_Runner
post Jul 2 2012, 05:46 AM
Post #5


Level 50
Group Icon

Group: +Gold Member
Posts: 1,528
Type: Scripter
RM Skill: Undisclosed




If anyone is still interested, I've quickly made a script that will do what link 491 was after

CODE
class Scene_Battle
  # Alias Methods
  alias nr_SkipFlee_start_party_cmd_sel start_party_command_selection unless $@
  # Start Party Selection
  def start_party_command_selection(*args)
    # Run the original start_party_command_selection
    nr_SkipFlee_start_party_cmd_sel(*args)
    # Deactivate the party command window
    @party_command_window.deactivate
    # Run the fight selection code
    command_fight
  end
end


__________________________
K.I.S.S.
Want help with your scripting problems? Upload a demo! Or at the very least; provide links to the scripts in question.

Most important guide ever: Newbie's Guide to Switches
Go to the top of the page
 
+Quote Post
   
Tsukihime
post Jul 2 2012, 09:39 AM
Post #6


Level 25
Group Icon

Group: Revolutionary
Posts: 562
Type: None
RM Skill: Undisclosed
Rev Points: 25




lol I noticed you type "unless $@" in every alias call. Does it actually do anything?


__________________________
My Scripts
Go to the top of the page
 
+Quote Post
   
Night_Runner
post Jul 3 2012, 05:26 AM
Post #7


Level 50
Group Icon

Group: +Gold Member
Posts: 1,528
Type: Scripter
RM Skill: Undisclosed




It's useful if you alias methods that aren't in the script editor (for example, the update method of the Window class), and the player hits F12 to do a soft reset.

If that set of actions happen, you can get a stack error issue (see the last chapter of Alias and You)
This link goes into more depth about how the 'unless $@' addresses the stack error.


__________________________
K.I.S.S.
Want help with your scripting problems? Upload a demo! Or at the very least; provide links to the scripts in question.

Most important guide ever: Newbie's Guide to Switches
Go to the top of the page
 
+Quote Post
   
XerX
post Jul 3 2012, 06:12 AM
Post #8


Team Mercury Leader
Group Icon

Group: Revolutionary
Posts: 108
Type: Artist
RM Skill: Intermediate




Yanfly's Advanced Battle Script switches the windows around, all you have to do to flee is go back with the B(X) button.


__________________________
-NOW UNDER A RELIABLE HOST!

Go to the top of the page
 
+Quote Post
   
Tsukihime
post Jul 3 2012, 08:05 AM
Post #9


Level 25
Group Icon

Group: Revolutionary
Posts: 562
Type: None
RM Skill: Undisclosed
Rev Points: 25




QUOTE (Night_Runner @ Jul 3 2012, 05:26 AM) *
It's useful if you alias methods that aren't in the script editor (for example, the update method of the Window class), and the player hits F12 to do a soft reset.

If that set of actions happen, you can get a stack error issue (see the last chapter of Alias and You)
This link goes into more depth about how the 'unless $@' addresses the stack error.


Oh, that's interesting.
I've seen F12 crash reports all the time from various scripts and have experienced it myself but could never figure out what the issue was.

But it looks like it is only concerned with specific classes/modules (and from XP/VX, Ace shows some more classes, but hides away a bunch of new stuff)

The issue shouldn't occur with public methods defined in public classes like Scene_Battle?

This post has been edited by Tsukihime: Jul 3 2012, 08:07 AM


__________________________
My Scripts
Go to the top of the page
 
+Quote Post
   
link491
post Jul 3 2012, 03:52 PM
Post #10


Level 2
Group Icon

Group: Member
Posts: 18
Type: None
RM Skill: Undisclosed




Thanks soooooo much for the script, Night Runner. It works great. i will definitely credit you for it in my game.
Go to the top of the page
 
+Quote Post
   
Night_Runner
post Jul 5 2012, 02:02 AM
Post #11


Level 50
Group Icon

Group: +Gold Member
Posts: 1,528
Type: Scripter
RM Skill: Undisclosed




@> Tsukihime: That is correct, you only need to add the 'unless $@' when you're aliasing inside hidden classes, but once upon a time I decided to add it for completeness, and I kept forgetting to add it when I aliased hidden methods, so I just do it everywhere happy.gif

@> link491: No worries, glad I could help!


__________________________
K.I.S.S.
Want help with your scripting problems? Upload a demo! Or at the very least; provide links to the scripts in question.

Most important guide ever: Newbie's Guide to Switches
Go to the top of the page
 
+Quote Post
   

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 25th May 2013 - 08:58 PM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker