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 05-14-2003, 08:27 PM
DarkShadows_Legend DarkShadows_Legend is offline
Cult of the Winky
DarkShadows_Legend's Avatar
Join Date: Apr 2003
Location: Florida
Posts: 614
DarkShadows_Legend is on a distinguished road
Send a message via AIM to DarkShadows_Legend
Question Help

How would I find out who hit me. Like let's say I want to make something that keeps track of who hit me and what their sword power was. What commands would I use for this?
__________________
- Criminal X

"I rather be hated for being myself, than be liked for being what you like best. I go above the influence, not under." - Me
Reply With Quote
  #2  
Old 05-28-2003, 03:48 AM
Projectshifter Projectshifter is offline
The David
Projectshifter's Avatar
Join Date: Apr 2002
Location: USA
Posts: 912
Projectshifter is an unknown quantity at this point
Send a message via ICQ to Projectshifter Send a message via AIM to Projectshifter Send a message via MSN to Projectshifter Send a message via Yahoo to Projectshifter
Era uses something like this. But graal knows you got hit and that's all.
---Shifter
__________________
Who has time for life these days?
Reply With Quote
  #3  
Old 05-28-2003, 02:11 PM
Pokilty Pokilty is offline
Registered User
Join Date: Nov 2002
Posts: 101
Pokilty is on a distinguished road
You should also look up triggeraction if you don't know that, you'll need it if you want to script the system with maximum efficiency =D (or you can use a for loop, which is less reliable)
__________________
"I have not failed. I've just found 10,000 ways that won't work."
"Logic is in the eye of the logician."
Reply With Quote
  #4  
Old 05-28-2003, 04:54 PM
Tseng Tseng is offline
Sublime
Tseng's Avatar
Join Date: Jan 2003
Location: California
Posts: 0
Tseng is on a distinguished road
Quote:
Originally posted by Pokilty
You should also look up triggeraction if you don't know that, you'll need it if you want to script the system with maximum efficiency =D (or you can use a for loop, which is less reliable)
Why in the world would you want to use a for loop?
__________________
Funny Things:
Quote:
Originally posted by Stefan
I didn't ban you, I only played a little bit with my RC.
-----
Reply With Quote
  #5  
Old 05-28-2003, 10:14 PM
Knuckles Knuckles is offline
Registered User
Join Date: Sep 2002
Location: New York
Posts: 580
Knuckles is on a distinguished road
Send a message via AIM to Knuckles
Quote:
Originally posted by Kaimetsu
Best way would be to use a rescripted sword system with serverside hit detection - if the server decides that a successful strike has been made then it sets a clientr.string with the attacking player's account name.
Yea, just use triggeraction's with the #a, in one of the param's.
Then if(action), then set a string with the param.

Quote:
Era uses something like this. But graal knows you got hit and that's all.
Yea, setshootparams...
__________________
Knuckles
"They say 60% of the time, it works everytime!"
Reply With Quote
  #6  
Old 05-29-2003, 12:25 AM
Pokilty Pokilty is offline
Registered User
Join Date: Nov 2002
Posts: 101
Pokilty is on a distinguished road
Quote:
Originally posted by Tseng


Why in the world would you want to use a for loop?
you wouldn't I'm just saying you could use a for loop and players[i].x and etc. to find the other players position then use a with(getplayer(#a(i))) but that would be very inefficent compared to the triggeraction
__________________
"I have not failed. I've just found 10,000 ways that won't work."
"Logic is in the eye of the logician."
Reply With Quote
  #7  
Old 06-18-2003, 03:37 PM
GoZelda GoZelda is offline
Mister 1,000,000
GoZelda's Avatar
Join Date: Jan 2003
Location: Brussels, capital of Europe.
Posts: 5,396
GoZelda will become famous soon enough
Send a message via AIM to GoZelda Send a message via MSN to GoZelda
Re: Help

Quote:
Originally posted by DarkShadows_Legend
How would I find out who hit me. Like let's say I want to make something that keeps track of who hit me and what their sword power was. What commands would I use for this?
As it already was said, triggeraction... If you want to use the standard sword system then make a extra -system npc...
If you press S then have a triggeraction at a certain place,

triggeraction the.x,the.y,keeptrack,#a,players[index].swordpower;

Also the system should contain:

if (actionkeeptrack){
setstring client.wholasthit,#P1;
setstring client.wholasthitswordpower,#P2;
}
__________________

Quote:
Originally Posted by Lance
stefan is satan
I am the best.
[URL removed]Music or aural pollution?
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 03:50 AM.


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