Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   NPC person... (https://forums.graalonline.com/forums/showthread.php?t=8544)

TheFox1 07-31-2001 09:35 PM

NPC person...
 
I wanna know a script to make a NPC squirrel to run around

KJS 07-31-2001 09:39 PM

ok...
 
ok well this has no onwall detections (it wouldn't be hard to add)
I just made this off the top of my head and didn't feel like adding onwall lol...

this is the basic stuff
NPC Code:
if(created){
//ani junk
timeout=0.05;
}
if(timeout){
this.rnd=int(random(0,4))
if(this.rnd==0) y--;
elseif(this.rnd==1) x--;
elseif(this.rnd==2) y++;
elseif(this.rnd==3) x++;
}


ZORG1986 07-31-2001 10:26 PM

Yeah but that one doesny change the direction of the squirrel gif, we need to know the GFX names, or just show us the files themselfs. Besides u should make badgers run around badgers are much better than squirrels.

BIG MEATY BADGERS!
FULL OF MEATY GOODNESS!

KJS 07-31-2001 10:27 PM

well you could use
showcharacter

and use a gani that bases off the direction of the character...

but hten you have to set the dir also in the if then statments

TheFox1 07-31-2001 10:33 PM

1 Attachment(s)
....
i want to get the fullscript so i can make the little guy run around..

KJS 07-31-2001 11:00 PM

I dont think anyone wants to make full scripts here...

basically most people will help you but they dont want to make the whole script that is not what we are here for..

TheFox1 07-31-2001 11:25 PM

Quote:

Originally posted by KJS
I dont think anyone wants to make full scripts here...

basically most people will help you but they dont want to make the whole script that is not what we are here for..


:( I suck at NPC's

Merlin 08-01-2001 01:29 AM

FLUFFY.

Shard_IceFire 08-01-2001 02:40 AM

Quote:

TheFox1 quote:
I suck at NPC's
Point being...? Y'know it'd be better to go out there and learn to script instead of begging us for long scripts that no one really feels like doing...




08-01-2001 03:24 AM

I'll make it... I already started i probly only need a half houre to a houre more.

TrueHeaT 08-01-2001 03:31 AM

Quote:

Originally posted by TheFox1
....
i want to get the fullscript so i can make the little guy run around..

Erm, that's the squirrel from Zelda, it's copywritten. Make your own.

08-01-2001 03:39 AM

Quote:

Originally posted by TrueHeaT

it's copywritten. Make your own.

yep, i noticed that. So now I am not so sure if i want to script it for him now.

TheFox1 08-01-2001 04:29 AM

Quote:

Originally posted by TrueHeaT


Erm, that's the squirrel from Zelda, it's copywritten. Make your own.

I found it in my Graal folder... in Webgif's....

Merlin 08-01-2001 04:44 AM

i bet it's from deleteria.

08-01-2001 08:13 AM

Quote:

Originally posted by Merlin
i bet it's from deleteria.
dont be stupid now...


All times are GMT +2. The time now is 07:13 AM.

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