Announcement: Be excellent to each other.


Caravel Forum : DROD RPG Boards : RPG Feature Requests : Editable Score Conversion Values
New Topic New Poll Post Reply
Poster Message
kieranmillar
Level: Smitemaster
Rank Points: 2693
Registered: 07-11-2014
IP: Logged
icon Editable Score Conversion Values (+6)  
DROD RPG is harcoded to have the following things count during scoring:

40 HP = 1 point
ATK = 5 points
DEF = 3 points
Yellow key = 10 points
Green Key = 20 points
Blue Key = 30 points
Skeleton Key = 30 points

It would be nice to be able to edit these, there are a number of holds where the author wants to be able to rank the player on other metrics, such as REP or making each HP count for 1 point.

I propose some built in vars:
_ScoreHp
_ScoreAtk
_ScoreDef
_ScoreYellowKey
_ScoreGreenKey
_ScoreBlueKey
_ScoreSkeletonKey
_ScoreGr
_ScoreRep

The vars can be set to the following values:
* Positive number - X points per each one you have (e.g. _ScoreAtk = 5)
* Negative number - 1 point per X you have (e.g. _ScoreHp = -40)
* Zero - Does not show up in scorepoint score window

These could all have default values that replicate the current scoring method so all old holds are abckwards compatible. (NOTE: _ScoreGr and _ScoreRep would default to 0)

The scorepoint window can also be adjusted to show lines for all non-zero values, with a clarity as to how it is calculated e.g.:

326 HP      / 40 = 8
12 ATK      * 5  = 60
3 DEF       * 3  = 9
---------------------
Score            = 77


Of course it would still be nice for authors to also drop in a scroll explain this, but this has currently worked out pretty well for editing the hot tile damage values so I think we can safely rely on them doing that.

Some things to consider:
* How do you handle someone putting in a ridiculous conversion value for one of these and busting past MAX_INT for any of these, or the total score? Just something the HAs will need to look out for?
* Don't forget that the total score also shows up when right-clicking the player, and on the Restore screen when you click on a save.

[Last edited by kieranmillar at 12-11-2022 01:41 PM]
10-03-2020 at 01:10 PM
View Profile Send Private Message to User Show all user's posts High Scores This architect's holds Quote Reply
kieranmillar
Level: Smitemaster
Rank Points: 2693
Registered: 07-11-2014
IP: Logged
icon Re: Editable Score Conversion Values (+2)  
Just a bump to say I am working on implementing this, and already only really have making the score checkpoint look nice left to do, so if you have any opinions, now is a good time!
12-11-2022 at 01:43 PM
View Profile Send Private Message to User Show all user's posts High Scores This architect's holds Quote Reply
kieranmillar
Level: Smitemaster
Rank Points: 2693
Registered: 07-11-2014
IP: Logged

File: EditableScores.jpg (398 KB)
Downloaded 194 times.
License: Public Domain
icon Re: Editable Score Conversion Values (+2)  
Here's how it looks with all stats. Any stat with a score conversion value of 0 won't appear, so will usually be smaller than this. I added a lot more width to accommodate large values, and longer scorepoint names.



[Last edited by kieranmillar at 12-11-2022 10:01 PM]
12-11-2022 at 10:01 PM
View Profile Send Private Message to User Show all user's posts High Scores This architect's holds Quote Reply
kieranmillar
Level: Smitemaster
Rank Points: 2693
Registered: 07-11-2014
IP: Logged
icon Re: Editable Score Conversion Values (+2)  
12-11-2022 at 10:38 PM
View Profile Send Private Message to User Show all user's posts High Scores This architect's holds Quote Reply
kieranmillar
Level: Smitemaster
Rank Points: 2693
Registered: 07-11-2014
IP: Logged
icon Re: Editable Score Conversion Values (+2)  
PR 468 fixes a possible overflow bug. Each scoreable resource is now capped at 100 million score so their sum does not overflow.
12-17-2022 at 11:43 PM
View Profile Send Private Message to User Show all user's posts High Scores This architect's holds Quote Reply
greenscience
Level: Master Delver
Rank Points: 141
Registered: 02-27-2015
IP: Logged
icon Re: Editable Score Conversion Values (+2)  
Is this feature expected to be compatible with existing saves? Seems like the default multipliers are only set when starting a hold so loading saves from previous builds/version then triggering score point results in a score of 0.
12-19-2022 at 02:11 PM
View Profile Send Private Message to User Send Email to User Show all user's posts Quote Reply
hyperme
Level: Smitemaster
Avatar
Rank Points: 1082
Registered: 06-23-2006
IP: Logged
icon Re: Editable Score Conversion Values (+2)  
It is indeed a bug that this current breaks scores in existing saves. There should be default values for these vars when they can't be loaded.

Edit: Made a PR to fix it.

____________________________
[Insert witty comment here]
Qzvlkx?

[Last edited by hyperme at 12-19-2022 03:36 PM]
12-19-2022 at 03:17 PM
View Profile Send Private Message to User Show all user's posts High Scores This architect's holds Quote Reply
kieranmillar
Level: Smitemaster
Rank Points: 2693
Registered: 07-11-2014
IP: Logged
icon Re: Editable Score Conversion Values (+1)  
Can confirm the bug that wiped out scores in saves from old saves is fixed in 1.3.0.499.
06-06-2023 at 09:57 PM
View Profile Send Private Message to User Show all user's posts High Scores This architect's holds Quote Reply
New Topic New Poll Post Reply
Caravel Forum : DROD RPG Boards : RPG Feature Requests : Editable Score Conversion Values
Surf To:


Forum Rules:
Can I post a new topic? No
Can I reply? No
Can I read? Yes
HTML Enabled? No
UBBC Enabled? Yes
Words Filter Enable? No

Contact Us | CaravelGames.com

Powered by: tForum tForumHacks Edition b0.98.8
Originally created by Toan Huynh (Copyright © 2000)
Enhanced by the tForumHacks team and the Caravel team.