Jump to content

Recommended Posts

Battle Challenge

Vers. 0.8

Last update : Sept. 20, 2014

 

Introduction

This script reproduce a challenge system.
At the start of a battle, a challenge appears. 
It's simple : if you pass the instructions you get rewards at the end of the battle.
Example of a challenge: "Win the battle in X turns",
or... "Do a critical strike", ect.
 
You can create your OWN challenge with rewards, description and all.
But to be customizable to the fullest, you need some knowledge in ruby script.
If you can't manage to make it, you can ask me for help.
 
Screens
iwHljnm.png
 
DIvv1aD.png
 
Instrutions
In the script.
Make sure that the challenge maker is above the core.
 
Script
 
Features
-Create your own challenge
-Challenge pop up window
-Challenge rewards window
-Sounds when a challenge is accomplished or missed
-Compatible with any battle system that use Scene_Battle as main scene. Normally :x.
-And really more..
 
Current challenges:
-Intouchable: Do not receive damage
-Perfect: Win the battle with full life
-Survivor: No ally should die
-Serenity: Do not use TP
-Rage: Reach 100 TP
-Fast and Furious: End the battle in 3 turns
-Focus: All attacks must be concentrated on a single enemy until his death
-Wizard, Wizard everywhere: Do not use the attack command
-Brutality: Score a critical strike
-Assassination: Kill the firstly the target
-Foreseeing: Start the battle with at least 75% of members HP
-Red Line: Keep your life at a critical point
 
Compatibility
There are possibilities that the script does not work properly with other scripts running
something at the beginning or the end of the fight.
-Works great with Yanfly Victory Atermath as long as you set On_Message_Window to false
-Doesn't work properly with Yanfly Battle Engine (0.7 update)
-Works with Moghunter master scripts :)
 
 
 
 
Q & A:

Q : It's difficult to make a challenge
A : You need a bit of rgss knowledge if you want to make your own challenges, yeah.
But in RPG Maker, customization comes with scripting.
 
Q : OMG, i have an error :
unexpected tSTRING_BEG, expecting '}'
"......" =>

A : Don't forget the comma after the string inside the challenge maker

 

Q : I have a bug

A : Please report :)

 

Q : I do not understand your explanations

A : I'm sorry about that.

 

 

Edited by Lecode

Share this post


Link to post
Share on other sites

Oh, very interesting! Will be sure to give it a shot once I get the chance. Thanks for sharing!

 

Edit: Just got around to testing it. After completing a challenge and winning the battle, the game froze. Seems like a really neat script but it doesn't seem to be compatible with yanfly's battle engine or victory aftermath, which I make use of. Not sure which is causing the problem, but anyways. Again thanks for sharing!

 

Edit 2: Decided to test it a bit more, this time, I was able to go past the victory screen and back out of battle. Not really sure what caused the freezing in the first place, but it was during the assasination challenge, then again, this 2nd attempt I didn't manage to complete the challenge. Will continue to play around with it for a bit.

 

Edit 3:It's a neat script, but there's a lot of freezing going on. I realize this is mentioned in one of the scripts but eh..

Edited by MHRob

Share this post


Link to post
Share on other sites

Oh, very interesting! Will be sure to give it a shot once I get the chance. Thanks for sharing!

 

Edit: Just got around to testing it. After completing a challenge and winning the battle, the game froze. Seems like a really neat script but it doesn't seem to be compatible with yanfly's battle engine or victory aftermath, which I make use of. Not sure which is causing the problem, but anyways. Again thanks for sharing!

 

Edit 2: Decided to test it a bit more, this time, I was able to go past the victory screen and back out of battle. Not really sure what caused the freezing in the first place, but it was during the assasination challenge, then again, this 2nd attempt I didn't manage to complete the challenge. Will continue to play around with it for a bit.

 

Edit 3:It's a neat script, but there's a lot of freezing going on. I realize this is mentioned in one of the scripts but eh..

