Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Bomy Island Main Forum (https://forums.graalonline.com/forums/forumdisplay.php?f=80)
-   -   editor npc -deepwater (https://forums.graalonline.com/forums/showthread.php?t=22097)

LiquidIce00 01-26-2002 07:19 AM

editor npc -deepwater
 
I havent finished this but its for the editor npc thing.
I just started 2day and I havent really had a grasp of Stefan's arithmetics yet so this is not perfect..

NPC Code:

// NPC made by LiquidIce
allwatertiles={12+225*16,13+225*16,12+226*16,13+22 6*16,12+227*16};
deepwater=12+227*16;
waterstar={12+225*16,13+225*16,12+226*16,13+226*16 }
if (playerenters) { setarray order,4; }

if (playerenters || timeout) {
if (mousebuttons%2>=1&&this.count=0) {
mousetileL=tiles[mousex-1,mousey];
mousetileR=tiles[mousex,mousey];
mousetileDL=tiles[mousex-1,mousey+1];
mousetileD=tiles[mousex,mousey+1];
this.tilecount=0;
if (mousetileL in allwatertiles) { this.tilecount++; }
if (mousetileR in allwatertiles) { this.tilecount++; }
if (mousetileD in allwatertiles) { this.tilecount++; }
if (mousetileDL in allwatertiles) { this.tilecount++; }
if (this.tilecount<=1) {
if (mousetileL in allwatertiles) { if (!mousetileL=waterstar[0]) { order[0]=deepwater; } }
else { order[0]=waterstar[0]; }

if (mousetileR in allwatertiles) { if (!mousetileR=waterstar[1]) { order[1]=deepwater; } }
else { order[1]=waterstar[1]; }

if (mousetileDL in allwatertiles) { if (!mousetileDL=waterstar[2]) { order[2]=deepwater; } }
else { order[2]=waterstar[2]; }

if (mousetileD in allwatertiles) { if (!mousetileD=waterstar[3]) { order[3]=deepwater; } }
else { order[3]=waterstar[3]; }

tiles[mousex-1,mousey]=order[0];
tiles[mousex,mousey]=order[1];
tiles[mousex-1,mousey+1]=order[2];
tiles[mousex,mousey+1]=order[3];

updateboard 0,0,64,64;
this.count=2;
}
}
if (this.count>0) { this.count--; }
timeout=.05;
}


LiquidIce00 01-26-2002 07:24 AM

1 Attachment(s)
Here is a s/s..
(the swimmable water i just selected the tile and clicked the 2nd button to flood fill the lvl .. but the deep is the script)

konidias 01-26-2002 07:40 AM

1 Attachment(s)
Here is the improvement for the sand path I made.. it places less big and small rocks to make it look less generated.

konidias 01-26-2002 07:41 AM

1 Attachment(s)
Here is the shallow water path I made, also with less rocks to make it look less generated. Just save both of these to your levels/npcs folder. ;)

Oxy-Moron 01-26-2002 07:42 AM

::love for koni::<3

When will you be releasing the other edit controls you've made? ^^

konidias 01-26-2002 07:42 AM

When I get done with the others, I will just put all of them into a zip with a guide and instructions.. it will make it easier then posting one or two files all over. :)

konidias 01-26-2002 07:44 AM

1 Attachment(s)
Bwa ha ha >:}

Kasuagi 01-26-2002 07:47 AM

Quote:

Originally posted by konidias
Bwa ha ha >:}
hahahahahahahaha

suck up =P

LiquidIce00 01-26-2002 07:47 AM

make ur own script other then changing just the tiles ;P

konidias 01-26-2002 07:51 AM

Quote:

Originally posted by LiquidIce00
make ur own script other then changing just the tiles ;P
Um.. why? When they are exactly the same pattern with different tiles, it would only make sense to change just the tiles. ";P"

LiquidIce00 01-26-2002 07:54 AM

Quote:

Originally posted by konidias


Um.. why? When they are exactly the same pattern with different tiles, it would only make sense to change just the tiles. ";P"

not the one im making ;)
its hard as hell though .. but if I learn the arithmetics crap ill make nething .. Stefan is so skilled .. he > us all * 2

LiquidIce00 01-26-2002 07:55 AM

ohh by the way .. dont bother changing all the tiles to hex if ur doing that. . u dont even need to multiply...
like in mine...
allwatertiles={12+225*16,13+225*16,12+226*16,13+22
6*16,12+227*16};

Solareon 01-26-2002 07:59 AM

Quote:

Originally posted by LiquidIce00
ohh by the way .. dont bother changing all the tiles to hex if ur doing that. . u dont even need to multiply...
like in mine...
allwatertiles={12+225*16,13+225*16,12+226*16,13+22
6*16,12+227*16};


? wtf are you talking about?

LiquidIce00 01-26-2002 08:00 AM

Quote:

Originally posted by Solareon



? wtf are you talking about?

stefan used hex in his tile id's .. u dont need to use hex .. he might have made that before he made so u can use normal stuff. i dunno

Solareon 01-26-2002 08:03 AM

post some of the hex crap I may whip up a program to fast convert it hex

LiquidIce00 01-26-2002 08:04 AM

Quote:

Originally posted by Solareon
post some of the hex crap I may whip up a program to fast convert it hex
windows calculator ;)

Solareon 01-26-2002 08:05 AM

Quote:

Originally posted by LiquidIce00


windows calculator ;)


you stoled my ideas

konidias 01-26-2002 08:06 AM

Quote:

Originally posted by LiquidIce00


windows calculator ;)

I find hex easier, and yes I know you can do it that way.

Solareon 01-26-2002 08:12 AM

ya need to figure out how to make it blend with liek sand and shallow water. Never seen a grassy beach before

LiquidIce00 01-26-2002 09:04 AM

Quote:

Originally posted by konidias


I find hex easier, and yes I know you can do it that way.

u can do it in ur head if u know how hex works ;P

Waltz5 01-26-2002 10:28 AM

Koni you rule!... I'm beginning to see why you like this so much.

Juron Pilo 01-26-2002 10:33 AM

you can do hex in your head if you want to suffer headaches later

LiquidIce00 01-26-2002 11:17 AM

Quote:

Originally posted by Juron Pilo
you can do hex in your head if you want to suffer headaches later
:D

Aknts 01-26-2002 11:20 AM

Quote:

Originally posted by Juron Pilo
you can do hex in your head if you want to suffer headaches later
<3

Questa 01-26-2002 12:07 PM

Quote:

Originally posted by LiquidIce00


u can do it in ur head if u know how hex works ;P

You can also do the alphabet in your head. (Gimme a break, its kind of like hex) XD

ArchOwl 01-26-2002 12:09 PM

Re: editor npc -deepwater
 
Quote:

Originally posted by LiquidIce00
I havent finished this but its for the editor npc thing.
I just started 2day and I havent really had a grasp of Stefan's arithmetics yet so this is not perfect..

NPC Code:

// NPC made by LiquidIce
allwatertiles={12+225*16,13+225*16,12+226*16,13+22 6*16,12+227*16};
deepwater=12+227*16;
waterstar={12+225*16,13+225*16,12+226*16,13+226*16 }
if (playerenters) { setarray order,4; }

if (playerenters || timeout) {
if (mousebuttons%2>=1&&this.count=0) {
mousetileL=tiles[mousex-1,mousey];
mousetileR=tiles[mousex,mousey];
mousetileDL=tiles[mousex-1,mousey+1];
mousetileD=tiles[mousex,mousey+1];
this.tilecount=0;
if (mousetileL in allwatertiles) { this.tilecount++; }
if (mousetileR in allwatertiles) { this.tilecount++; }
if (mousetileD in allwatertiles) { this.tilecount++; }
if (mousetileDL in allwatertiles) { this.tilecount++; }
if (this.tilecount<=1) {
if (mousetileL in allwatertiles) { if (!mousetileL=waterstar[0]) { order[0]=deepwater; } }
else { order[0]=waterstar[0]; }

if (mousetileR in allwatertiles) { if (!mousetileR=waterstar[1]) { order[1]=deepwater; } }
else { order[1]=waterstar[1]; }

if (mousetileDL in allwatertiles) { if (!mousetileDL=waterstar[2]) { order[2]=deepwater; } }
else { order[2]=waterstar[2]; }

if (mousetileD in allwatertiles) { if (!mousetileD=waterstar[3]) { order[3]=deepwater; } }
else { order[3]=waterstar[3]; }

tiles[mousex-1,mousey]=order[0];
tiles[mousex,mousey]=order[1];
tiles[mousex-1,mousey+1]=order[2];
tiles[mousex,mousey+1]=order[3];

updateboard 0,0,64,64;
this.count=2;
}
}
if (this.count>0) { this.count--; }
timeout=.05;
}


its really hard to connect stuff with that :(

LiquidIce00 01-26-2002 11:59 PM

Re: Re: editor npc -deepwater
 
Quote:

Originally posted by ArchOwl


its really hard to connect stuff with that :(

u have to go thru the corners and slow ..
i have to find arithmetics so it works fine .. cuz w/ the sand u can connect 1 tile w/ 1 tile .. this u cant u have to have 2 tiles to connect since they are diff.. its hard hehe


All times are GMT +2. The time now is 05:55 PM.

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