Whitefang45 Posted June 16, 2016 Share Posted June 16, 2016 (edited) I'm making two custom characters based on my favorite fictional characters, and one's traits are that he is lucky and afraid of storms, and the other is deathly afraid of earthquakes. For lucky, I figured perhaps Character 1 would have either a 20% or 10% chance to revive on death, like if he had a Life Giving Amulet or had constructed a Meat Effigy. This character in particular has escaped death several times with barely a scratch, so I figured it might be fitting. For fear of storms, maybe sanity loss during very heavy rain or when lightning strikes...? And the other, Character 2, for his fear of earthquakes, I figure he could lose large amounts of sanity during earthquakes in caves, volcanic eruptions, bosses slamming the ground, etc. Basically things that shake the screen around. Are these things possible to do? If so, can someone point me in the right direction as to how I'd do these things? Edited June 27, 2016 by Whitefang45 Link to comment https://forums.kleientertainment.com/forums/topic/68232-help-coding-custom-characters-traits-unsolved/ Share on other sites More sharing options...
Arkathorn Posted June 16, 2016 Share Posted June 16, 2016 These things are perfectly possible to do, but require a bit of research. I don't have the time right now, but I'll look into it and give you some specifics. Link to comment https://forums.kleientertainment.com/forums/topic/68232-help-coding-custom-characters-traits-unsolved/#findComment-784725 Share on other sites More sharing options...
Whitefang45 Posted June 18, 2016 Author Share Posted June 18, 2016 Thank you, @Arkathorn, your help will be very much appreciated. I was worried that these character traits would not be possible to do. Link to comment https://forums.kleientertainment.com/forums/topic/68232-help-coding-custom-characters-traits-unsolved/#findComment-785572 Share on other sites More sharing options...
whismerhill Posted June 18, 2016 Share Posted June 18, 2016 20% chance to revive on death is pretty low imho so if you're doing this, the power should be used BEFORE consuming any other item that gives extra lives(such as life giving amulet ...) otherwise it's completely useless or % should be upped. Alternatively you could do a % chance that starts low & increases with number of days survived, & restart at 0% when just used Link to comment https://forums.kleientertainment.com/forums/topic/68232-help-coding-custom-characters-traits-unsolved/#findComment-785596 Share on other sites More sharing options...
Whitefang45 Posted June 18, 2016 Author Share Posted June 18, 2016 38 minutes ago, whismerhill said: 20% chance to revive on death is pretty low imho so if you're doing this, the power should be used BEFORE consuming any other item that gives extra lives(such as life giving amulet ...) otherwise it's completely useless or % should be upped. Alternatively you could do a % chance that starts low & increases with number of days survived, & restart at 0% when just used That's... Actually a really good idea. I hadn't even thought of that! I really, really like the alternative idea. I'd imagine that'd be a bit of a doozy to code, though, but I'd really like to add that if I can. Thank you for the suggestions! Link to comment https://forums.kleientertainment.com/forums/topic/68232-help-coding-custom-characters-traits-unsolved/#findComment-785624 Share on other sites More sharing options...
Whitefang45 Posted July 4, 2016 Author Share Posted July 4, 2016 (edited) Hello. I managed to get the "scared of storms" part working (somewhat... he's scared of all rain now, light or heavy, but it's something) (EDIT: It doesn't seem to work with RoG. Haven't tested Shipwrecked yet.) after digging around in the code a little bit, but I can't seem to figure out how to go about doing this. I'm not sure where to even start. On 6/18/2016 at 9:50 AM, whismerhill said: Alternatively you could do a % chance that starts low & increases with number of days survived, & restart at 0% when just used Edited July 8, 2016 by Whitefang45 Link to comment https://forums.kleientertainment.com/forums/topic/68232-help-coding-custom-characters-traits-unsolved/#findComment-789764 Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now