Lecode 34 Posted September 4, 2014 (edited) 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 Instrutions In the script. Make sure that the challenge maker is above the core. Script https://drive.google.com/folderview?id=0B_97KWiBTWbbSkNqV0pQY2Vmb28&usp=sharing 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 August 9, 2015 by Lecode 5 Share this post Link to post Share on other sites
MHRob 8 Posted September 4, 2014 (edited) 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 September 4, 2014 by MHRob 1 Share this post Link to post Share on other sites
magic2345 252 Posted September 5, 2014 Whoa, this....this is a neat idea for a script! I'm gonna tinker around with it. Share this post Link to post Share on other sites
Lecode 34 Posted September 5, 2014 (edited) 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 September 5, 2014 by lecode Share this post Link to post Share on other sites
ShidoLionheart 5 Posted September 5, 2014 I use yanfly victory aftermath, can you tell me if this is compatible with yanfly scritps? Because it's a very good script! Share this post Link to post Share on other sites
Coolie 148 Posted September 5, 2014 I was looking for something just like this! Very cool. Share this post Link to post Share on other sites
Lecode 34 Posted September 5, 2014 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
Lecode 34 Posted September 5, 2014 Update : Works with both Yanfly engine & victory aftermath. But make sure to put this script below them. Share this post Link to post Share on other sites
MHRob 8 Posted September 5, 2014 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
Lecode 34 Posted September 5, 2014 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
MHRob 8 Posted September 5, 2014 (edited) 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 September 5, 2014 by MHRob Share this post Link to post Share on other sites
Lecode 34 Posted September 5, 2014 In a blank project yanfly's stuff and my script work well. Can you make a screenshot of your script list ? Share this post Link to post Share on other sites
MHRob 8 Posted September 5, 2014 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
Lecode 34 Posted September 5, 2014 (edited) 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 September 5, 2014 by lecode 2 Share this post Link to post Share on other sites
Lecode 34 Posted September 20, 2014 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) 1 Share this post Link to post Share on other sites
vivi21 1 Posted October 10, 2014 Can you make it to where every time you complete a challenge a variable increases? Share this post Link to post Share on other sites
Lecode 34 Posted October 14, 2014 Okey, i'll do it tomorrow. Share this post Link to post Share on other sites
vivi21 1 Posted October 15, 2014 Good because I want to make different endings based on how many challenges you've completed. Share this post Link to post Share on other sites
Lecode 34 Posted October 15, 2014 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
vivi21 1 Posted October 15, 2014 Ah thank you very much:) Share this post Link to post Share on other sites
halrawk 11 Posted October 16, 2014 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). Share this post Link to post Share on other sites
Lecode 34 Posted October 16, 2014 I plan to do an update. I'll fix it at the same time. Thanks for reporting this. Share this post Link to post Share on other sites
Lecode 34 Posted October 21, 2014 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. 1 Share this post Link to post Share on other sites
halrawk 11 Posted October 21, 2014 Awesome fixes, everything works perfect now! Share this post Link to post Share on other sites
vivi21 1 Posted September 17, 2015 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