Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 10-22-2001, 11:15 AM
royce royce is offline
Banned
royce's Avatar
Join Date: Sep 2001
Location: Yakitinzen, China
Posts: 2,271
royce is on a distinguished road
Send a message via AIM to royce
Exclamation 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?
Reply With Quote
  #2  
Old 10-22-2001, 11:19 AM
royce royce is offline
Banned
royce's Avatar
Join Date: Sep 2001
Location: Yakitinzen, China
Posts: 2,271
royce is on a distinguished road
Send a message via AIM to royce
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
Reply With Quote
  #3  
Old 10-22-2001, 12:10 PM
KJS KJS is offline
The one, The only -
KJS's Avatar
Join Date: Apr 2001
Location: USA, Minnesota
Posts: 1,012
KJS is on a distinguished road
Send a message via AIM to KJS
on non p2p servers you can get what the players ap is but not set it...
__________________
Thanks,
-KJL
Reply With Quote
  #4  
Old 10-22-2001, 08:32 PM
Shard_IceFire Shard_IceFire is offline
Registered User
Shard_IceFire's Avatar
Join Date: Jun 2001
Location: Eastern Harkoonia
Posts: 861
Shard_IceFire is on a distinguished road
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.
__________________

-=Shard IceFire=-
Reply With Quote
  #5  
Old 10-22-2001, 11:56 PM
PresShinP2P PresShinP2P is offline
Registered User
Join Date: Oct 2001
Location: Screw it
Posts: 84
PresShinP2P is on a distinguished road
Send a message via AIM to PresShinP2P
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...
__________________
President Shinra
Reply With Quote
  #6  
Old 10-23-2001, 03:51 AM
royce royce is offline
Banned
royce's Avatar
Join Date: Sep 2001
Location: Yakitinzen, China
Posts: 2,271
royce is on a distinguished road
Send a message via AIM to royce
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!
Reply With Quote
  #7  
Old 10-23-2001, 03:53 AM
royce royce is offline
Banned
royce's Avatar
Join Date: Sep 2001
Location: Yakitinzen, China
Posts: 2,271
royce is on a distinguished road
Send a message via AIM to royce
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.
Reply With Quote
  #8  
Old 10-23-2001, 03:55 AM
btedji btedji is offline
bryan986
btedji's Avatar
Join Date: Apr 2001
Location: Force 10
Posts: 1,153
btedji is on a distinguished road
Send a message via ICQ to btedji Send a message via AIM to btedji Send a message via Yahoo to btedji
Quote:
Originally posted by Shard_IceFire
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.
i think this is the best way
Reply With Quote
  #9  
Old 10-23-2001, 04:02 AM
royce royce is offline
Banned
royce's Avatar
Join Date: Sep 2001
Location: Yakitinzen, China
Posts: 2,271
royce is on a distinguished road
Send a message via AIM to royce
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!
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 11:34 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.