![]() |
ap bar movements
I am wondering if i can trigger off a action when the players ap goes up by 1?? is this possible for non-p2p? if it is possible then how would u go about doing this?
|
what i am doing is making a eating bar and everytime ur ap goes up ur hunger goes up too....when you eat it goes down...also a water amount...when ur hunger ar goes down and u become less hungry when u eat somethng it makes ur thirst bar increase....i like this idea but i wish it would be possible and if it is could u help me out with just a little bits of pieces?? thanx
|
on non p2p servers you can get what the players ap is but not set it...
|
If I were you I would script my own hunger bar...probably not too hard. Just make it subtract or add to a client.hunger string every so often.
|
he didnt say he wanted to change the ap though...just use it as a guide line for hunger....try this
if (playerenters){ toweapons -Hungry Man; timeout=1; this.hunger=players[0].ap; } if (timeout){ if (this.hunger<players[0].ap){ this.hunger=players[0].ap; <show hunger status bar if you have one> } timeout=1; } this should work, but ap goes up at different speeds depending on your current ap... :( |
yah but when the ap bar goes up rppidly when its under 40, that wouldnt be a problem because at some times the player does get hungry all of a sudden!
|
hmmm what about the thirst script....thats what would be difficult to me...the hunger is hte ez one but the thirst can be a problem i think.
|
Quote:
|
bathrooms??? that would be kinda kewl...not takin a **** for a while can maybe weaken your hearts by 1 when you dont go and the bar goes back down...maybe 1.5....same rule applies to drinking and eating...hmmm i think killing the plsyer might be nicer..i dont want money to be hard to find on my server so maybe that would increse the profits for the baker job!
|
| All times are GMT +2. The time now is 09:27 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.