I need help with my life settings :\

Forum Archive - from http://theuniversal.net
Locked
User avatar
flametard
Posts: 1245
Joined: Sun Apr 01, 2007 2:05 am
Location: Join NR! faction name: 'NR new recruits' password: 'Truth'
Contact:

I need help with my life settings :\

Post by flametard »

I have it set to where each day on my planet happens in about a half hour realtime.

midnight is when the server increases hunger/thirst.
problem a:
I need it to be set up to where players get about half their hunger thirst bar go up every time it happens at midnight. If players stay hungry/thirsty for too long, then their health starts to go down.

If they log out they can go about 2 days without being in a house. and in a house logged out, they can go more than 2, depending on how much food they have stocked.


problemb:
everytime i relog on my planet my hunger and thirst is reset :( this is not intentional.

curiously, when i eat 'explosives' or drink 'chemicals' the hunger/thirst effects stay on relog. does anyone have any idea whats going wrong?
User avatar
zaroba
World Owner
World Owner
Posts: 7257
Joined: Fri Oct 10, 2003 11:06 pm
Location: Hereford, PA
Contact:

Post by zaroba »

Part of the problem is that your the owner so hunger/thirst rules wont really apply to you. This is why when you relog, your hunger and thirst is gone. Even if you *clearauth, when you relog you will be once again recognized as owner and made a god and not have hunger/thirst apply correctly.

Easiest way to test, remove your name form the owner= line in the serverconfig, then do the *clearauth command to set your auth level to 0 (powerless player). You will be exactly as a player and hunger/thirst will apply to you the same as to a player until you set your name back in the serverconfig again.
User avatar
Mit
Staff
Staff
Posts: 3551
Joined: Sun Sep 21, 2003 10:14 pm
Location: Unknown

Post by Mit »

actually ive changed that zar.. hunger and thirst apply to gods just as normal players now (for exactly the reason u mention.. its a pain in the arse to test otherwise).
This is probably just a settings or script oddity.. will dig..
User avatar
zaroba
World Owner
World Owner
Posts: 7257
Joined: Fri Oct 10, 2003 11:06 pm
Location: Hereford, PA
Contact:

Post by zaroba »

Ah, right, that Gods go Hungry setting.
User avatar
flametard
Posts: 1245
Joined: Sun Apr 01, 2007 2:05 am
Location: Join NR! faction name: 'NR new recruits' password: 'Truth'
Contact:

Post by flametard »

OK!

relog problem is solved (i guess zar was right about it being subject to world owners)

I'm still trying to get the life settings working well. In the first cycle, you get a sliver. second cycle.. sliver grows a bit. 3rd cycle - hunger and thirst jumps to full.

I cant get it to grow in standard increments.


SECOND OPTION:
since my world is supposed to make active players hungry and thirsty, and idle players not so much.... I was thinking of adding stuff to the script to manually increase the players hunger and thirst a lil bit every time they access one of my scripted source items or another building.

ive asked this before, but im not sure what the deal is:

CAN WE increase/decrease hunger/thirst via script yet?!?!
User avatar
Mit
Staff
Staff
Posts: 3551
Joined: Sun Sep 21, 2003 10:14 pm
Location: Unknown

Post by Mit »

yeh, *sethunger and *setthirst
Wouldn't recommend it for running the whole thing though.. you need a lot of timers runnin :)
I'll check out your hunger settings later on, shouldnt be tricky to get it to do what you want.
User avatar
flametard
Posts: 1245
Joined: Sun Apr 01, 2007 2:05 am
Location: Join NR! faction name: 'NR new recruits' password: 'Truth'
Contact:

Post by flametard »

ok i tried:

Code: Select all

Event("Useitem","Diamonds")
{
$newHunger = $gPlayerHunger - 20000
*sethunger %PLAYER% $newHunger
*msg %PLAYER% test trying to increase my hunger
}
it doesnt seem to be working.

did i write it right?
sorry to be noobish
User avatar
Mit
Staff
Staff
Posts: 3551
Joined: Sun Sep 21, 2003 10:14 pm
Location: Unknown

Post by Mit »

well that script would reduce hunger by 20000 (assuming you were that hungry in the first place). Maybe + 20000 is what you were looking for?
User avatar
flametard
Posts: 1245
Joined: Sun Apr 01, 2007 2:05 am
Location: Join NR! faction name: 'NR new recruits' password: 'Truth'
Contact:

Post by flametard »

aha!

yeah it works, but the hunger increase doesnt show until relog. any way around that?
User avatar
Mit
Staff
Staff
Posts: 3551
Joined: Sun Sep 21, 2003 10:14 pm
Location: Unknown

Post by Mit »

thats a quirk of the system atm. (Need to redo that soon).

it'll only replicate if you set thirst... so if you just want to change hunger you can do:

*sethunger %PLAYER% $newHunger
*setthirst %PLAYER% $gPlayerThirst
User avatar
flametard
Posts: 1245
Joined: Sun Apr 01, 2007 2:05 am
Location: Join NR! faction name: 'NR new recruits' password: 'Truth'
Contact:

Post by flametard »

cool it worked. so I added

Code: Select all

   $newThirst = $gPlayerThirst + 1200
   *setthirst %PLAYER% $newThirst
to each of my item source scripts. so players will get thirsty quickly if they're running around gathering sources,
User avatar
flametard
Posts: 1245
Joined: Sun Apr 01, 2007 2:05 am
Location: Join NR! faction name: 'NR new recruits' password: 'Truth'
Contact:

Post by flametard »

Mit, would you mind posting a screenshot of your life settings for aramathea? I severely messed up mine on xebec, and im trying to make those final changes we talked about this week. I asked Zar, but he said he didnt have any good life settings available. I'm fixing up the wellbeing, construction mode, and a couple other things for xebec and life settings was one of the things i needed help with. thanks!
User avatar
zaroba
World Owner
World Owner
Posts: 7257
Joined: Fri Oct 10, 2003 11:06 pm
Location: Hereford, PA
Contact:

Post by zaroba »

lol, you said scripts, not settings.


To the best of my knowledge, these are the life settings I've used on past zorics. With 5 min gamedays, it gave 2 real days to live outside of house without logging on.

Online Needs Percentage=50
Online Health Loss Percentage=50
Offline Needs Percentage=150
Offline Health Loss Percentage=150
At Rest Needs Percentage=10
At Rest Health Loss Percentage=10
Health Increase Max=10
Health Decay Rate Standard=5
Max Health Decay Rate Standard=10
Hunger Increase Rate Standard=300
Thirst Increase Rate Standard=400
Health Decay Rate Starving=10
Low Needs Health Gain Modifier=15
Hunger Health Loss Modifier=10
Thirst Health Loss Modifier=20
Realtime Health Recovery=7
Locked