kOnoNicolasGa Posted December 24, 2021 Share Posted December 24, 2021 (edited) So... Hi, it s me again, i m having some trouble with this idea of mine of having an attribute base value like for example: I want to have 180 on hunger at the start, since you enter the world, but, you still have the max cap of 300. How could i make that to work? Good Morning/Good night idk what time of the day someone will see and Happy holidays aswell! Edited December 24, 2021 by kOnoNicolasGa Link to comment https://forums.kleientertainment.com/forums/topic/136465-how-to-set-a-base-ammount-of-an-attribute-and-the-max/ Share on other sites More sharing options...
Leonidas IV Posted December 24, 2021 Share Posted December 24, 2021 You can simply set the player's hunger when he enters (which I don't know how to check) with a simple: c_sethunger(0.6) --> 0.6 = 180/300 Link to comment https://forums.kleientertainment.com/forums/topic/136465-how-to-set-a-base-ammount-of-an-attribute-and-the-max/#findComment-1527873 Share on other sites More sharing options...
kOnoNicolasGa Posted December 24, 2021 Author Share Posted December 24, 2021 (edited) 3 hours ago, leonidas_iv said: You can simply set the player's hunger when he enters (which I don't know how to check) with a simple: c_sethunger(0.6) --> 0.6 = 180/300 Well, it kinda works, but i need to type everytime right? I wan t to put that into the scripts, like, i wish him starts with almost half of his hunger. Do you know how could i do that? Edited December 24, 2021 by kOnoNicolasGa Link to comment https://forums.kleientertainment.com/forums/topic/136465-how-to-set-a-base-ammount-of-an-attribute-and-the-max/#findComment-1527899 Share on other sites More sharing options...
Leonidas IV Posted December 24, 2021 Share Posted December 24, 2021 40 minutes ago, kOnoNicolasGa said: Well, it kinda works, but i need to type everytime right? I wan t to put that into the scripts, like, i wish him starts with almost half of his hunger. Do you know how could i do that? You can call GLOBAL.c_sethunger(0.6) in the script, but you have to figure out how to apply this only at the beginning of the game. Link to comment https://forums.kleientertainment.com/forums/topic/136465-how-to-set-a-base-ammount-of-an-attribute-and-the-max/#findComment-1527907 Share on other sites More sharing options...
kOnoNicolasGa Posted December 24, 2021 Author Share Posted December 24, 2021 38 minutes ago, Leonidas IV said: You can call GLOBAL.c_sethunger(0.6) in the script, but you have to figure out how to apply this only at the beginning of the game. I see, so it s kinda hard then i thought. I was just wanting him to enter the constant with half of hunger... Well, Tysm, i will try to solve that. Link to comment https://forums.kleientertainment.com/forums/topic/136465-how-to-set-a-base-ammount-of-an-attribute-and-the-max/#findComment-1527917 Share on other sites More sharing options...
Leonidas IV Posted December 24, 2021 Share Posted December 24, 2021 1 hour ago, kOnoNicolasGa said: I see, so it s kinda hard then i thought. I was just wanting him to enter the constant with half of hunger... Well, Tysm, i will try to solve that. See other things that happen at player spawn, like starting items, etc. Link to comment https://forums.kleientertainment.com/forums/topic/136465-how-to-set-a-base-ammount-of-an-attribute-and-the-max/#findComment-1527948 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