Welcome Guest ( Log In | Register )

[ Big| Medium| Small] -



Post new topic Reply to topic  [ 4 posts ] 
Sooth
  Sun Jul 29, 2012 3:37 pm
Rock long and prosper.
User avatar
Sponsor

Location: Portland, OR
I'd like to call a Common Event when the fight ends in victory: preferably, when the battle screen has actually cleared and you're back on the map. The Common Event will do a number of things in different circumstances but mostly, it will restore the whole party and reset numerous variables used with fights.

I tried to do this myself, in my infantile-to-nonexistent scripting abilities, by going to Scene_Battle1, Battle Ends, and around line 150 or so right below Scene.Map.new, placing: "$game_temp.common_event_id = [50]"

This causes my game to give the following error after fights:

Script 'Interpreter 1' line 72: NoMethodError occurred.
undefined method '>' for [50]:Array

I tried using a neat script I found at http://rmrk.net/index.php?topic=41716.0 -- but it's for RMVX, and it causes an error when I start the game related to class Scene_Base.

I will accept pretty much any solution, a keenly directed "Here's where you can put it in yourself", "Here's how to make what you're already doing not crash", or a script that does this, a link to a script that does this already, or whatever. Thanks for the assistance.

_________________
"Humankind is not likely to salvage civilization unless it can evolve a system of good and evil which is independent of heaven and hell." - George Orwell.

"What a flickering candle of hope in the winds of Pandemonium that is! Flicker-flicker, WHOOSH!" - NPC from Planescape: Torment.

"The closer you get to the meaning, the sooner you'll know that you're dreaming." - Ronnie James Dio.


Last edited by Sooth on Tue Jul 31, 2012 8:38 am, edited 2 times in total.

Top Top
 Profile  
 

regi
  Sun Jul 29, 2012 7:32 pm
raptor king
User avatar
Global Moderator
I'm not completely sure how common events are called, but for starters, you could get rid of the [] around "50" in your call (the script expects an integer, but you're feeding it an array instead).

If that doesn't work, I'll try looking into the scripts themselves to see how they work.

_________________
regi's games | immerse

SCAVENGER
action-puzzle-RPG in which one can visualize the past
NEWT text-based adventures of a four-legged amphibian
OMNISIA time-traveling puzzle-RPG against the deadliest of foes


Top Top
 Profile  
 

Eventing_Guy
  Sun Jul 29, 2012 11:13 pm
User avatar
Awesome Bro

Location: Where the BROs are ALL just that Awesome
Well... instead of making things SUPER complex... why not:

Make your common Event like -

(Common Event : Activates if [Switch] Fight: ON : Auto-Run)

- During the begining of a battle [Switch] Fight is turned ON

- Since that is ON, after the fight is OVER... Common Event Innitiates
and does what you want it to do... and at the END of the Common Event.

- [Switch] Fight = OFF


Top Top
 Profile  
 

Sooth
  Tue Jul 31, 2012 8:38 am
Rock long and prosper.
User avatar
Sponsor

Location: Portland, OR
Both of those work, actually. I'm one to try and use as few scripts as possible but since I had the script line already there, I just took off the brackets and now it does what I want it to. I'll keep the switching method in mind for the future. Thanks.

_________________
"Humankind is not likely to salvage civilization unless it can evolve a system of good and evil which is independent of heaven and hell." - George Orwell.

"What a flickering candle of hope in the winds of Pandemonium that is! Flicker-flicker, WHOOSH!" - NPC from Planescape: Torment.

"The closer you get to the meaning, the sooner you'll know that you're dreaming." - Ronnie James Dio.


Top Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 


Who is online

Users browsing this forum: No users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Jump to:  

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Hosted By: