Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Ideal scripting tool (https://forums.graalonline.com/forums/showthread.php?t=24215)

zallus-k 02-21-2002 07:35 AM

Ideal scripting tool
 
Has anyone tried to write an editor control NPC that would put random things all over the pure grass of the level, to save time from placing all those little ambient objects like flowers and grass tufts around?

neomaximus2k 02-21-2002 07:46 AM

Re: Ideal scripting tool
 
Quote:

Originally posted by zallus-k
Has anyone tried to write an editor control NPC that would put random things all over the pure grass of the level, to save time from placing all those little ambient objects like flowers and grass tufts around?
I beleive one has been made

Kagero 02-21-2002 08:25 AM

Murasamune made one of those...

Posted by Cyanide SR71

TDK_RC6 02-21-2002 11:09 AM

that would be cool and easy to make :P

Spanko 02-21-2002 07:28 PM

I personally have one, thugh it's not an actual editor CNPC as much as just some NPC in a level. Bah, I could probably attach the whole thing but I'm lazy.

btedji 02-21-2002 08:35 PM

I WAS thinking about making one, but since it is already made I'll just get it from someone

TDK_RC6 02-21-2002 10:08 PM

Quote:

Originally posted by btedji
I WAS thinking about making one, but since it is already made I'll just get it from someone
:P

i find it funny

Saga2001 02-21-2002 11:16 PM

I actually made a few that not only did that, using server arrays, but also did things like use the board command to tile ugly looking levels. I just made it so that every time a playerentered and level it would check the level and add a few things, i should post it...

neomaximus2k 02-22-2002 12:03 AM

Quote:

Originally posted by Saga2001
I actually made a few that not only did that, using server arrays, but also did things like use the board command to tile ugly looking levels. I just made it so that every time a playerentered and level it would check the level and add a few things, i should post it...
can someone post one then?

NeoNPL 02-22-2002 12:38 AM

Yes, please do share with the less enlightend of us

Saga2001 02-22-2002 12:39 AM

Quote:

Originally posted by NeoNPL
Yes, please do share with the less enlightend of us
omi thats a large sig!
i will post it when i get home.

Saga2001 02-22-2002 12:44 AM

Re: Re: Ideal scripting tool
 
Quote:

Originally posted by Kaimetsu


That's not really a scripting tool, incidentally.

indeed its not.
it would be cool to make a like gscripting engine that you could run scripts on, like make it in c and it would work like an npc served graal...hmmmmm....ideas.

AlexH 02-22-2002 12:45 AM

There already is something like that in the normal graal exe.
Infact its exactly like that.
However you need to know how to make graal 2002 styule levels for it to work.

Saga2001 02-22-2002 12:46 AM

Quote:

Originally posted by AlexH
There already is something like that in the normal graal exe.
Infact its exactly like that.
However you need to know how to make graal 2002 styule levels for it to work.

yes there is. but its more fun to make it more hard.

NeoNPL 02-22-2002 12:47 AM

Quote:

Originally posted by Saga2001


omi thats a large sig!
i will post it when i get home.

i know , when i uploaded it it somehow enlarged itself and ive not had time to change it, sorry

AlexH 02-22-2002 12:51 AM

Quote:

Originally posted by Saga2001


yes there is. but its more fun to make it more hard.

Why make something we already have?
Its not even an NPC its coded into the tile.
Wouldn't it be better to make new things instead of exsisting stuff, or at least make the exsisting stuff better?

Saga2001 02-22-2002 12:52 AM

do you know specifically what we are talking about?

Quote:

Originally posted by AlexH


Why make something we already have?
Its not even an NPC its coded into the tile.
Wouldn't it be better to make new things instead of exsisting stuff, or at least make the exsisting stuff better?


AlexH 02-22-2002 01:04 AM

Yes.
You want an auto detailer for empty grass.
Things like long grass, swamp, bushes etc would be added into the correct place.
And if you had read my message saying that we already have that, you just need to know how to make 2k2 levels to be able to use it.
This is not an NPC which means no lag. It is coded into the tile.

Falcor 02-22-2002 01:51 AM

I made one
Looks sorta like 2k1 grass, I was going to make a custome one for Faheria, becasue we have like 3 or so types of normal grass not including long grass and other decorative things.

dragoonvenganc 02-22-2002 02:36 AM

whats with the lvl thing on the left

Aknts 02-22-2002 05:51 AM

No one post any scripts that will help people tile ther elevel faster.

More Newbies Making Servers

zallus-k 02-22-2002 06:48 AM

If I had wanted an NPC like the G2K2 one, I would have said so. I mean an editor control NPC that actually puts the tiles on the level. But you probably all knew that, except for the people in this thread. I AM making a server, but I am not a newb, and the server is not the reason for this post, rather:
1. I don't post here much because I only recently started caring about other people's opinions.
2. The script would be good enough to allow Stefan to add it as another editor-control NPC in the Dev pack.
So, I think this one script, posted by some kindly soul, would be helpful to EVERYONE in Graal, instead of just the few that are keeping it to themselves. Please, just don't insult something you know would be a welcome addition to the Graal world, and don't insult me either, because, as I said, I don't post here (or read here) much.

Python523 02-22-2002 07:23 AM

Sure, go ahead, make an auto tiler and more editor NPCs, ruin the purpose for LATs existing :rolleyes:
It will just have more people using them to become a LAT on a server without doing anything but opening a crappy level

Faheria_GP2 02-22-2002 08:09 AM

Quote:

Originally posted by Aknts
No one post any scripts that will help people tile ther elevel faster.

More Newbies Making Servers

method is meaningless to the result

zallus-k 02-22-2002 09:16 AM

1 Attachment(s)
I have hacked together a version from the sandpath script. Put it in your NPCs folder, and enjoy! :cool:

Just please don't mock how horrible this is.

Python523 02-22-2002 09:21 AM

Quote:

Originally posted by zallus-k
I have hacked together a version from the sandpath script. Put it in your NPCs folder, and enjoy! :cool:

Just please don't mock how horrible this is.

How do you figure out the hex codes for tiles?

zallus-k 02-22-2002 09:52 AM

I'm really trying to figure that out right now. Anyone know?

btedji 02-22-2002 10:20 AM

LOL hex has nothing to do with tiles in graal =D

Faheria_GP2 02-22-2002 10:25 AM

this question wasn't directed at me, but I feel compelled to answer

Hex is a 16-digit number system (as opposed to our 10-digit system)

so, in Hex

1 is 16^0
10 is 16^1
100 is 16^2

where in standard

1 is 10^0
10 is 10^1
100 is 10^2

to have these extra 6 digits, the letters A-F are used

Hex to Standard conversions

5 - 5
9 - 9
A -10
C - 12
F - 15
10 - 16

In graal, to show a number is hex, we start off this number with 0x

0x1AF
0xFF

the good thing about hex, is that every value that can be stored in a byte is a two digit number in hex, because "FF" is 255, and that is the max a byte can hold...so and two digits will be a byte

I am bored, so hey

Faheria_GP2 02-22-2002 10:48 AM

yes, especially how it is 0-15 and stuffs, but whatever

btedji 02-22-2002 09:29 PM

Quote:

Originally posted by Kaimetsu


I think that statement is questionable, when you consider how the tiles are numbered in pics.png.

Debatable

btedji 02-22-2002 09:40 PM

Quote:

Originally posted by Kaimetsu
The simple fact is that hex is a convenient way to store tile values in scripts. So while knowledge of this is not required for tile scripting, it's certainly useful. I wouldn't say it has "nothing to do with" it.
I really need to start learning that kind of stuff, but I am too impatient

Saga2001 02-22-2002 10:26 PM

Quote:

Originally posted by btedji
LOL hex has nothing to do with tiles in graal =D
hex can transfered into decimal...

Quote:

Originally posted by Aknts
No one post any scripts that will help people tile ther elevel faster.

More Newbies Making Servers

tru dat!

Quote:

Originally posted by Python523
Sure, go ahead, make an auto tiler and more editor NPCs, ruin the purpose for LATs existing :rolleyes:
It will just have more people using them to become a LAT on a server without doing anything but opening a crappy level

without doing so whats the fun in being a scripter?

zallus-k 02-23-2002 03:58 AM

I think you people are missing the point of the hex codes here. LOOK at the script and see that those tiles are listed. I think I've halfway figured it out, in that it counts downwards until 64 then loops, but I stil can't figure out the hex codes for some of the later grasss tiles. Oh well. :(

zallus-k 02-23-2002 07:52 AM

1 Attachment(s)
Hello. I have figured out the hex codes, and updated the script so now it puts down more of the misc. grass tiles, plus it randomly puts waves in the water. It's called "Ambience" by the way.

Slaktmaster 02-23-2002 09:12 AM

Quote:

Originally posted by Python523
Sure, go ahead, make an auto tiler and more editor NPCs, ruin the purpose for LATs existing :rolleyes:
It will just have more people using them to become a LAT on a server without doing anything but opening a crappy level

That would be useful, yes. Why have LATs when they aren't needed? Just for the hell of it?

zallus-k 02-24-2002 10:17 AM

I figured out the tile layering thing:

0xABC, where
A = Section, vertical, of 256 tiles in a 16x16 block dividing Pics1.png into 16 sections:
0 2 4 6 8 A C E
1 3 5 7 9 B D F
B = Y plane of each array from A.
C = X plane of each array from A.

Also, I have added random tree placing, but I'm not giving that out, as it took too long. Anyway, I'm posting an image of what the script does to an empty level:

http://img.z0.ca/gfx/Ambience.png

la_builder 02-24-2002 08:07 PM

nice bud somehow the script wont work with me:confused:

zallus-k 02-25-2002 08:50 AM

So did you put it in your 'npcs' folder? And to use it, just select it from the editor NPCs and left click once on the map.

nyghtGT 02-25-2002 10:49 AM

Quote:

Originally posted by Python523
Sure, go ahead, make an auto tiler and more editor NPCs, ruin the purpose for LATs existing :rolleyes:
It will just have more people using them to become a LAT on a server without doing anything but opening a crappy level

no one would hire me anywhere, :(


All times are GMT +2. The time now is 01:21 PM.

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