Graal Forums  

Go Back   Graal Forums > Development Forums > Tech Support
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 05-26-2002, 05:41 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
hitplayer

Someone please help. I can't get hitplayer to work with an index greater than 0. (I can't make it hit everyone in the room.) I'll give you an example, and please, tell me what I need to do to make it work.

NPC Code:

if (playerenters)
{
timeout = .05;
}
if (timeout)
{
this.test = testplayer(30,30);
hitplayer this.test,1,30,30;
timeout = .05;
}



It only works for index 0 online for me. What do I need to do to hit other people?
__________________
I am a .sig virus. Please put me in your .sig so I can continue to replicate.
Reply With Quote
  #2  
Old 05-26-2002, 05:46 AM
TDO2000 TDO2000 is offline
Registered User
TDO2000's Avatar
Join Date: Jul 2001
Location: Germany
Posts: 655
TDO2000 is on a distinguished road
try to use a timereverywhere in the playerenters-part
__________________
No Webhost at the moment
Reply With Quote
  #3  
Old 05-26-2002, 05:47 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 TDO2000
try to use a timereverywhere in the playerenters-part
Actually, I used if (weaponfired) and it was a weapon, but that should work anyway.
__________________
I am a .sig virus. Please put me in your .sig so I can continue to replicate.
Reply With Quote
  #4  
Old 05-26-2002, 05:51 AM
Spanko Spanko is offline
Squeaker of Soles
Spanko's Avatar
Join Date: Nov 2001
Location: The Netherworl...lands
Posts: 1,366
Spanko is on a distinguished road
Send a message via ICQ to Spanko Send a message via AIM to Spanko Send a message via Yahoo to Spanko
Does this work?
NPC Code:
if (weaponfired) {
for (i=0;i<playerscount;i++)
hitplayer i,1,playerx,playery;
}


Because if it does, testplayer isn't working properly, or isn't being used properly. (Since you need to add 1.5 and 2 to a players x and y respectively to make it detect the actual player.)
__________________

ICQ: 125283920
MSN: [email protected]
AIM: Squeax0r
Squeaker seems unable to access the forum using this account.. tis a sad day.
Now with occasional Asuka flavour! Ooops a bit too much...
Asuka should be king of Dustari!

"Y'know, some days even my lucky rocketship underpants don't even help."
Reply With Quote
  #5  
Old 05-26-2002, 05:52 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 Spanko
Does this work?
NPC Code:
if (weaponfired) {
for (i=0;i<playerscount;i++)
hitplayer i,1,playerx,playery;
}


Because if it does, testplayer isn't working properly.
No, I tried that, that doesn't work, either. The problem is the hitplayer.
__________________
I am a .sig virus. Please put me in your .sig so I can continue to replicate.
Reply With Quote
  #6  
Old 05-26-2002, 05:53 AM
Kaimetsu Kaimetsu is offline
Script Monkey
Kaimetsu's Avatar
Join Date: May 2001
Posts: 18,222
Kaimetsu will become famous soon enough
Re: hitplayer

Don't bother with a timereverywhere. Try using the debugger to see if it's the testplayer or the hitplayer that's not working. I don't know how the information would help us, but it's a start.

[edit]
Oops, spent too long posting ;;
[/edit]
__________________
Reply With Quote
  #7  
Old 05-26-2002, 05:53 AM
Spanko Spanko is offline
Squeaker of Soles
Spanko's Avatar
Join Date: Nov 2001
Location: The Netherworl...lands
Posts: 1,366
Spanko is on a distinguished road
Send a message via ICQ to Spanko Send a message via AIM to Spanko Send a message via Yahoo to Spanko
Quote:
Originally posted by BBflat

No, I tried that, that doesn't work, either. The problem is the hitplayer.
You could always substitute it with hitobjects, though that looks less pretty.
__________________

ICQ: 125283920
MSN: [email protected]
AIM: Squeax0r
Squeaker seems unable to access the forum using this account.. tis a sad day.
Now with occasional Asuka flavour! Ooops a bit too much...
Asuka should be king of Dustari!

