Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

 
Closed TopicStart new topic
> Scripting Question, Closed
KD648
post May 17 2012, 09:13 AM
Post #1


Level 13
Group Icon

Group: Revolutionary
Posts: 237
Type: Writer
RM Skill: Skilled




First, let me apologize if this isn't the right thread. I looked around a bit, and this seemed like the best place to post this question, but let me know if a different thread would be better in the future.

One of the main issues I'm having with my game is that it's so complicated, I can't do a decent tutorial without it taking FOREVER. My solution was to do a "battle tips" system (similar to Tales of Graces F if you've played it). Essentially, after every fight a little common event message pops up explaining a little bit more of the combat. That way you get a tip, you see how it works in the next fight, and then get another tip.

My problem is this: I have everything set up including all the common events, how the game will decide which tips to play when, and its all fine. BUT I can't seem to call up common events in the victory processing section of Scene_Battle. I'm using the same code I use to call Common Events in battle (some skills in my game require it), but for some reason it doesn't pull up any text in the victory processing section. Here is what I'm using:

if $game_switches[101] == true
if $game_variables[30] <= 7
if $game_variables[30] == 0
tip = $data_common_events[50]
end
end
$game_troop.interpreter.setup(tip.list)
end

Essentially, when the switch is on (the tips can be turned off via the main menu), then the game checks how many messages have played (the first ones are definitions of things like HP and ATK and don't need to be repeated, so they're in a special group). Then depending on the number of messages the game has played (the variable), it selects which message to play next. The common event includes text and adds one count to the variable. This section isn't finished obviously, but its enough to check that the concept is right. The game isn't telling me anything's wrong, but it isn't playing the message in the common event. Does anyone know why? Thanks upfront!

EDIT: After trying some more and getting really frustrated, I ended up just using a victory aftermath script that YERD made. It's going to be more work and not as controlled, but I think the other way would have taken too long to figure out. On the offchance someone has a similar problem and found this in a search, the script is "YERD Display Victory Aftermath" and I'm manipulating the Actor "Personal Messages" in order to get random messages brought up at the very end of each fight.

This post has been edited by KD648: May 18 2012, 08:57 PM


__________________________
The Demo of "After" is complete! Learn more and play here!

Read the RRR Official Preview: http://www.rpgrevolution.com/forums/index....showtopic=52257
I support

Go to the top of the page
 
+Quote Post
   

Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 19th June 2013 - 10:04 AM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker