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 02-21-2002, 07:35 AM
zallus-k zallus-k is offline
Registered User
Join Date: Sep 2001
Location: AC0265, Zaroke
Posts: 122
zallus-k is on a distinguished road
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?
__________________

Solemn Destiny - Owner
Reply With Quote
  #2  
Old 02-21-2002, 07:46 AM
neomaximus2k neomaximus2k is offline
Registered User
Join Date: Feb 2002
Location: UK
Posts: 324
neomaximus2k is on a distinguished road
Send a message via ICQ to neomaximus2k
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
__________________
Beware of thy Inner self
NPC Code:

_.,.__
((o\\o\))
.-. ` \\``
__( )___.o"".,___
=== ~~~~~~~~
==
= Neo

Reply With Quote
  #3  
Old 02-21-2002, 08:25 AM
Kagero Kagero is offline
Registered User
Join Date: Dec 2001
Posts: 159
Kagero is on a distinguished road
Send a message via AIM to Kagero
Murasamune made one of those...

Posted by Cyanide SR71
__________________
Account now used by: Cyanide SR71
Reply With Quote
  #4  
Old 02-21-2002, 11:09 AM
TDK_RC6 TDK_RC6 is offline
Registered User
TDK_RC6's Avatar
Join Date: Jan 2002
Location: Earth
Posts: 0
TDK_RC6 is on a distinguished road
that would be cool and easy to make :P
__________________
Staff on Renegade


email: [email protected]
aim: papivicente
Reply With Quote
  #5  
Old 02-21-2002, 07:28 PM
Spanko Spanko is offline
Squeaker of Soles
Spanko's Avatar
Join Date: Nov 2001
Location: The Netherworl...lands
Posts: 1,366
Spanko is on a distinguished road
Send a message via ICQ to Spanko Send a message via AIM to Spanko Send a message via Yahoo to Spanko
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.
__________________

ICQ: 125283920
MSN: [email protected]
AIM: Squeax0r
Squeaker seems unable to access the forum using this account.. tis a sad day.
Now with occasional Asuka flavour! Ooops a bit too much...
Asuka should be king of Dustari!

"Y'know, some days even my lucky rocketship underpants don't even help."
Reply With Quote
  #6  
Old 02-21-2002, 08:35 PM
btedji btedji is offline
bryan986
btedji's Avatar
Join Date: Apr 2001
Location: Force 10
Posts: 1,153
btedji is on a distinguished road
Send a message via ICQ to btedji Send a message via AIM to btedji Send a message via Yahoo to btedji
I WAS thinking about making one, but since it is already made I'll just get it from someone
Reply With Quote
  #7  
Old 02-21-2002, 10:08 PM
TDK_RC6 TDK_RC6 is offline
Registered User
TDK_RC6's Avatar
Join Date: Jan 2002
Location: Earth
Posts: 0
TDK_RC6 is on a distinguished road
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
__________________
Staff on Renegade


email: [email protected]
aim: papivicente
Reply With Quote
  #8  
Old 02-21-2002, 11:16 PM
Saga2001 Saga2001 is offline
Wishing he had 3 feet
Join Date: Aug 2001
Location: Basement
Posts: 1,565
Saga2001 is on a distinguished road
Send a message via ICQ to Saga2001 Send a message via AIM to Saga2001 Send a message via Yahoo to 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...
__________________

!Wan ( 11:27:55 AM):
can i c ur scripts please?
Zorg (RC): If I hear NPC Server call Ne0, Past Austin or Brent sexy one more time im disconnecting it
Reply With Quote
  #9  
Old 02-22-2002, 12:03 AM
neomaximus2k neomaximus2k is offline
Registered User
Join Date: Feb 2002
Location: UK
Posts: 324
neomaximus2k is on a distinguished road
Send a message via ICQ to neomaximus2k
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?
__________________
Beware of thy Inner self
NPC Code:

_.,.__
((o\\o\))
.-. ` \\``
__( )___.o"".,___
=== ~~~~~~~~
==
= Neo

Reply With Quote
  #10  
Old 02-22-2002, 12:38 AM
NeoNPL NeoNPL is offline
HONEY IM HOME!
NeoNPL's Avatar
Join Date: Jun 2001
Location: Mianus
Posts: 1,361
NeoNPL is on a distinguished road
Send a message via Yahoo to NeoNPL
Yes, please do share with the less enlightend of us
Reply With Quote
  #11  
Old 02-22-2002, 12:39 AM
Saga2001 Saga2001 is offline
Wishing he had 3 feet
Join Date: Aug 2001
Location: Basement
Posts: 1,565
Saga2001 is on a distinguished road
Send a message via ICQ to Saga2001 Send a message via AIM to Saga2001 Send a message via Yahoo to Saga2001
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.
__________________

!Wan ( 11:27:55 AM):
can i c ur scripts please?
Zorg (RC): If I hear NPC Server call Ne0, Past Austin or Brent sexy one more time im disconnecting it
Reply With Quote
  #12  
Old 02-22-2002, 12:44 AM
Saga2001 Saga2001 is offline
Wishing he had 3 feet
Join Date: Aug 2001
Location: Basement
Posts: 1,565
Saga2001 is on a distinguished road
Send a message via ICQ to Saga2001 Send a message via AIM to Saga2001 Send a message via Yahoo to Saga2001
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.
__________________

!Wan ( 11:27:55 AM):
can i c ur scripts please?
Zorg (RC): If I hear NPC Server call Ne0, Past Austin or Brent sexy one more time im disconnecting it
Reply With Quote
  #13  
Old 02-22-2002, 12:45 AM
AlexH AlexH is offline
Have A Drink On Me
AlexH's Avatar
Join Date: Jun 2001
Location: Somewhere In Time
Posts: 7,442
AlexH is on a distinguished road
Send a message via AIM to AlexH Send a message via MSN to 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.
__________________
QUICK LOOK BUSY JESUS IS COMING!
Reply With Quote
  #14  
Old 02-22-2002, 12:46 AM
Saga2001 Saga2001 is offline
Wishing he had 3 feet
Join Date: Aug 2001
Location: Basement
Posts: 1,565
Saga2001 is on a distinguished road
Send a message via ICQ to Saga2001 Send a message via AIM to Saga2001 Send a message via Yahoo to Saga2001
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.
__________________

!Wan ( 11:27:55 AM):
can i c ur scripts please?
Zorg (RC): If I hear NPC Server call Ne0, Past Austin or Brent sexy one more time im disconnecting it
Reply With Quote
  #15  
Old 02-22-2002, 12:47 AM
NeoNPL NeoNPL is offline
HONEY IM HOME!
NeoNPL's Avatar
Join Date: Jun 2001
Location: Mianus
Posts: 1,361
NeoNPL is on a distinguished road
Send a message via Yahoo to NeoNPL
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
Reply With Quote
  #16  
Old 02-22-2002, 12:51 AM
AlexH AlexH is offline
Have A Drink On Me
AlexH's Avatar
Join Date: Jun 2001
Location: Somewhere In Time
Posts: 7,442
AlexH is on a distinguished road
Send a message via AIM to AlexH Send a message via MSN to AlexH
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?
__________________
QUICK LOOK BUSY JESUS IS COMING!
Reply With Quote
  #17  
Old 02-22-2002, 12:52 AM
Saga2001 Saga2001 is offline
Wishing he had 3 feet
Join Date: Aug 2001
Location: Basement
Posts: 1,565
Saga2001 is on a distinguished road
Send a message via ICQ to Saga2001 Send a message via AIM to Saga2001 Send a message via Yahoo to Saga2001
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?
__________________

!Wan ( 11:27:55 AM):
can i c ur scripts please?
Zorg (RC): If I hear NPC Server call Ne0, Past Austin or Brent sexy one more time im disconnecting it
Reply With Quote
  #18  
Old 02-22-2002, 01:04 AM
AlexH AlexH is offline
Have A Drink On Me
AlexH's Avatar
Join Date: Jun 2001
Location: Somewhere In Time
Posts: 7,442
AlexH is on a distinguished road
Send a message via AIM to AlexH Send a message via MSN to AlexH
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.
__________________
QUICK LOOK BUSY JESUS IS COMING!
Reply With Quote
  #19  
