Graal Forums  

Go Back   Graal Forums > Private forums > Graal4 Forums > Graal V4 Main Forum
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 10-27-2005, 03:33 AM
ChibiChibiLuc ChibiChibiLuc is offline
Cookie Monster. :3
Join Date: Jan 2005
Location: Nova Scotia, Canada
Posts: 111
ChibiChibiLuc is on a distinguished road
Send a message via AIM to ChibiChibiLuc Send a message via MSN to ChibiChibiLuc
REQUEST: triggerplayer

I'm requesting a 'triggerplayer' command, or even giving the 'trigger' command the ability to target players.
I want to be able to do this from the clientside.

There have been many times I wanted to trigger a player with a triggeraction, but I couldn't. Dropping a triggeraction on the target player's x and y doesn't work all the time if the target has a bit of lag or is moving faster than normal.

Is there any way this command could be added?

EDIT: Napo reminded me to mention this: It can be done on the serverside, yes, but I want to be able to do it from the clientside. Like a triggeraction.

Example (when the weapon is fired, it triggers 'DoDamage' on anyone without 'Server' in their guild tag)

HTML Code:
Weapon
function onWeaponFired() {
  for (a: players) {
    if (!a.guild.contains("Server")) {
      a.trigger("DoDamage", 4);
    }
  }
}


HTML Code:
System
function onActionDoDamage(dmg) {
  hurt(dmg);
}

Does anything need clarifying?

Last edited by ChibiChibiLuc; 10-27-2005 at 04:19 AM..
  #2  
Old 10-27-2005, 03:58 AM
napo_p2p napo_p2p is offline
oh snaps
napo_p2p's Avatar
Join Date: Sep 2003
Location: Pismo Beach, California
Posts: 2,118
napo_p2p has a spectacular aura aboutnapo_p2p has a spectacular aura about
Send a message via AIM to napo_p2p Send a message via MSN to napo_p2p
Can't you use a player joined class and do player.function(foo)?
__________________
Scito hoc super omnia.
Haec vita est tua una sola.
Dum vita superest, utere maxime quoque puncto, momento, et hora quae habes.
Tempus neminem non manet.
Noli manere tempus.
Carpe Diem

Seize the Day.
  #3  
Old 10-27-2005, 05:37 AM
ZeLpH_MyStiK ZeLpH_MyStiK is offline
Scripter
ZeLpH_MyStiK's Avatar
Join Date: May 2003
Location: NYC
Posts: 553
ZeLpH_MyStiK is on a distinguished road
Send a message via MSN to ZeLpH_MyStiK Send a message via Yahoo to ZeLpH_MyStiK
public function?
__________________
  #4  
Old 10-27-2005, 06:11 AM
napo_p2p napo_p2p is offline
oh snaps
napo_p2p's Avatar
Join Date: Sep 2003
Location: Pismo Beach, California
Posts: 2,118
napo_p2p has a spectacular aura aboutnapo_p2p has a spectacular aura about
Send a message via AIM to napo_p2p Send a message via MSN to napo_p2p
Quote:
Originally Posted by ZeLpH_MyStiK
public function?
Exactly .
__________________
Scito hoc super omnia.
Haec vita est tua una sola.
Dum vita superest, utere maxime quoque puncto, momento, et hora quae habes.
Tempus neminem non manet.
Noli manere tempus.
Carpe Diem

Seize the Day.
  #5  
Old 10-27-2005, 06:37 AM
Rick Rick is offline
PipBoy Extraordinaire!
Rick's Avatar
Join Date: Jul 2004
Location: Long Beach, California.
Posts: 831
Rick is on a distinguished road
Era exposes a .doDamage() function in its player class. As well as many other utilities

It's a very nice method for streamlining player functionality.
  #6  
Old 10-27-2005, 06:48 AM
napo_p2p napo_p2p is offline
oh snaps
napo_p2p's Avatar
Join Date: Sep 2003
Location: Pismo Beach, California
Posts: 2,118
napo_p2p has a spectacular aura aboutnapo_p2p has a spectacular aura about
Send a message via AIM to napo_p2p Send a message via MSN to napo_p2p
Quote:
Originally Posted by ChibiChibiLuc
EDIT: Napo reminded me to mention this: It can be done on the serverside, yes, but I want to be able to do it from the clientside. Like a triggeraction.
Ahh, I see your point now . In that case, then it's not such a bad idea.
__________________
Scito hoc super omnia.
Haec vita est tua una sola.
Dum vita superest, utere maxime quoque puncto, momento, et hora quae habes.
Tempus neminem non manet.
Noli manere tempus.
Carpe Diem

Seize the Day.
  #7  
Old 10-27-2005, 01:43 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
I would suggest making a serverside HP system, it's more secure and having the same effect.
  #8  
Old 10-27-2005, 09:08 PM
ChibiChibiLuc ChibiChibiLuc is offline
Cookie Monster. :3
Join Date: Jan 2005
Location: Nova Scotia, Canada
Posts: 111
ChibiChibiLuc is on a distinguished road
Send a message via AIM to ChibiChibiLuc Send a message via MSN to ChibiChibiLuc
I don't want it for a HP System, I just used it as an example..
It could be used in a lot of different NPCs. :/
 


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:36 PM.


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