Graal Forums  

Go Back   Graal Forums > PlayerWorlds > Bomy Island Main Forum
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 12-06-2001, 08:48 AM
ShockwaveISTHEBEST ShockwaveISTHEBEST is offline
Registered User
Join Date: Nov 2001
Location: never never land
Posts: 208
ShockwaveISTHEBEST is on a distinguished road
Send a message via AIM to ShockwaveISTHEBEST Send a message via Yahoo to ShockwaveISTHEBEST
New things for scriptors

I think that stefan should put in a script command called
"move to" then you should put in the x,y coordinates to start at then the ones to finish at then the speed and then the options.

Also anyone know how I would script a spar arena to get a script to 32,32,spar.nw if you say warp (the players accountname here) to spar ring.
Reply With Quote
  #2  
Old 12-06-2001, 08:49 AM
milotheman milotheman is offline
Banned
milotheman's Avatar
Join Date: Apr 2001
Posts: 0
milotheman is on a distinguished road
yes but this should be in scripting forum
Reply With Quote
  #3  
Old 12-06-2001, 09:30 AM
WeirdmanI9 WeirdmanI9 is offline
Banned
WeirdmanI9's Avatar
Join Date: Mar 2001
Location: Laying Low From The Police
Posts: 1,816
WeirdmanI9 is on a distinguished road
Send a message via AIM to WeirdmanI9 Send a message via Yahoo to WeirdmanI9
if (playerchats) {
tokenize #c;
if (strequals(#c,warpplayer)) {
with (getplayer(#t(1)) {
setlevel2 event.jr,x,y;
}
}
}
Reply With Quote
  #4  
Old 12-07-2001, 05:06 AM
JeffTL JeffTL is offline
Registered User
Join Date: Sep 2001
Posts: 374
JeffTL is on a distinguished road
Weird Man has it wrong.


if(playerchats){
if(startswith(summon,#c)){
tokenize #c;
with(getplayer(#t(2))){
setlevel2 level.graal,30,30;
}
}
}
__________________
Reply With Quote
  #5  
Old 12-07-2001, 05:14 AM
EThor EThor is offline
Shinji Ikari
EThor's Avatar
Join Date: Apr 2001
Location: One of the Seven Continents
Posts: 1,734
EThor is on a distinguished road
Send a message via ICQ to EThor Send a message via AIM to EThor Send a message via Yahoo to EThor
Durr...you all have it wrong

}if playereastcowsayboo{
__________________
[ICQ UIN]: 115257424
[AIM]:Evil Thor1000
[E-mail]:[email protected]


"wow, thats so utterly fantastic that i might poke myself in the eye." - Malak
Reply With Quote
  #6  
Old 12-07-2001, 05:25 AM
cds96 cds96 is offline
randomrubbish.net
cds96's Avatar
Join Date: May 2001
Location: Sunny ol' England
Posts: 6,184
cds96 is on a distinguished road
Send a message via ICQ to cds96 Send a message via AIM to cds96
Quote:
Originally posted by EThor
Durr...you all have it wrong

}if playereastcowsayboo{
boo
__________________


craig is now backing up cookies ;]
Reply With Quote
  #7  
Old 12-07-2001, 05:29 AM
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
There is the 'move' command or do you mean
moving the player?
Reply With Quote
  #8  
Old 12-07-2001, 05:37 AM
cds96 cds96 is offline
randomrubbish.net
cds96's Avatar
Join Date: May 2001
Location: Sunny ol' England
Posts: 6,184
cds96 is on a distinguished road
Send a message via ICQ to cds96 Send a message via AIM to cds96
Quote:
Originally posted by Stefan
There is the 'move' command or do you mean
moving the player?
mabey something that moves the player to that point of the level like a warp or moving the player like walking him there.
__________________


craig is now backing up cookies ;]
Reply With Quote
  #9  
Old 12-07-2001, 06:14 AM
Warcaptain Warcaptain is offline
Banned
Warcaptain's Avatar
Join Date: Jun 2001
Location: Virginia, USA
Posts: 2,086
Warcaptain is on a distinguished road
Send a message via ICQ to Warcaptain Send a message via AIM to Warcaptain Send a message via Yahoo to Warcaptain
you could just have a npc that moves and sets the player x to itself.
but then it wont do direction as well.

so it would be easier for a new command, but untill then jus use an npc that you can do callnpc or triggeraction with to move.
Reply With Quote
  #10  
Old 12-07-2001, 06:33 AM
T-Squad T-Squad is offline
Banned
T-Squad's Avatar
Join Date: Mar 2001
Location: United States of America
Posts: 1,733
T-Squad is on a distinguished road
How about some things to simplify path finding?
Reply With Quote
  #11  
Old 12-07-2001, 06:49 AM
Warcaptain Warcaptain is offline
Banned
Warcaptain's Avatar
Join Date: Jun 2001
Location: Virginia, USA
Posts: 2,086
Warcaptain is on a distinguished road
Send a message via ICQ to Warcaptain Send a message via AIM to Warcaptain Send a message via Yahoo to Warcaptain
im sure you have an onwall script somewhere right?


well

if (x!=this.targetx&&y!=this.targety){
onwallmovement();
}


then tweak the onwall so it will instead of keep obj or player still, it will move it up or down (depending on where a wall is located)


if you cant script the rest from this, you shouldnt worry about path finding anyways
Reply With Quote
  #12  
Old 12-07-2001, 06:49 AM
LilNiglet LilNiglet is offline
Registered User
Join Date: Jun 2001
Posts: 3,178
LilNiglet is on a distinguished road
Quote:
Originally posted by Stefan
There is the 'move' command or do you mean
moving the player?
He kinda means this, Stefan.

Say I want to move a NPC OR player to 32,46. All I would have to do is use a command called movenpc, or moveplayer.

NPC Code:

if (strequals(#c, go now)){
movenpc 32,46;
}



and then the NPC would go straight to 32,46, through any NPCs or blocking tiles in the way. Of course, you could use a command kind of like the options thing in move. Like, you could do blockcheck and stuff like that.

NPC Code:

if (strequals(#c, go now)){
movenpc 32,46,2;
}

Reply With Quote
  #13  
Old 12-07-2001, 07:13 AM
adam adam is offline
http://wiki.graal.us/
adam's Avatar
Join Date: Nov 2001
Posts: 2,247
adam has a spectacular aura aboutadam has a spectacular aura about
Send a message via AIM to adam
... boo!

pathfinding is awesome.
__________________
Rogue Shadow (TCN)(NAT)(Global Development Team)

For development help, contact the patrons of the #graaldt irc channel below, I am usually there.
Click Here to Join IRC Chat Now! -- irc.freenode.net Channel: #graaldt
Quote:
<Dustyshouri> no, RogueShadow is always talking about scripts lol
<Dustyshouri> in fact, he pretty much brought Graal back as a topic single-handedly
Reply With Quote
  #14  
Old 12-07-2001, 07:30 AM
JeffTL JeffTL is offline
Registered User
Join Date: Sep 2001
Posts: 374
JeffTL is on a distinguished road
yah, a player version of move would be nice.
__________________
Reply With Quote
  #15  
Old 12-08-2001, 09:36 AM
ShockwaveISTHEBEST ShockwaveISTHEBEST is offline
Registered User
Join Date: Nov 2001
Location: never never land
Posts: 208
ShockwaveISTHEBEST is on a distinguished road
Send a message via AIM to ShockwaveISTHEBEST Send a message via Yahoo to ShockwaveISTHEBEST
What I meant was if you have something running on random loops you could put a timeout=10; at the end of the random then put something like
moveto x,y,time,options;} and have it move you there from wherever your npc might happen to be at the moment.
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 08:38 AM.


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