Old 02-22-2002, 01:51 AM
Falcor Falcor is offline
Darth Cucumber
Falcor's Avatar
Join Date: Mar 2001
Location: At School
Posts: 2,874
Falcor is on a distinguished road
Send a message via ICQ to Falcor Send a message via AIM to Falcor Send a message via MSN to Falcor Send a message via Yahoo to Falcor
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.
__________________

subliminal message: 1+1=3
Reply With Quote
  #20  
Old 02-22-2002, 02:36 AM
dragoonvenganc dragoonvenganc is offline
Registered User
Join Date: Jul 2001
Location: USA
Posts: 331
dragoonvenganc is on a distinguished road
Send a message via ICQ to dragoonvenganc Send a message via AIM to dragoonvenganc
whats with the lvl thing on the left
__________________
Dragoon Vengance
Owner of Pangea Relics of Time
P2P Rp server
For info or job
Email: [email protected]
aim: dragoonvengnc
Reply With Quote
  #21  
Old 02-22-2002, 05:51 AM
Aknts Aknts is offline
Level Designer
Aknts's Avatar
Join Date: Apr 2001
Location: USofA
Posts: 3,340
Aknts will become famous soon enough
Send a message via AIM to Aknts
No one post any scripts that will help people tile ther elevel faster.

More Newbies Making Servers
__________________
Reply With Quote
  #22  
Old 02-22-2002, 06:48 AM
zallus-k zallus-k is offline
Registered User
Join Date: Sep 2001
Location: AC0265, Zaroke
Posts: 122
zallus-k is on a distinguished road
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.
__________________

Solemn Destiny - Owner
Reply With Quote
  #23  
Old 02-22-2002, 07:23 AM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
Sure, go ahead, make an auto tiler and more editor NPCs, ruin the purpose for LATs existing
It will just have more people using them to become a LAT on a server without doing anything but opening a crappy level
Reply With Quote
  #24  
Old 02-22-2002, 08:09 AM
Faheria_GP2 Faheria_GP2 is offline
Banned
Faheria_GP2's Avatar
Join Date: Oct 2001
Posts: 1,177
Faheria_GP2 is on a distinguished road
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
Reply With Quote
  #25  
Old 02-22-2002, 09:16 AM
zallus-k zallus-k is offline
Registered User
Join Date: Sep 2001
Location: AC0265, Zaroke
Posts: 122
zallus-k is on a distinguished road
I have hacked together a version from the sandpath script. Put it in your NPCs folder, and enjoy!

Just please don't mock how horrible this is.
Attached Files
File Type: txt editnpcrandgrass.txt (2.7 KB, 181 views)
__________________

Solemn Destiny - Owner
Reply With Quote
  #26  
Old 02-22-2002, 09:21 AM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
Quote:
Originally posted by zallus-k
I have hacked together a version from the sandpath script. Put it in your NPCs folder, and enjoy!

Just please don't mock how horrible this is.
How do you figure out the hex codes for tiles?
Reply With Quote
  #27  
Old 02-22-2002, 09:52 AM
zallus-k zallus-k is offline
Registered User
Join Date: Sep 2001
Location: AC0265, Zaroke
Posts: 122
zallus-k is on a distinguished road
I'm really trying to figure that out right now. Anyone know?
__________________

Solemn Destiny - Owner
Reply With Quote
  #28  
Old 02-22-2002, 10:20 AM
btedji btedji is offline
bryan986
btedji's Avatar
Join Date: Apr 2001
Location: Force 10
Posts: 1,153
btedji is on a distinguished road
Send a message via ICQ to btedji Send a message via AIM to btedji Send a message via Yahoo to btedji
LOL hex has nothing to do with tiles in graal =D
Reply With Quote
  #29  
Old 02-22-2002, 10:25 AM
Faheria_GP2 Faheria_GP2 is offline
Banned
Faheria_GP2's Avatar
Join Date: Oct 2001
Posts: 1,177
Faheria_GP2 is on a distinguished road
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
Reply With Quote
  #30  
Old 02-22-2002, 10:48 AM
Faheria_GP2 Faheria_GP2 is offline
Banned
Faheria_GP2's Avatar
Join Date: Oct 2001
Posts: 1,177
Faheria_GP2 is on a distinguished road
yes, especially how it is 0-15 and stuffs, but whatever
Reply With Quote
  #31  
