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-08-2001, 10:10 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
well move is just
move x,y,speed,options
you know x and y (hopefully) ,and speed is the ammount of seconds to do it in, and there are a ton of options so for now just use this.
to get it to loop do this for example

you start out with this:

if (created) {
setimg light2.png;
dontblock;
}
//#CLIENTSIDE
if (playerenters) {
setcoloreffect 1,1,1,0.99;
drawaslight;
}


then you just add your move in like this:

if (created) {
setimg light2.png;
dontblock;
}

if (timeout) {
move 10,10,2,4 //the 4 in the options slot makes it stop at a wall
timeout=.5

//#CLIENTSIDE
if (playerenters) {
setcoloreffect 1,1,1,0.99;
drawaslight;
}

Then it will not go on walls it will move 10 tiles and loop.
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 01:07 PM.


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