This is not surprising if you have a script that add a battle result of something that happens a the the battle beginning.  :(

I am working on to try to make it compatible with this kind of script.

Edited by lecode

Share this post


Link to post
Share on other sites

I use yanfly victory aftermath, can you tell me if this is compatible with yanfly scritps? Because it's a very good script!

Unfortunately not realy, but i'm working on.

 

Compatibility

There are possibilities that the script does not work properly with other scripts running
something at the beginning or the end of the fight.
-Works great with Yanfly Victory Atermath as long as you set On_Message_Window to false
-Doesn't work properly with Yanfly Battle Engine

Share this post


Link to post
Share on other sites

Game still freezes at the beginning of a battle. Also, if possible a suggestion? Would there be a script call or switch to turn on to temporarily disable the battle challenge and to turn it back on at any time?

Share this post


Link to post
Share on other sites

Which script are you using with Aftermath and Yanfly engine ?

 

 

 

Would there be a script call or switch to turn on to temporarily disable the battle challenge and to turn it back on at any time?

Yeah, you're right.

Share this post


Link to post
Share on other sites

I'm using many different scripts that have worked together thus far, though the only battle add-ons I'm using at the moment are yanflys stuff such as the visual battlers, the victory aftermath, euphoria's enemy interactions and your challenge scripts.

 

Edit: I have a very bad habbit of tapping the Z key to speed up messages so that might also be what's causing the game to freeze so much, lol... I noticed earlier it was mentioned in your script but I still keep doing it...

Edited by MHRob

Share this post


Link to post
Share on other sites

Okay, so I did ten battles in a row while keeping my trigger happy finger away from the Z key and there was no freezing. It seems that known bug is what's causing the problem. Any way to find it's source? Would be greatly appreciated, lol.

Share this post


Link to post
Share on other sites

o.o There is no freeze, for me.

Well... it seems that the bug has disappeared with the update.

Have you really the latest version ?

 

EDIT:

Would there be a script call or switch to turn on to temporarily disable the battle challenge and to turn it back on at any time?

Done.

Edited by lecode

Share this post


Link to post
Share on other sites

Update

# -- V. 0.8
#    Added an option for challenges occurrence
#    Added an option for better compatibility
#    Fixed a bug with the chall Assassination 
#    (please take again the chall maker)

Share this post


Link to post
Share on other sites

Update.

# -- V. 0.81
#    Added an option to change a variable when
#    a challenge is completed or failed

Check these lines:

#-------------------------------------------------------------------------
# â–¼ Variables that change when a chall is completed or failed
# [ value, ID ]
# value = the value that is added or subtracted to the variable
# set ID to 0 or less to disable the feature
#-------------------------------------------------------------------------
Var_Completed_Chall = [1,30]
Var_Failed_Chall = [-1,30]

Share this post


Link to post
Share on other sites

Hey there, I love this script, really adds a lot of fun to a battle, without being overly complex.

 

One issue I keep running into though, is the challenge name is cut off on a bunch of challenges.

 

He's an example image.

 

 

Seems to happen with a bunch of the challenges, but not all (Perfect get's the 't' cut off, and a few others).

post-17141-0-55199200-1413439147_thumb.png

Share this post


Link to post
Share on other sites

Sorry for the delay, I didn't have too much free time.

 

# -- V. 0.9

#    Fixed an issue with the display of the challenge's name in battle.
#    Fixed an issue with "Rage".
#    Fixed an issue when there is more than one type of xp or gold bonus tag.
#    Added the possibility to add a condition for a challenge to appear.
#    Moved the challenge configuration module into the challenge maker block.
#    Challenges' exp and gold bonuses should now be visible in the result scene.
#    (Works with Yanfly Aftermath at least)
#    Added a new challenge, "Red Line" to show how conditions work.

Share this post


Link to post
Share on other sites

I don't that the author will even read this but incase you do whenever I successfully complete a challenge I get this error

 

Script 'challenge' line 359 NoMethodError occured

 

 

undefined method 'gain' for nilNilClass

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×
Top ArrowTop Arrow Highlighted