Old 02-22-2002, 09:29 PM
btedji btedji is offline
bryan986
btedji's Avatar
Join Date: Apr 2001
Location: Force 10
Posts: 1,153
btedji is on a distinguished road
Send a message via ICQ to btedji Send a message via AIM to btedji Send a message via Yahoo to btedji
Quote:
Originally posted by Kaimetsu


I think that statement is questionable, when you consider how the tiles are numbered in pics.png.
Debatable
Reply With Quote
  #32  
Old 02-22-2002, 09:40 PM
btedji btedji is offline
bryan986
btedji's Avatar
Join Date: Apr 2001
Location: Force 10
Posts: 1,153
btedji is on a distinguished road
Send a message via ICQ to btedji Send a message via AIM to btedji Send a message via Yahoo to btedji
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
Reply With Quote
  #33  
Old 02-22-2002, 10:26 PM
Saga2001 Saga2001 is offline
Wishing he had 3 feet
Join Date: Aug 2001
Location: Basement
Posts: 1,565
Saga2001 is on a distinguished road
Send a message via ICQ to Saga2001 Send a message via AIM to Saga2001 Send a message via Yahoo to Saga2001
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
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?
__________________

!Wan ( 11:27:55 AM):
can i c ur scripts please?
Zorg (RC): If I hear NPC Server call Ne0, Past Austin or Brent sexy one more time im disconnecting it
Reply With Quote
  #34  
Old 02-23-2002, 03:58 AM
zallus-k zallus-k is offline
Registered User
Join Date: Sep 2001
Location: AC0265, Zaroke
Posts: 122
zallus-k is on a distinguished road
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.
__________________

Solemn Destiny - Owner
Reply With Quote
  #35  
Old 02-23-2002, 07:52 AM
zallus-k zallus-k is offline
Registered User
Join Date: Sep 2001
Location: AC0265, Zaroke
Posts: 122
zallus-k is on a distinguished road
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.
Attached Files
File Type: txt editnpcambience.txt (3.2 KB, 157 views)
__________________

Solemn Destiny - Owner
Reply With Quote
  #36  
Old 02-23-2002, 09:12 AM
Slaktmaster Slaktmaster is offline
man with the mastahplan
Slaktmaster's Avatar
Join Date: Apr 2001
Location: Half-way over the river styx
Posts: 4,422
Slaktmaster is an unknown quantity at this point
Send a message via ICQ to Slaktmaster Send a message via AIM to Slaktmaster
Quote:
Originally posted by Python523
Sure, go ahead, make an auto tiler and more editor NPCs, ruin the purpose for LATs existing
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?
Reply With Quote
  #37  
Old 02-24-2002, 10:17 AM
zallus-k zallus-k is offline
Registered User
Join Date: Sep 2001
Location: AC0265, Zaroke
Posts: 122
zallus-k is on a distinguished road
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:

__________________

Solemn Destiny - Owner
Reply With Quote
  #38  
Old 02-24-2002, 08:07 PM
la_builder la_builder is offline
Registered User
Join Date: Jan 2002
Location: Holland
Posts: 154
la_builder is on a distinguished road
nice bud somehow the script wont work with me
__________________
Dark Frontier
The enemy is surrounding us all,more evil than a human could ever imagine.

Dark Fontier Coming Soon
Reply With Quote
  #39  
Old 02-25-2002, 08:50 AM
zallus-k zallus-k is offline
Registered User
Join Date: Sep 2001
Location: AC0265, Zaroke
Posts: 122
zallus-k is on a distinguished road
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.
__________________

Solemn Destiny - Owner
Reply With Quote
  #40  
Old 02-25-2002, 10:49 AM
nyghtGT nyghtGT is offline
Banned
nyghtGT's Avatar
Join Date: Jun 2001
Posts: 3,993
nyghtGT is on a distinguished road
Send a message via AIM to nyghtGT
Quote:
Originally posted by Python523
Sure, go ahead, make an auto tiler and more editor NPCs, ruin the purpose for LATs existing
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,
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 12:31 AM.


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