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 06-17-2002, 09:30 PM
WHIPENIE4 WHIPENIE4 is offline
I am X-Mann
Join Date: Aug 2001
Location: PA
Posts: 2,715
WHIPENIE4 is on a distinguished road
Send a message via ICQ to WHIPENIE4 Send a message via AIM to WHIPENIE4
Its probably easy but...

Its probably easy, but im trying to make my first script, and im lost on this part.

horses[index].bushes

See, im making an NPC where the horse is layed at my x and y im out when i fire the weapon, i just want it to where it'll have eaten 5 bushs and it times out every 4 seconds.
this is what the script is so far, just fill me in please
// NPC made by X-Mann
if (created) {
}
if (playertouchsme) {toweapons Horse Whisper
}
if (isweapon) {}
if (weaponfired) {puthorse ride.png, playerx, playery}
__________________
Mind over Matter. If your body dont mind, why does it matter?

- X-Mann (Blessing Graal since 1998) Haha

- Graal 2000 Project (Contact Me to get Apart of this expierience

Windows Vista. Graal. Not a Good Combination.
Reply With Quote
  #2  
Old 06-17-2002, 10:03 PM
nyghtGT nyghtGT is offline
Banned
nyghtGT's Avatar
Join Date: Jun 2001
Posts: 3,993
nyghtGT is on a distinguished road
Send a message via AIM to nyghtGT
try:

for (i=0;i<horsescount;i++) {
horses[i].bushes==5;
}

then have it do the opposite after 4 seconds...

i could be wrong though *sigh*
Reply With Quote
  #3  
Old 06-17-2002, 10:16 PM
WHIPENIE4 WHIPENIE4 is offline
I am X-Mann
Join Date: Aug 2001
Location: PA
Posts: 2,715
WHIPENIE4 is on a distinguished road
Send a message via ICQ to WHIPENIE4 Send a message via AIM to WHIPENIE4
(X)
Na, that one didnt work.
__________________
Mind over Matter. If your body dont mind, why does it matter?

- X-Mann (Blessing Graal since 1998) Haha

- Graal 2000 Project (Contact Me to get Apart of this expierience

Windows Vista. Graal. Not a Good Combination.
Reply With Quote
  #4  
Old 06-17-2002, 11:06 PM
GrowlZ1010 GrowlZ1010 is offline
defunct
Join Date: May 2002
Posts: 187
GrowlZ1010 is on a distinguished road
Exclamation

horses[index].bushes is read only offline. Maybe it's one of those things that works on the NPC server, but offline, you CANNOT set horses[index].bushes: you can only check its value.
Reply With Quote
  #5  
Old 06-18-2002, 01:46 AM
BBflat BBflat is offline
Registered User
BBflat's Avatar
Join Date: Apr 2002
Location: United States of America
Posts: 573
BBflat is on a distinguished road
Quote:
Originally posted by GrowlZ1010
horses[index].bushes is read only offline. Maybe it's one of those things that works on the NPC server, but offline, you CANNOT set horses[index].bushes: you can only check its value.
This is true also for players[index].vars, and probably for the others, as well. =(
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 05:02 AM.


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