Help with this code. WITH PICTURES! :)

How, what and why to code in BYOND.
Post Reply
ss13Nerd
Joined: Sat Dec 03, 2016 4:20 am
Byond Username: ItsMeDeath

Help with this code. WITH PICTURES! :)

Post by ss13Nerd » #232092

Okay, so I wanted to add a bone thing.
Where if the person gets there leg broken. They can't move.

so I started off with this.
https://gyazo.com/7589d1e5a33959966aedd92b1f778a7e

then I moved onto
https://gyazo.com/f937deac269a4f46e8e07796c3f8f59f

Then I don't know what to do?

Do I edit the weapon, to make it if it targets the legs it has a random chance of breaking the league?
I just really don't know what to put and i'm stuck in a rut.
ss13Nerd
Joined: Sat Dec 03, 2016 4:20 am
Byond Username: ItsMeDeath

Re: Help with this code. WITH PICTURES! :)

Post by ss13Nerd » #232093

I'm really really NEW to coding.
I'm sorry if this is a really bad question I'm just stuck in a rut.
WJohnston
Joined: Wed Apr 30, 2014 3:16 am
Byond Username: WJohnston

Re: Help with this code. WITH PICTURES! :)

Post by WJohnston » #232098

If you want immensely more rapid feedback, you should hop on over to IRC, #coderbus on rizon. The whole damn dev team sits in there.
Apparently I was an director or something.
ss13Nerd
Joined: Sat Dec 03, 2016 4:20 am
Byond Username: ItsMeDeath

Re: Help with this code. WITH PICTURES! :)

Post by ss13Nerd » #232100

WJohnston wrote:If you want immensely more rapid feedback, you should hop on over to IRC, #coderbus on rizon. The whole damn dev team sits in there.
nah i'm okay.

they have more important things to worry about.

plus they ignored me when I already asked so idk
WJohnston
Joined: Wed Apr 30, 2014 3:16 am
Byond Username: WJohnston

Re: Help with this code. WITH PICTURES! :)

Post by WJohnston » #232102

They don't have more important things to worry about. Everyone does their own thing. Keep asking, someone will eventually get to you, the dev team is not a professional one which doesn't waste time on newcomers, they're mostly idiots that meme their ass off all day. Myself included. At the time of writing it's also quite late at night so you may not get responses terribly quickly. Be patient.
Apparently I was an director or something.
User avatar
Drynwyn
Joined: Fri Apr 18, 2014 5:09 pm
Byond Username: Drynwyn

Re: Help with this code. WITH PICTURES! :)

Post by Drynwyn » #232862

You could accomplish this by editing the base code for weapon, but the better way to do it would IMO to look at how bloodloss code works- more than a set amount of brute damage to a given area causes bleeding, bleeding can be stopped by bandages. Do basically the same thing- more than a set amount of brute damage to the leg causes a broken leg, which can be fixed with a splint.


That said, given that losing a leg entirely still lets you crawl around, you shouldn't make a broken leg halt all movement. Just slow it down.
In game, I play the A.I Firmware, the French cyborg C.U.R.I.E, Aubrie Allen, and the lizard scum Skulks-Through-Maintenance.
Post Reply

Who is online

Users browsing this forum: No registered users