Page 1 of 1

What is the code that makes drybones collapse?

Posted: Thu Aug 06, 2020 2:50 pm
by TheGameyFireBro105
I've been trying to make Pionpi npcs, but IDK how to insert the collapsing code into a gold bowser statue.

Re: What is the code that makes drybones collapse?

Posted: Fri Aug 07, 2020 12:28 am
by Hoeloe
That's not how it works. You don't just "insert" parts of one NPCs code into another. However, all NPCs from ID 293 onwards have open source code, so you can just take a look in the scripts folder to see how they were made.

Re: What is the code that makes drybones collapse?

Posted: Fri Aug 07, 2020 10:41 am
by TheGameyFireBro105
that's the thing. I need help. I just need to know how to apply the effects of a drybones.

Re: What is the code that makes drybones collapse?

Posted: Fri Aug 07, 2020 10:46 am
by Emral
Fundamentally it's a state machine where in one state the dry bones walks, and in another state (triggered from onNPCKill) the dry bones doesn't walk anymore and has its hitbox disabled (npc turns friendly). That state then switches back to the other on a timer. Try to follow the modifications to data.state in the dry bones' script file.

Re: What is the code that makes drybones collapse?

Posted: Fri Aug 07, 2020 7:23 pm
by TheGameyFireBro105
This is why there should be a Lua Request forum!!!!!

Re: What is the code that makes drybones collapse?

Posted: Sat Aug 08, 2020 3:48 am
by ElectriKong
TheGameyFireBro105 wrote:
Fri Aug 07, 2020 7:23 pm
This is why there should be a Lua Request forum!!!!!
The LunaLua help forum already serves the same purpose.

Re: What is the code that makes drybones collapse?

Posted: Sat Aug 08, 2020 10:50 am
by TheGameyFireBro105
Didn't know that

Re: What is the code that makes drybones collapse?

Posted: Mon Aug 31, 2020 4:54 am
by koob_koob
TheGameyFireBro105 wrote:
Sat Aug 08, 2020 10:50 am
Didn't know that
you probably would ask for something every 2 seconds anyway

Re: What is the code that makes drybones collapse?

Posted: Mon Aug 31, 2020 4:41 pm
by TheGameyFireBro105
koob_koob wrote:
Mon Aug 31, 2020 4:54 am
TheGameyFireBro105 wrote:
Sat Aug 08, 2020 10:50 am
Didn't know that
you probably would ask for something every 2 seconds anyway
That's a bit harsh.

Re: What is the code that makes drybones collapse?

Posted: Sat Sep 05, 2020 9:58 am
by koob_koob
TheGameyFireBro105 wrote:
Mon Aug 31, 2020 4:41 pm
koob_koob wrote:
Mon Aug 31, 2020 4:54 am
TheGameyFireBro105 wrote:
Sat Aug 08, 2020 10:50 am
Didn't know that
you probably would ask for something every 2 seconds anyway
That's a bit harsh.
well sorry, but really you need to chill with the requests sometimes