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 12-27-2004, 02:00 PM
googleman googleman is offline
Registered User
googleman's Avatar
Join Date: Dec 2003
Location: Seattle, WA
Posts: 96
googleman is on a distinguished road
Triggeraction not working.

So I was coding for my server when triggeraction stops working.

I look over my code trying to find a solution, but the code runs ignoring the triggeraction.

After looking for about two hours I decide to view code that I made a while which I know works, and it doesn't... Not offline nor online.

I am quite tired so I might be doing something wrong, but I made this test npc which didn't work:

NPC Code:
if (actionserverside) {
sendtorc Test;
}

//#CLIENTSIDE
if (created) {
triggeraction x,y,serverside,;
}



Looks good to me.. For some reason it doesn't work.
Reply With Quote
  #2  
Old 12-27-2004, 02:09 PM
Loriel Loriel is offline
Somewhat rusty
Loriel's Avatar
Join Date: Mar 2001
Posts: 5,059
Loriel is a name known to allLoriel is a name known to allLoriel is a name known to allLoriel is a name known to all
Weapons:
NPC Code:
if (actionserverside) {
sendtorc Test;
}
//#CLIENTSIDE
if (created) {
triggeraction 0,0,serverside,<weapon name goes here>;
}



NPCs:
NPC Code:
if (created) {
setshape 1,32,32;
}
if (actionwhatever) {
sendtorc Test;
}
//#CLIENTSIDE
if (created) {
triggeraction x+1,y+1,whatever,;
}

Reply With Quote
  #3  
Old 12-27-2004, 02:13 PM
googleman googleman is offline
Registered User
googleman's Avatar
Join Date: Dec 2003
Location: Seattle, WA
Posts: 96
googleman is on a distinguished road
Ohh, that's what I forgot. setshape 1,32,32;

Thanks.
Reply With Quote
  #4  
Old 12-27-2004, 03:27 PM
WanDaMan WanDaMan is offline
Master Tux
WanDaMan's Avatar
Join Date: Aug 2002
Location: England, United Kingdom
Posts: 5,571
WanDaMan is a jewel in the roughWanDaMan is a jewel in the rough
Send a message via MSN to WanDaMan
Do you know why he has used setshape?
__________________
V$:CONFL16T
Reply With Quote
  #5  
Old 12-27-2004, 05:58 PM
Evil_Trunks Evil_Trunks is offline
Evil
Evil_Trunks's Avatar
Join Date: Dec 2004
Posts: 391
Evil_Trunks is on a distinguished road
The setshape is not required.

triggeraction x,y,name,; should trigger it.

The only inconsistency with this is "showcharacter;" type NPCs. They require x/y + whatever.
__________________

Reply With Quote
  #6  
Old 12-27-2004, 06:27 PM
Loriel Loriel is offline
Somewhat rusty
Loriel's Avatar
Join Date: Mar 2001
Posts: 5,059
Loriel is a name known to allLoriel is a name known to allLoriel is a name known to allLoriel is a name known to all
Quote:
Originally Posted by Evil_Trunks
The setshape is not required.
triggeraction x,y,name,; should trigger it.
Did you test this? I am reluctant to believe it.

Quote:
The only inconsistency with this is "showcharacter;" type NPCs. They require x/y + whatever.
Do you understand why?
It is not an inconsistency.
Reply With Quote
  #7  
Old 12-27-2004, 06:28 PM
Evil_Trunks Evil_Trunks is offline
Evil
Evil_Trunks's Avatar
Join Date: Dec 2004
Posts: 391
Evil_Trunks is on a distinguished road
Quote:
Originally Posted by Loriel
Did you test this? I am reluctant to believe it.

Quote:
The only inconsistency with this is "showcharacter;" type NPCs. They require x/y + whatever.
Do you understand why?
No, I do not understand why, but I have tested this out before
Quote:
Originally Posted by Loriel
It is not an inconsistency.
Maybe inconsistency isn't the right word, I don't know what you mean by this
__________________

Reply With Quote
  #8  
Old 12-28-2004, 06:10 AM
googleman googleman is offline
Registered User
googleman's Avatar
Join Date: Dec 2003
Location: Seattle, WA
Posts: 96
googleman is on a distinguished road
It's required for NPCs that don't have an image set.
Reply With Quote
  #9  
Old 12-28-2004, 06:27 AM
Evil_Trunks Evil_Trunks is offline
Evil
Evil_Trunks's Avatar
Join Date: Dec 2004
Posts: 391
Evil_Trunks is on a distinguished road
Quote:
Originally Posted by googleman
It's required for NPCs that don't have an image set.
I clearly remember doing it with NPCs that do not have an image...

just an NPC like this

PHP Code:
if (actionsomething) {
  
setplayerprop #c,works;
}
//#CLIENTSIDE
if (playerchats) {
  
triggeraction x,y,something,;

this is stripped down from an actual NPC which has been online
__________________

Reply With Quote
  #10  
Old 12-28-2004, 06:20 AM
osrs osrs is offline
Graalian since 1998
osrs's Avatar
Join Date: Mar 2002
Location: Brazil
Posts: 2,724
osrs is on a distinguished road
Send a message via ICQ to osrs Send a message via AIM to osrs Send a message via MSN to osrs Send a message via Yahoo to osrs
Quote:
Originally Posted by Evil_Trunks
No, I do not understand why, but I have tested this out before

Maybe inconsistency isn't the right word, I don't know what you mean by this

Just wanted to remember you that you are arguing with Loriel, if you don't want to lose your arguments, so it's better be quiet.
(ironic points + 1)
__________________
"Ability is what you are capable of doing. Motivation determines what you do. Attitude determines how well you do it."
Facebook: facebook.com/raysilvadotnet /
Reply With Quote
  #11  
Old 12-28-2004, 08:43 AM
ZeroTrack ZeroTrack is offline
G2K1 Developer
ZeroTrack's Avatar
Join Date: Apr 2004
Location: LongIsland, NY
Posts: 402
ZeroTrack is on a distinguished road
Send a message via AIM to ZeroTrack
no to do local npcs like that they have to be
PHP Code:
if(actionbleehhsendtorc Test;

//#CLIENTSIDE
if(playertouchsmetriggeraction x+1,y+1,bleehh,; 
if your not gonna use setshape
__________________

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 09:59 PM.


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