Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In-Game-HP. #14744

Closed
Meziaki opened this issue May 26, 2024 · 8 comments
Closed

In-Game-HP. #14744

Meziaki opened this issue May 26, 2024 · 8 comments
Labels
question Further information is requested

Comments

@Meziaki
Copy link

Meziaki commented May 26, 2024

What is your question?

Is there a way I can make it so a script outright stops you from gaining HP on note-press?

@Meziaki Meziaki added the question Further information is requested label May 26, 2024
@Draconic-Hybrid
Copy link

Not tested, but in theory should work.

for i = 0, getProperty('unspawnNotes.length')-1 do
	setPropertyFromGroup('unspawnNotes', i, 'hitHealth', 0)
end

@TFLTV
Copy link

TFLTV commented May 27, 2024

This might be less flexible, but, in theory should work (i have not tested)

function onUpdatePost()
setProperty("health",1) -- Set value from 0 to 2. 0 is no health and 2 is full health. you can set this to any value but might not work properly
end

@Draconic-Hybrid
Copy link

This might be less flexible, but, in theory should work (i have not tested)

function onUpdatePost()
setProperty("health",1) -- Set value from 0 to 2. 0 is no health and 2 is full health. you can set this to any value but might not work properly
end

This one also prevents losing HP on miss.

@M4st3rG4m4
Copy link

This might be less flexible, but, in theory should work (i have not tested)

function onUpdatePost()
setProperty("health",1) -- Set value from 0 to 2. 0 is no health and 2 is full health. you can set this to any value but might not work properly
end

This one also prevents losing HP on miss.

@Draconic-Hybrid You are absolutely right, in theory healthBar would always be static (unless the opponent has a script that affects health I think).

@Meziaki Also try this one:

function goodNoteHit(membersIndex, noteData, noteType, isSustainNote)
for i = 0, getProperty('unspawnNotes.length')-1 do
setPropertyFromGroup('unspawnNotes', i, 'hitHealth', 0)
end
end

I will test it later :v

@TFLTV
Copy link

TFLTV commented Jun 2, 2024

This might be less flexible, but, in theory should work (i have not tested)

function onUpdatePost()
setProperty("health",1) -- Set value from 0 to 2. 0 is no health and 2 is full health. you can set this to any value but might not work properly
end

This one also prevents losing HP on miss.

ohh yea, true, i was thinking they wanted something like Defeat from Imposter v4 (The health stays still in Defeat) i guess i read it wrong

@M4st3rG4m4
Copy link

ohh yea, true, i was thinking they wanted something like Defeat from Imposter v4 (The health stays still in Defeat) i guess i read it wrong

Don't worry, I understand

@M4st3rG4m4
Copy link

@Meziaki If you don't need anymore please close this issue

@Meziaki
Copy link
Author

Meziaki commented Jun 3, 2024

Thank you for the help. I kind of forgot of the fact that I posted this. And yes, it was something like Defeat's mechanic.

@Meziaki Meziaki closed this as completed Jun 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants