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 08-09-2001, 04:52 AM
Metal-Slug Metal-Slug is offline
!_!
Metal-Slug's Avatar
Join Date: Jun 2001
Posts: 2,421
Metal-Slug is on a distinguished road
Guard

Im making a gaurd, so that when somone in my guild says move, it walks down, the turns to the right or left, then stops, then faces down, the, when the guild member says go back, it walks back to his post.
__________________

Er1c2 loaded the local ban info of Loriel-2002 RC

Last edited by Metal-Slug; 08-09-2001 at 05:15 AM..
Reply With Quote
  #2  
Old 08-09-2001, 07:06 AM
CrazedMerlin CrazedMerlin is offline
Some Guy :\
Join Date: Apr 2001
Posts: 3,619
CrazedMerlin is on a distinguished road
Send a message via AIM to CrazedMerlin Send a message via Yahoo to CrazedMerlin
ok
__________________

ICQ: 117881194
AIM: TehWizad
E-Mail: [email protected]
Reply With Quote
  #3  
Old 08-09-2001, 07:16 AM
Metal-Slug Metal-Slug is offline
!_!
Metal-Slug's Avatar
Join Date: Jun 2001
Posts: 2,421
Metal-Slug is on a distinguished road
umm, ok, i at least need some one to help me start
__________________

Er1c2 loaded the local ban info of Loriel-2002 RC
Reply With Quote
  #4  
Old 08-09-2001, 09:15 AM
Guest
Posts: n/a
Easy...


NPC Code:

// NPC by Ice Pick
if (created) {
// Initialize the attributes
showcharacter;
setcharprop #3,head0.gif;
setcharprop #C0,orange;
setcharprop #C1,white;
setcharprop #C2,blue;
setcharprop #C3,red;
setcharprop #C4,black;
setcharprop #2,shield1.gif;
shieldpower = 1;
dir = 2;
hearts = 3;
}

if(strequals(#g,your guild)&&strequals(#c,move)) {
this.move = 1;
timeout = 0.05;
if(x = 11) {
this.move = 2;
if(y = 10) {
this.move = 3;
}
}
}

if(this.move = 1) {
dir = 3;
x+=0.2;
setcharani walk,;
timeout = 0.05;
}
if(this.move = 2) {
dir = 2;
y+=0.2;
setcharani walk,;
timeout = 0.05;
}
if(this.move = 3) {
dir = 1;
setcharani idle,;
x=x;
y=y;
}



you can change the x, and y's arround if you want. I just put thoughs in their to test it.

this.move = 1 is for moving right
this.move = 2 is for moving down
this.move = 3 is for turning left and stoping.
Reply With Quote
  #5  
Old 08-09-2001, 11:57 PM
Metal-Slug Metal-Slug is offline
!_!
Metal-Slug's Avatar
Join Date: Jun 2001
Posts: 2,421
Metal-Slug is on a distinguished road
thank you man, try not to ask unless i cant figure it out
__________________

Er1c2 loaded the local ban info of Loriel-2002 RC
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 06:48 PM.


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