[ZScript] Lazy Points: basic scoring system
Forum rules
The Projects forums are only for projects. If you are asking questions about a project, either find that project's thread, or start a thread in the General section instead.
Got a cool project idea but nothing else? Put it in the project ideas thread instead!
Projects for any Doom-based engine (especially 3DGE) are perfectly acceptable here too.
Please read the full rules for more details.
The Projects forums are only for projects. If you are asking questions about a project, either find that project's thread, or start a thread in the General section instead.
Got a cool project idea but nothing else? Put it in the project ideas thread instead!
Projects for any Doom-based engine (especially 3DGE) are perfectly acceptable here too.
Please read the full rules for more details.
-
-
- Posts: 1446
- Joined: Fri Dec 29, 2017 4:15 am
- Preferred Pronouns: He/Him
- Operating System Version (Optional): Manjaro Linux
- Location: Siberia (UTC+7)
[ZScript] Lazy Points: basic scoring system
Playable Demo
Source
Introducing Lazy Points, the most basic scoring system.
Requires GZDoom 4.3.3 or newer.
Features:
- uses standard player score variable, so it's easy to read and write score outside from Lazy Points;
- absolutely no impact on gameplay whatsoever;
- shows other players' scores in multiplayer;
- top 10 map scores that are saved between games* (accessed by assigned key).
Scoring:
1. Damage: players get points for the amount of damage they inflict on monsters.
2. Kills: players get points for 10% of killed monsters;
3. Chain kills: 10 points for each monster killed in 3 seconds after previous kill.
4. Secrets: finding a secret gives 250 points.
5. Map items: collecting an item that counts for item counts gives 5 points.
6. Keys: collectiog a key gives 250 points.
7. Barrels: destroying an explosive barrel gives 5 points.
8. Player with 50% and more health gets kill points (with chain kill bonus) multiplied by 1.5, with 100% and more - by 2.
I'm open to suggestions, but cannot promise they will be implemented, because this is all I need for my other project.
Last edited by m8f on Sun Jun 28, 2020 7:16 am, edited 13 times in total.
-
- Posts: 2089
- Joined: Fri Feb 20, 2009 2:46 pm
- Location: somewhere with trees
Re: [ZScript] Scoring
Hey, this is pretty neat! I know it doesn't directly have an impact on game-play but it does encourage me to switch up my play style. Only played a couple of levels but it's pretty cool.
One minor suggestion, if it's possible or if you'd even want to do it. What if your score got reset after using cheat codes? Kind of like in Wolfenstein 3D. It might be more effort than it's worth but it might be a nice touch, or pointless I dunno.
I could see a lot of potential in other modders using this for RPG-style mods, or mods that simply give rewards when certain scores are reached. Not sure what I could personally do with it, but there's some cool ideas out there.
One minor suggestion, if it's possible or if you'd even want to do it. What if your score got reset after using cheat codes? Kind of like in Wolfenstein 3D. It might be more effort than it's worth but it might be a nice touch, or pointless I dunno.
I could see a lot of potential in other modders using this for RPG-style mods, or mods that simply give rewards when certain scores are reached. Not sure what I could personally do with it, but there's some cool ideas out there.
-
- Posts: 236
- Joined: Wed Feb 14, 2018 8:47 pm
- Graphics Processor: nVidia with Vulkan support
Re: [ZScript] Scoring
Yes. Thank you so much for making this!
-
-
- Posts: 1446
- Joined: Fri Dec 29, 2017 4:15 am
- Preferred Pronouns: He/Him
- Operating System Version (Optional): Manjaro Linux
- Location: Siberia (UTC+7)
Re: [ZScript] Lazy Points: basic scoring system
v0.2 is out. Playable demo.
Changes:
Fixes:
- renamed from Zcore to Lazy Points;
- use original Big Font instead of replacement Big Font, because there are Big Fonts without numbers;
- no more showing on titlemaps;
- fixed floating point truncation warnings;
- made timer animation smooth.
New stuff:
- scoring for keys;
- health multiplier bonus;
- displaying other players' scores in multiplayer.
Multiplayer is checked, but not thoroughly tested. It would be great if someone played in multiplayer with Lazy Points and reported if it desyncs or not.
Changes:
Fixes:
- renamed from Zcore to Lazy Points;
- use original Big Font instead of replacement Big Font, because there are Big Fonts without numbers;
- no more showing on titlemaps;
- fixed floating point truncation warnings;
- made timer animation smooth.
New stuff:
- scoring for keys;
- health multiplier bonus;
- displaying other players' scores in multiplayer.
Multiplayer is checked, but not thoroughly tested. It would be great if someone played in multiplayer with Lazy Points and reported if it desyncs or not.
Last edited by m8f on Sun Jun 28, 2020 7:13 am, edited 1 time in total.
-
-
- Posts: 1446
- Joined: Fri Dec 29, 2017 4:15 am
- Preferred Pronouns: He/Him
- Operating System Version (Optional): Manjaro Linux
- Location: Siberia (UTC+7)
Re: [ZScript] Lazy Points: basic scoring system
Lazy Points updated to 0.3. Changes:
- fixed scoring on telefragging;
- added top map scores.
- fixed scoring on telefragging;
- added top map scores.
-
- Posts: 159
- Joined: Thu Sep 03, 2015 10:45 pm
- Preferred Pronouns: No Preference
- Graphics Processor: Intel (Modern GZDoom)
Re: [ZScript] Lazy Points: basic scoring system
been getting this error on LZDoom
Script error, "lazy-points-0.3.pk3:zscript/zc_optionmenuscoreitem.zs" line 65:
Call to unknown function 'drawValue'
Script error, "lazy-points-0.3.pk3:zscript/zc_optionmenuscoreitem.zs" line 65:
Call to unknown function 'drawValue'
-
- Posts: 26
- Joined: Thu Feb 21, 2019 8:49 am
Re: [ZScript] Lazy Points: basic scoring system
i'm getting a different error on gzdoom 4.2.4
Code: Select all
Script error, "lazy-points-0.2.pk3:cvarinfo.txt" line 1:
Unknown cvar attribute 'nosave'
-
-
- Posts: 1446
- Joined: Fri Dec 29, 2017 4:15 am
- Preferred Pronouns: He/Him
- Operating System Version (Optional): Manjaro Linux
- Location: Siberia (UTC+7)
Re: [ZScript] Lazy Points: basic scoring system
Oh, I forgot to add version dependency. This needs GZDoom v4.3.2.
LZDoom lags behind in features a bit, so LZDoom users have to wait until drfrag updates it.
LZDoom lags behind in features a bit, so LZDoom users have to wait until drfrag updates it.
-
- Posts: 159
- Joined: Thu Sep 03, 2015 10:45 pm
- Preferred Pronouns: No Preference
- Graphics Processor: Intel (Modern GZDoom)
Re: [ZScript] Lazy Points: basic scoring system
No worries then. I'll use GZDoom in the meantime then.
-
-
- Posts: 1446
- Joined: Fri Dec 29, 2017 4:15 am
- Preferred Pronouns: He/Him
- Operating System Version (Optional): Manjaro Linux
- Location: Siberia (UTC+7)
Re: [ZScript] Lazy Points: basic scoring system
Important notice: Lazy Points data storage system is stable only in devbuilds currently. This is due to an oversight that was found only after GZDoom 4.3.2 release. The problem is handling large amounts of data. You aren't likely to reach data limits, but if you will, GZDoom will crash or freeze.
-To be clear: the oversight is mine, not GZDoom devs'.
Requires GZDoom 4.3.3 or newer.
-To be clear: the oversight is mine, not GZDoom devs'.
Requires GZDoom 4.3.3 or newer.
-
- Posts: 2
- Joined: Sat Jul 25, 2020 3:37 pm
- Graphics Processor: Intel (Modern GZDoom)
Re: [ZScript] Lazy Points: basic scoring system
will you have more options for the score mod?
ie: increase the timer for the chain from 3 seconds to 7 seconds ect.
Have a monster have a score amount something like zombieman with 10 points and cyberdemon being 150 points
remove the 500 points cap and go beyond
have an option to choose how the combo multiplier would be (health style combo (100hp = X 2.0) vs points style combo (100 points = X 2.0, 500 points = X 5.0))
Overall I love this combo mod keep up the amazing work.
ie: increase the timer for the chain from 3 seconds to 7 seconds ect.
Have a monster have a score amount something like zombieman with 10 points and cyberdemon being 150 points
remove the 500 points cap and go beyond
have an option to choose how the combo multiplier would be (health style combo (100hp = X 2.0) vs points style combo (100 points = X 2.0, 500 points = X 5.0))
Overall I love this combo mod keep up the amazing work.
-
-
- Posts: 1446
- Joined: Fri Dec 29, 2017 4:15 am
- Preferred Pronouns: He/Him
- Operating System Version (Optional): Manjaro Linux
- Location: Siberia (UTC+7)
Re: [ZScript] Lazy Points: basic scoring system
I won't be working on this mod unless a major bug is found.
However, if someone wants to modify the mod, here are some pointers:
Thanks!
However, if someone wants to modify the mod, here are some pointers:
- Timer duration can be easily changed in zscript/zc_Parameters.zs, BONUS_COUNTDOWN constant.
- Monster score calculation is in zscript/zc_Counter.zs, calculatePointsFor(Actor died) function. Right now the scores is based on enemy's base health. It can be changed to look like this:
Spoiler:
- Max timer bonus is in zscript/zc_TimerBonus.zs, MAX_TIMER_BONUS constant.
- This again requires modification of calculatePointsFor(Actor died) function in zscript/zc_Counter.zs. Look for _timerBonus and _healthBonus.
Thanks!
-
- Posts: 55
- Joined: Thu Oct 05, 2017 8:26 pm
Re: [ZScript] Lazy Points: basic scoring system
8. ARE YOU KIDDING ME?
Doom players live to ride on the edge of danger. The Multiplier should increase as your health depreciates. Taking a medicinal item should also earn points on the side, but the trick is when and where you recover and how long you manage to ride that wave. It gives score-obsessed completionists something of a personal dilemma: do they go for broke with low health and pray the hit-scanners get clipped first, or do they retake some health just to make sure they survive with what little score they have?
Doom players live to ride on the edge of danger. The Multiplier should increase as your health depreciates. Taking a medicinal item should also earn points on the side, but the trick is when and where you recover and how long you manage to ride that wave. It gives score-obsessed completionists something of a personal dilemma: do they go for broke with low health and pray the hit-scanners get clipped first, or do they retake some health just to make sure they survive with what little score they have?
-
-
- Posts: 1446
- Joined: Fri Dec 29, 2017 4:15 am
- Preferred Pronouns: He/Him
- Operating System Version (Optional): Manjaro Linux
- Location: Siberia (UTC+7)
Re: [ZScript] Lazy Points: basic scoring system
Lazy Points is a script library first and a playable demo second. Anybody can take it as a base and implement any score system they desire.
Looking forward to Neophyte_Ronin's Points Mod!
Looking forward to Neophyte_Ronin's Points Mod!
-
- Posts: 29
- Joined: Sun Feb 07, 2021 1:36 pm
Re: [ZScript] Lazy Points: basic scoring system
Hello. How would I implement this into a pk3? Since Lazy Points is a pk3 itself (of sorts)