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

Anyways to use lua to change Health gain #10874

Closed
bz001 opened this issue Oct 16, 2022 · 10 comments
Closed

Anyways to use lua to change Health gain #10874

bz001 opened this issue Oct 16, 2022 · 10 comments
Labels
help wanted Extra attention is needed

Comments

@bz001
Copy link

bz001 commented Oct 16, 2022

Describe your problem here.

Are there have some ways to change the BF's Health gain during a song by using lua or events?Thanks for some people can give some advice!

Are you modding a build from source or with Lua?

Lua

What is your build target?

Windows x64

Did you edit anything in this build? If so, mention or summarize your changes.

No response

@bz001 bz001 added the help wanted Extra attention is needed label Oct 16, 2022
@DetectiveBaldi
Copy link
Contributor

DetectiveBaldi commented Oct 16, 2022

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

I would recommend doing at least some simple research in source before coming here; this is really easy to find

@bz001
Copy link
Author

bz001 commented Oct 17, 2022 via email

@PainChungles
Copy link

I=0 is basically just telling the code to do a thing an amount of times, so for something like "for i = 0, getProperty('unspawnNotes.length')-1 do" that basically means that it's gonna do whatever you tell it to do for however many notes are in the song, usually you'd start from 1, but because of how the notes work you'd start from 0.

As for what you put in the "value", basically you put however much health you wanna gain from a note.
Usually the default you gain is "0.023" I believe

@voxovistired
Copy link

I genuinely hate retarded people like you who join github who don't even know how to code, when the mere point of github is a social place for coders!

Jeezus man calm down, everybody starts at one point in their programming careers. No need to be a dick about people being new to something.

@PainChungles
Copy link

I genuinely hate retarded people like you who join github who don't even know how to code, when the mere point of github is a social place for coders!

Bro it's not that deep man, the only way to learn is try to do it and people like you aren't helping

@TheKitBoi
Copy link

for @voxovistired and @PainChungles
Think twice before defending
#10925
#10927
#10939

there’s other bullshit somewhere but I can’t be bothered

@PainChungles
Copy link

for @voxovistired and @PainChungles
Think twice before defending
#10925
#10927
#10939

there’s other bullshit somewhere but I can’t be bothered

OK that's a little retarded

@voxovistired
Copy link

for @voxovistired and @PainChungles Think twice before defending #10925 #10927 #10939

there’s other bullshit somewhere but I can’t be bothered

This happened after this post, I didn’t have this context beforehand.

@ManMaster707
Copy link

for @voxovistired and @PainChungles Think twice before defending #10925 #10927 #10939

there’s other bullshit somewhere but I can’t be bothered

what do these three issues have to do with not being experienced with coding and so asking for help to people that are more experienced in the subject

@moxie-coder
Copy link

I genuinely hate retarded people like you who join github who don't even know how to code, when the mere point of github is a social place for coders!

Jeezus man calm down, everybody starts at one point in their programming careers. No need to be a dick about people being new to something.

I genuinely hate retarded people like you who join github who don't even know how to code, when the mere point of github is a social place for coders!

Bro it's not that deep man, the only way to learn is try to do it and people like you aren't helping

kys
maxresdefault 2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

9 participants