PDA

View Full Version : NPC Level Generator


Wing
10-03-2001, 04:15 AM
Make an NPC that can generate levels, and you can add things like "addobject x8 y8 table"

that would be neat.

ZORG1986
10-03-2001, 04:20 AM
how exactly would taht work???

entravial
10-03-2001, 04:40 AM
~AlphaFlame~

... and just why do you need an NPC to make levels for you? You have the level generator, you have the level editor... why oh why do you need an NPC... sheesh... lazy people...

Oh, and they have something similar that's a command called PUTOBJECT...

btedji
10-03-2001, 04:46 AM
thats what that new level type is for, its described in the newfeatures2001.txt file somewhere

Lionel-Jonson
10-03-2001, 05:50 AM
clownjet wing

Poogle
10-03-2001, 08:57 AM
Originally posted by Wing
Make an NPC that can generate levels, and you can add things like "addobject x8 y8 table"

that would be neat. There is one!

Darkspector
10-04-2001, 04:00 AM
I made an npoc that when you said somthiong like laytable a table would apear above you

Lionel-Jonson
10-04-2001, 05:49 AM
Originally posted by Darkspector
I made an npoc that when you said somthiong like laytable a table would apear above you

no you didn't.

spi
10-04-2001, 06:10 AM
Originally posted by Lionel-Jonson


no you didn't.

Kaimetsu
10-04-2001, 05:38 PM
It's a pretty easy script. I made one that maintained object lists, moved them, deleted them, added them etc but it was pretty useless.

Thak2
10-04-2001, 05:55 PM
Originally posted by entravial
~AlphaFlame~

... and just why do you need an NPC to make levels for you? You have the level generator, you have the level editor... why oh why do you need an NPC... sheesh... lazy people...

Oh, and they have something similar that's a command called PUTOBJECT...

putobject won't work online.

Sep3kP2P
10-04-2001, 10:43 PM
my friend is working on something that pretty much does that.

Wing
10-05-2001, 08:15 AM
No no, I mean generate it in the game, like you use an npc and it generates a new level and stuff

Sep3kP2P
10-05-2001, 08:36 AM
yes u can, dl this... kai made it, run bedintro.graal, very good scripting if i may say so...

Wing
10-05-2001, 08:51 AM
Originally posted by Sep3kP2P
yes u can, dl this... kai made it, run bedintro.graal, very good scripting if i may say so...

I'm not talking about tiles!!! I'M TALKING ABOUT AN NPC GENERATING A .GRAAL LEVEL, MAKING A NEW ONE,

Kaimetsu
10-05-2001, 05:33 PM
Originally posted by Wing


I'm not talking about tiles!!! I'M TALKING ABOUT AN NPC GENERATING A .GRAAL LEVEL, MAKING A NEW ONE,

You can't edit files in GScript, dude.

Sep3kP2P
10-05-2001, 10:37 PM
you cant do that no, but you can edit tiles, but if you updated the level, all changes would be lost...

Wing
10-06-2001, 06:43 AM
Originally posted by Kaimetsu


You can't edit files in GScript, dude.

Exactly, wouldnt it be neat to add support for it?

Kaimetsu
10-06-2001, 11:06 PM
Originally posted by Wing


Exactly, wouldnt it be neat to add support for it?

Yeah, and then scripters could become hackers.

JeffTL
10-06-2001, 11:42 PM
a lot of putnpcs on a black level would work.

Sep3kP2P
10-07-2001, 01:09 AM
1. that would lag bad
2. u wouldnt b able to walk anywhere

JeffTL
10-07-2001, 06:23 AM
It'd lag, yes, but dontblock and drawunderplayer would make it feel like a tile...just have a walkable bg

Falcor
10-07-2001, 08:12 AM
Would be cool

Timec onsuming though if where talking about NW files and there nice lil Shiz.. This is a good example of what that script command would look like...

createlevel new_level.nw,{
GLEVNW01
BOARD 0 0 64 0 gJgKgJgKgJgKgJgKgJgKgJgKgJgKIdgJgKIdIdgJgKIdIdgJgK gZgagJgKIdIdgJgKgZgaIdIdgJgKgJgKIdIdIdgJgKIdIdIdgJ gKIdgJgKIdgJgKIdIdgJgKgJgKId
BOARD 0 1 64 0 gZgJgKgagZgagZgJgKgagZgagZgJgKgZgagJgKgZgagJgKgZgJ gKgqgZgagJgKgZgagpgqgJgKgZgagZgJgKIdgJgKgagJgKIdgZ gJgKgZgaIdgZgaIdIdgZgagZgaId
BOARD 0 2 64 0 gpgZgagJgKgJgKgZgagqgpgJgKgZgagJgKgZgagpgJgKgagJgK gagJgKgJgKgagJgKgJgKgZgagJgKgpgZgagJgKgJgKgZgagJgK gZgJgKgJgKgpgqgJgJgKgKgpgqgJ
BOARD 0 3 64 0 gJgKgKgZgagZgagpgqNFNFgZgagpgqgZgagpgJgKgZgagqgZga gqgZgagZgagqgZgagZgagpgqgZgagJgKgqgZgagZgagpgqgZga gpgZgagZgagJgKgZgZgagagJgKgZ
BOARD 0 4 64 0 gZgagagpgqgpgqNFNFNFNFgpgqNFNFgpgqNFgZgagpgqNFgpgq NFgpgqgpgqNFgpgqgpgqNFNFgpgqgZgaNFgpgqgpgqNFNFgpgq NFgpgqgpgqgZgagpgpgqgqgZgagp
BOARD 0 5 64 0 gJgKgqNFNFNFNFNFNFNFNFNFNFNFNFNFNFNFgpgqNFNFNFNFNF NFNFNFNFNFNFNFNFNFNFNFNFNFNFgpgqNFNFNFNFNFNFNFNFNF NFNFNFNFNFgpgqNFNFNFgJgKgJgK
ect ect ect.
NPC light2.png -4 60
if (created) {
setcoloreffect .5,1,0,0.99;
setzoomeffect 2;
dontblock;
drawaslight;
}
NPCEND
};

(some source taken from a level I made)

Lots of script. Acually now that i think of it you can just make the level in the Level Editor and copy the source from Notepad

Not a bad idea. An NPC creating new levels.
Could be used fro timed events. Maybe overwrite a lvl with a newer one. such as a town being build. Lots of posibilities. But then again. Lots of disadvantages... Couldnt be used on non-p2p becuase hackers could overwrite exsisteing levels with blank ones. @.o On p2p however this could be a Server-Side operation.

Falcor
10-07-2001, 08:15 AM
And then we would need another serverside command..

updatelevel;

and/or

udatelevel2 level;

Wich i might add is probably giving scripters TOO much freedom.

SagaTCN
10-07-2001, 11:31 AM
I r use script to play king.


change peoples names with npc is fun.
and thier heads and stuff like that


and warin them around and all that junk

and changing the level tiles

that's so ez to do.