Grimson!!! Hunger script question!

Need help with your JScripts? Got questions concerning the DFNs? Come forward, step inside :)
Post Reply
stranf
UOX3 Guru
Posts: 939
Joined: Wed Jan 04, 2006 3:59 pm
Has thanked: 0
Been thanked: 0

Grimson!!! Hunger script question!

Post by stranf »

Wasn't it you Grimson that spend a lot of time fixing the hunger system?

Is there a JS script that accesses these functions?

For example, with the new moongate scripts, I can forsee my PCs camping at a Moongate until the moons are the proper phase for the gate to open. It will be easy to switch the phases using the moongate script, but I would like to penalize my PCs for the "waiting". If a GM could change their hunger from full to "starving", my PCs would at LEAST have to pack extra food if they wish to camp out in front of the gate.

Is there anyway to make a player more (or less) hungry using a script? Such .JS functions could also be used for magic items such as a ring that won't let the PC hunger, etc.

If we have such functions, what are they? If we don't, how hard would it to implement via js?
giwo
Developer
Posts: 1780
Joined: Fri Jun 18, 2004 4:17 pm
Location: California
Has thanked: 0
Been thanked: 0

Post by giwo »

Without having looked at the code to validate, I'm thinking character.hunger = (0-6 where 1 is the lowest and 6 is the highest) would work.

As for a GM being able to do it, making that a SET command (if it's not already) would do the trick.
Scott
Post Reply