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
  #16  
Old 11-21-2004, 02:18 PM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
Quote:
Originally Posted by Salaisuus
If I have a 9 level gmap and I say warpto 30 30 name.gmap
Where should thsi take me?
Because when I do this it warps me in midle of the upper left corner level.
It should take you to the top-left level. As Kaimetsu said, a GMAP links the levels together as one. If you warp to (94,94) on name.gmap, it'll take you to (30,30) of the level b2 (if your GMAP level filenames follow that pattern).
__________________
Skyld
Reply With Quote
  #17  
Old 11-21-2004, 04:03 PM
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
or you could just use the map and ctrl + leftmouseclick that warps you to where ever you click
__________________

Reply With Quote
  #18  
Old 11-21-2004, 04:37 PM
Slash-P2P Slash-P2P is offline
Banned
Join Date: May 2004
Location: Burning Blade
Posts: 941
Slash-P2P is on a distinguished road
Just have an npc define the players position for you.
PHP Code:
if (playerchats && strequals(#c,show position)) {
setplayerprop #c,(#v(playerx),#v(playery));

Reply With Quote
  #19  
Old 11-21-2004, 08:41 PM
Salaisuus Salaisuus is offline
Registered User
Join Date: Mar 2004
Posts: 68
Salaisuus is on a distinguished road
Well this still doesnt work on gmap and I dont know why.

if (actionleftmouse && int(playerx)=<30) {
playerdir=0; unfreezeplayer; setani idle,; setlevel2 effthis.nw,38,61;
}

Works fine on normal levels, In gmap it only sets gani and doesnt warp.






issed: issed: issed: issed: issed: issed:
Reply With Quote
  #20  
Old 11-21-2004, 09:31 PM
Kaimetsu Kaimetsu is offline
Script Monkey
Kaimetsu's Avatar
Join Date: May 2001
Posts: 18,222
Kaimetsu will become famous soon enough
No clientside setlevel2.
__________________
Reply With Quote
  #21  
Old 11-21-2004, 10:42 PM
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
use triggeraction to serverside for the setlevel2
__________________

Reply With Quote
  #22  
Old 11-22-2004, 02:05 AM
Salaisuus Salaisuus is offline
Registered User
Join Date: Mar 2004
Posts: 68
Salaisuus is on a distinguished road
Quote:
use triggeraction to serverside for the setlevel2
Like this?

if (actionserverenter) {
setlevel2 ihategscripts.nw,30,30;}
//#CLIENTSIDE
if (actionleftmouse && int(playerx)=<30) {
playerdir=0; unfreezeplayer; setani idle,; triggeraction playerx,playery,serverenter,;
}

Because it doesnt work. or did I miss something?
Reply With Quote
  #23  
Old 11-22-2004, 02:29 AM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
Is this a level NPC or a weapon?
__________________
Skyld
Reply With Quote
  #24  
Old 11-22-2004, 03:13 AM
Salaisuus Salaisuus is offline
Registered User
Join Date: Mar 2004
Posts: 68
Salaisuus is on a distinguished road
Level npc. You mouse click it and it warps you to a level.
Or thats what its supposed to do.
I cant understand why it works on normal levels online but not on gmap.
Reply With Quote
  #25  
Old 11-22-2004, 03:32 AM
Tolnaftate2004 Tolnaftate2004 is offline
penguin.
Join Date: Jul 2004
Location: Berkeley, CA
Posts: 534
Tolnaftate2004 is a jewel in the roughTolnaftate2004 is a jewel in the rough
Send a message via AIM to Tolnaftate2004
Unless you're on the npc, it won't trigger.
Reply With Quote
  #26  
Old 11-22-2004, 03:54 AM
Salaisuus Salaisuus is offline
Registered User
Join Date: Mar 2004
Posts: 68
Salaisuus is on a distinguished road
Doesnt trigger eeven if the player is on it. And the way I undertand that script, it should comit the action on the player on the playerx/y.
But Im propaly mistaken.
Reply With Quote
  #27  
Old 11-22-2004, 04:05 AM
Tolnaftate2004 Tolnaftate2004 is offline
penguin.
Join Date: Jul 2004
Location: Berkeley, CA
Posts: 534
Tolnaftate2004 is a jewel in the roughTolnaftate2004 is a jewel in the rough
Send a message via AIM to Tolnaftate2004
It triggers to the NPC at (playerx,playery).
Reply With Quote
  #28  
Old 11-22-2004, 04:31 AM
Salaisuus Salaisuus is offline
Registered User
Join Date: Mar 2004
Posts: 68
Salaisuus is on a distinguished road
Ehhh..? It send the action (warp to a level) to the playerx/y or I dont understand anything.
Reply With Quote
  #29  
Old 11-22-2004, 02:50 PM
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
Quote:
Originally Posted by Salaisuus
Like this?

if (actionserverenter) {
setlevel2 ihategscripts.nw,30,30;}
//#CLIENTSIDE
if (actionleftmouse && int(playerx)=<30) {
playerdir=0; unfreezeplayer; setani idle,; triggeraction playerx,playery,serverenter,;
}
PHP Code:
if (actionenter) {
  
setlevel2 ihategscripts.nw,30,30;
}
//#CLIENTSIDE
if (actionleftmouse && int(playerx)=<30) {
 
playerdir=0unfreezeplayersetani idle,; triggeraction x+1,y+1,enter,;

the action is supposed to happen to the npc, the way you had it is the only way it could work is if the playerx and playery were the same as the npc's x and y. this way it triggers it inside the npc no matter where the player is
understand now?

--- Edit ---
Oh wow , well ok theres another problem that i encountered while testing it... this is an odd one, but you can't have server as the begining word .... just put enter and actionenter
__________________


Last edited by ZeroTrack; 11-22-2004 at 03:11 PM..
Reply With Quote
  #30  
Old 11-22-2004, 11:56 PM
Tolnaftate2004 Tolnaftate2004 is offline
penguin.
Join Date: Jul 2004
Location: Berkeley, CA
Posts: 534
Tolnaftate2004 is a jewel in the roughTolnaftate2004 is a jewel in the rough
Send a message via AIM to Tolnaftate2004
Quote:
Originally Posted by ZeroTrack
Oh wow , well ok theres another problem that i encountered while testing it... this is an odd one, but you can't have server as the begining word .... just put enter and actionenter
Triggers beginning with server automatically trigger to the Control-NPC (other than serverside). I think.
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 11:11 PM.


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