"Y'know, some days even my lucky rocketship underpants don't even help."
Reply With Quote
  #8  
Old 05-26-2002, 05:54 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
Re: Re: hitplayer

Quote:
Originally posted by Kaimetsu
Don't bother with a timereverywhere. Try using the debugger to see if it's the testplayer or the hitplayer that's not working. I don't know how the information would help us, but it's a start.
I've done a lot of debugging, and it is hitplayer that is the problem. I got testplayer to work.
__________________
I am a .sig virus. Please put me in your .sig so I can continue to replicate.
Reply With Quote
  #9  
Old 05-27-2002, 11:14 PM
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
Okay, I have done further testing, and I hereby conclude that hitplayer only works offline. What's the point of that?!
__________________
I am a .sig virus. Please put me in your .sig so I can continue to replicate.
Reply With Quote
  #10  
Old 05-28-2002, 09:21 AM
Kaimetsu Kaimetsu is offline
Script Monkey
Kaimetsu's Avatar
Join Date: May 2001
Posts: 18,222
Kaimetsu will become famous soon enough
Quote:
Originally posted by BBflat
Okay, I have done further testing, and I hereby conclude that hitplayer only works offline. What's the point of that?!
Want me to move this to the Bug Reports forum so Stefan'll see it?
__________________
Reply With Quote
  #11  
Old 05-30-2002, 09:38 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 Kaimetsu


Want me to move this to the Bug Reports forum so Stefan'll see it?
See, I'm not sure if it is a bug or if that was the way it was meant to be. In any case, I think this kind of thing should work online. If you would move it to the bugs section, that would be great.
__________________
I am a .sig virus. Please put me in your .sig so I can continue to replicate.
Reply With Quote
  #12  
Old 05-30-2002, 09:41 AM
Kaimetsu Kaimetsu is offline
Script Monkey
Kaimetsu's Avatar
Join Date: May 2001
Posts: 18,222
Kaimetsu will become famous soon enough
Quote:
Originally posted by BBflat

See, I'm not sure if it is a bug or if that was the way it was meant to be. In any case, I think this kind of thing should work online. If you would move it to the bugs section, that would be great.
Okiedokie.
__________________
Reply With Quote
  #13  
Old 05-30-2002, 11:57 PM
Tyhm Tyhm is offline
Psionic Youth
Tyhm's Avatar
Join Date: Mar 2001
Location: Babord, West Graal Deaths:1009 Kills:1
Posts: 5,635
Tyhm has a spectacular aura about
Oh yeah - you're not trying to use it on saints, are you?

hitplayer works like hitobjects in that it simulates a sword hit, pretty sure...
__________________
"Whatever," said Bean, "I was just glad to get out of the toilet."

"Power does not corrupt. Fear corrupts, perhaps the fear of a loss of power."- John Steinbeck
"I'm only acting retarded, what's your excuse?" queried the Gord.
- My pet, the Levelup Gnome

http://forums.graalonline.com/forums...&postcount=233
Reply With Quote
  #14  
Old 05-31-2002, 12:35 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 Tyhm
Oh yeah - you're not trying to use it on saints, are you?

hitplayer works like hitobjects in that it simulates a sword hit, pretty sure...
Correct, I am not trying to use it on a saint.
Reply With Quote
  #15  
Old 06-01-2002, 02:12 AM
DarkHero2002 DarkHero2002 is offline
Registered User
DarkHero2002's Avatar
Join Date: Dec 2001
Posts: 625
DarkHero2002 is on a distinguished road
Send a message via ICQ to DarkHero2002 Send a message via AIM to DarkHero2002
hmm i dunno..i hate scripting
__________________

DarkHero
AIM:XxCloud2002xX
ICQ:165561109
E-Mail:[email protected]
Manager Of Colonial Graal

PLEASE DO NOT CLICK HERE!
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 10:28 PM.


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