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 07-23-2002, 02:52 AM
brock128 brock128 is offline
oldbie
Join Date: Dec 2001
Posts: 2,861
brock128 is on a distinguished road
Stupid newbie question

How do I move an NPC half a tile?
Reply With Quote
  #2  
Old 07-23-2002, 03:15 AM
screen_name screen_name is offline
is watching you
Join Date: Mar 2002
Location: The 3rd Dimension
Posts: 2,160
screen_name is on a distinguished road
Send a message via AIM to screen_name Send a message via MSN to screen_name
x+.5;
x-.5;
__________________
[signature]insert here[/signature]
Reply With Quote
  #3  
Old 07-23-2002, 05:00 AM
brock128 brock128 is offline
oldbie
Join Date: Dec 2001
Posts: 2,861
brock128 is on a distinguished road
Quote:
Originally posted by screen_name
x+.5;
x-.5;
Remember, I'm a stupid newbie, so that would mean... what?
Reply With Quote
  #4  
Old 07-23-2002, 05:51 AM
Legondary_MyTH Legondary_MyTH is offline
Registered User
Join Date: May 2002
Location: Levelville
Posts: 420
Legondary_MyTH is on a distinguished road
o

+moves it to the right
- moves to the left
.5 is half of 1 get it?????
__________________
ArchMage Amedeus Valoryn of Zormite
Manager of Anarchy
Past Jobs:
Levels Admin on Renegade
LAT on Doomsday,Babylon,G3K
Developer on Faheria,Babylon
GP on Sanstrata,G3K
Reply With Quote
  #5  
Old 07-23-2002, 05:55 AM
AlexH AlexH is offline
Have A Drink On Me
AlexH's Avatar
Join Date: Jun 2001
Location: Somewhere In Time
Posts: 7,442
AlexH is on a distinguished road
Send a message via AIM to AlexH Send a message via MSN to AlexH
if (playerenters) {
x=x+.5;
y=y+.5;
}

Can use - too.
Basically it moves the image half a tile depending on what you put there.
__________________
QUICK LOOK BUSY JESUS IS COMING!
Reply With Quote
  #6  
Old 07-23-2002, 06:10 AM
user13-xo user13-xo is offline
Registered User
Join Date: Nov 2001
Location: California
Posts: 297
user13-xo is on a distinguished road
Send a message via AIM to user13-xo
if (created) {
x-=.5;
x+=.5;
y-=.5;
y+=.5;
}
Reply With Quote
  #7  
Old 07-23-2002, 12:43 PM
Torankusu Torankusu is offline
Elite Member
Torankusu's Avatar
Join Date: Jun 2001
Posts: 10,065
Torankusu is a jewel in the roughTorankusu is a jewel in the rough
Quote:
Originally posted by user13-xo
if (created) {
x-=.5;
x+=.5;
y-=.5;
y+=.5;
}
that's a great script if you want to put it right back in its original position!
__________________
Quote:
Originally posted by Spark910
Think befreo you type.
Reply With Quote
  #8  
Old 07-23-2002, 12:49 PM
MaverickZero MaverickZero is offline
Registered User
Join Date: Jun 2002
Location: New York
Posts: 56
MaverickZero is on a distinguished road
Send a message via AIM to MaverickZero Send a message via Yahoo to MaverickZero
or (im making this up)
if (created) { x=30.5; y=29.5
}

that would move it to the x/y spefified
(i cant spel)
__________________
Maverick Zero

----------------------------
AIM: MaverickZeroUnit
Reply With Quote
  #9  
Old 07-23-2002, 01:31 PM
screen_name screen_name is offline
is watching you
Join Date: Mar 2002
Location: The 3rd Dimension
Posts: 2,160
screen_name is on a distinguished road
Send a message via AIM to screen_name Send a message via MSN to screen_name
Quote:
Originally posted by Torankusu
that's a great script if you want to put it right back in its original position!

lol
__________________
[signature]insert here[/signature]
Reply With Quote
  #10  
Old 07-24-2002, 01:16 AM
brock128 brock128 is offline
oldbie
Join Date: Dec 2001
Posts: 2,861
brock128 is on a distinguished road
Quote:
Originally posted by Kaimetsu
¬_¬

I can't believe how low this forum has sunk.
Oh I'm sorry I'm not a l33t scripter like you please give me your master advice Mister Kaimetsu.

Anyway, thanks all.
Reply With Quote
  #11  
Old 07-24-2002, 01:35 AM
screen_name screen_name is offline
is watching you
Join Date: Mar 2002
Location: The 3rd Dimension
Posts: 2,160
screen_name is on a distinguished road
Send a message via AIM to screen_name Send a message via MSN to screen_name
if you just read throught the scripting document that comes with graal, it will get you started
__________________
[signature]insert here[/signature]
Reply With Quote
  #12  
Old 07-24-2002, 01:55 AM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
Quote:
Originally posted by Kaimetsu
¬_¬

I can't believe how low this forum has sunk.
sad but true
Reply With Quote
  #13  
Old 07-24-2002, 02:33 AM
brock128 brock128 is offline
oldbie
Join Date: Dec 2001
Posts: 2,861
brock128 is on a distinguished road
Quote:
Originally posted by screen_name
if you just read throught the scripting document that comes with graal, it will get you started
Thanks.
Reply With Quote
  #14  
Old 07-24-2002, 02:55 AM
darkriders_p2p darkriders_p2p is offline
Registered User
Join Date: Jan 2002
Location: Canada
Posts: 690
darkriders_p2p is on a distinguished road
Quote:
Originally posted by AlexH
if (playerenters) {
x=x+.5;
y=y+.5;
}

Can use - too.
Basically it moves the image half a tile depending on what you put there.
on a free server wouldn't that move the npc over .5 every time you entered the room?
__________________
maximus_asinus
Reply With Quote
  #15  
Old 07-24-2002, 03:15 AM
screen_name screen_name is offline
is watching you
Join Date: Mar 2002
Location: The 3rd Dimension
Posts: 2,160
screen_name is on a distinguished road
Send a message via AIM to screen_name Send a message via MSN to screen_name
yes
__________________
[signature]insert here[/signature]
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 12:30 AM.


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