Logo

[SM5] Check if player has score on selected difficulty?

Register Log In Back To Forums

Post #1 · Posted at 2019-04-01 03:00:00pm 2.8 months ago

Offline leadbman
leadbman Avatar Member
210 Posts
Australia
Reg. 2016-02-01
Log in to send this user a private message
"Working On: 5thMix BGA bgchanges"
Hi all,

Just wondering if anyone knows how to check if there is a score for the current difficulty of a song on a per-player basis? As in check if P1 has a score for heavy and separately check if P2 has a score for say standard.

I'm assuming you'd just need to get the current difficulty for P1 and check if there's a score and do the same for P2.

Hope someone can point me in the right direction, I'm a little stumped with this.
https://zenius-i-vanisher.com/ddrsig/18213.png?t=1510895050
Really need to add my scores to the tracker soon.
Always learning, always trying to push the boundaries of SM.

Post #2 · Posted at 2019-04-05 08:13:21pm 2.7 months ago

Offline ZTS
ZTS Avatar Member
82 Posts
Not Set
Reg. 2015-01-13
Log in to send this user a private messageYouTube

Last updated: 2019-04-05 08:15pm
In my theme, check out PlayerScore.lua and MachineScore.lua.
It will update when you switch difficulty/song/steps.

https://github.com/RhythmLunatic/Delta-NEX-Rebirth/blob/master/BGAnimations/ScreenSelectMusic%20decorations/MachineScore.lua
https://github.com/RhythmLunatic/Delta-NEX-Rebirth/blob/master/BGAnimations/ScreenSelectMusic%20decorations/PlayerScore.lua

For your purposes, you only need "if topscore then".
Maker of PIU Delta NEX Rebirth and MBAACC for StepMania 5, Rave It Out dev, and more
StepMania theme dev discord: https://discord.gg/KyTnjY4
Check out SM-RIO featuring mods for pump incl. linux PacDrive, Windows PIUIO, and more: https://github.com/RhythmLunatic/stepmania

Post #3 · Posted at 2019-04-06 06:20:09am 2.7 months ago

Online razorblade
razorblade Avatar Member
917 Posts
Not Set
Reg. 2011-03-01
Log in to send this user a private message
https://www.pastiebin.com/5ca843f34a376
More actions. Less talks.
Register Log In Back To Forums

0 User(s) Viewing This Thread (Past 15 Minutes)

©2006-2019 Zenius -I- vanisher.com -5th style- IIPrivacy Policy
Web Server: 1% · Database: 8% · Server Time: 2019-06-26 11:55:46
This page took 0.005 seconds to execute.
Theme: starlight · Language: englishuk
Reset Theme & Language