It is currently 29 Oct 2025, 18:18
   
Text Size

Quest Mode Tweaks

Post MTG Forge Related Programming Questions Here

Moderators: timmermac, Agetian, friarsol, Blacksmith, KrazyTheFox, CCGHQ Admins

Quest Mode Tweaks

Postby friarsol » 21 Sep 2010, 16:06

I submitted some code yesterday that would allow the user to tweak some quest mode values without needing to recompile the jar file (since the file is read at runtime)

The file is here: /res/quest/quest.preferences
Code: Select all
difficultyString=Easy,Normal,Hard,Very Hard
# Num of Wins for each Difficulty to gain a Booster, Rank, Duel vs Tougher AI Decks
winsForBooster=1,1,2,2
winsForRankIncrease=3,4,5,6
winsForMediumAI=10,9,8,7
winsForHardAI=20,18,16,14
# When starting a quest this is how much of each type you'll start with. Plus your starting Credits.
startingBasicLand=20
startingSnowBasicLand=20
startingCommons=45,40,40,40
startingUncommons=20,15,15,15
startingRares=10,10,10,10
startingCredits=250
# When winning a booster pack, this is what you'll expect to see in a pack.
boosterPackCommon=7
boosterPackUncommon=3
boosterPackRare=1
# Match rewards that are used by the quest system
matchRewardBase=10
matchRewardTotalWins=0.3
matchRewardNoLosses=10
matchRewardAltWinBonus=100
macthRewardWinOnFirstTurn=1500
matchRewardWinByTurnFive=250
matchRewardWinByTurnTen=50
matchRewardWinByTurnFifteen=5
matchRewardMullToZero=500
Hopefully these names are descriptive enough that most of them can be figured out. I had seen it a handful of times on the Feature Request Thread and thought it would be useful for myself, since I start new quests by selling off all my snow land and half of my normal land. Now I can just start with 10 of each basic, and 500 credits.

This should also make it easier for us to figure out good default values for when the difficulty should increase. Previously, the easier modes were more quickly moving up to better AI decks. Which is the reverse from how it should happen. Easy should have lots of time on easy decks before it upgrades. Normal a little less. Etc.

Poke around with it just in case I messed something up, but it should be pretty straightforward.
friarsol
Global Moderator
 
Posts: 7593
Joined: 15 May 2010, 04:20
Has thanked: 243 times
Been thanked: 965 times

Re: Quest Mode Tweaks

Postby Jaedayr » 22 Sep 2010, 16:10

I like this idea. Currently I am still trying to learn a lot of new cards and it would be more fun if I weren't facing some of the nasty opponents so soon in my adventure.
Jaedayr
Tester
 
Posts: 523
Joined: 08 Jul 2010, 00:06
Has thanked: 16 times
Been thanked: 13 times

Re: Quest Mode Tweaks

Postby Huggybaby » 22 Sep 2010, 23:25

Nice change friarsol.
BTW, there's a typo in "macthRewardWinOnFirstTurn=1500" just in case that was pasted from your code.
User avatar
Huggybaby
Administrator
 
Posts: 3229
Joined: 15 Jan 2006, 19:44
Location: Finally out of Atlanta
Has thanked: 754 times
Been thanked: 601 times

Re: Quest Mode Tweaks

Postby friarsol » 23 Sep 2010, 01:34

Good catch. Luckily, it was typo'd in both places so it hadn't affected anything, but it's fixed now.
friarsol
Global Moderator
 
Posts: 7593
Joined: 15 May 2010, 04:20
Has thanked: 243 times
Been thanked: 965 times

Re: Quest Mode Tweaks

Postby zerker2000 » 23 Sep 2010, 01:35

"And Steve and Bill did sign a pact of covenance; and from that day, MSWord was mac'th; and it did work most terribly."
:)
O forest, hold thy wand'ring son
Though fears assail the door.
O foliage, cloak thy ravaged one
In vestments cut for war.


--Eladamri, the Seed of Freyalise
zerker2000
Programmer
 
Posts: 569
Joined: 09 May 2009, 21:40
Location: South Pasadena, CA
Has thanked: 0 time
Been thanked: 0 time


Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 11 guests

Main Menu

User Menu

Our Partners


Who is online

In total there are 11 users online :: 0 registered, 0 hidden and 11 guests (based on users active over the past 10 minutes)
Most users ever online was 9298 on 10 Oct 2025, 12:54

Users browsing this forum: No registered users and 11 guests

Login Form