Graal Forums  

Go Back   Graal Forums > Development Forums > Future Improvements
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 01-25-2002, 06:55 AM
Frolic_RC2 Frolic_RC2 is offline
Banned
Join Date: Jan 2002
Posts: 960
Frolic_RC2 is on a distinguished road
Offline NPC placing..permanant stuff...

Ok, I know there are things such as putNPC, but what if you want to place a treetop NPC on every treetop, for layering? You have to do it all manually....

Why not makea thing just like that sandpath, where it goes through the whole level checking for treetops, and places them...just a putNPC thing just like this offline editorcontrol scripts...

Just a suggestion I think is needed....
Reply With Quote
  #2  
Old 01-25-2002, 08: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
its possible with scripting

lets see, this would take some time to do, but hey

NPC Code:

// NPC made by screen_name
if (created) {
this.x=0;
this.y=0;
timeout=.05; }
if (timeout) {
if (this.x<64) {
if (tiles[this.x,this.y]==9) {
putnpc treeimage,text,this.x-1,this.y; }
this.x++; } else if (this.x==64) {
if (tiles[this.x,this.y]==9) {
putnpc treeimage,text,this.x-1,this.y; }
this.y++;
this.x=0; }
timeout=.05; }


this would test for the tile of the top corner or a tree and put the tree top image on the one to the left of it

this would take some time though :S
__________________
Staff on Renegade


email: [email protected]
aim: papivicente
Reply With Quote
  #3  
Old 01-25-2002, 08:29 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
here is a little bit faster script

NPC Code:

// NPC made by screen_name

if (created) {
this.x=0;
this.y=0;
timeout=.05; }

if (timeout) {
if (this.x<64) {
for (i=0; i<=3; i++) {
if (tiles[this.x+i,this.y]==9) {
putnpc treeimage,textfile,this.x-1+i,this.y; } }
for (i=0; i<=3; i++) {
if (tiles[this.x+i,this.y+1]==9) {
putnpc treeimage,textfile,this.x-1+i,this.y+1; } }
for (i=0; i<=3; i++) {
if (tiles[this.x+i,this.y+2]==9) {
putnpc treeimage,textfile,this.x-1+i,this.y+2; } }
for (i=0; i<=3; i++) {
if (tiles[this.x+i,this.y+3]==9) {
putnpc treeimage,textfile,this.x-1+i,this.y+3; } }
this.x+=4; } else if (this.x==64) {
this.y+=4;
this.x=0; }
timeout=.05; }

__________________
Staff on Renegade


email: [email protected]
aim: papivicente
Reply With Quote
  #4  
Old 01-25-2002, 08:29 AM
Frolic_RC2 Frolic_RC2 is offline
Banned
Join Date: Jan 2002
Posts: 960
Frolic_RC2 is on a distinguished road
ok genius thank you. Thats not what I want, for a few reasons:

1) Has already scripted a superior script with showimg
2) Only works for the level you are in making it useless when connecting levels
3) Put NPC is laggy
4) I didn't want a script like that, I wanted something like the sandNPC thing...a future improvement for support of NPCs.
Reply With Quote
  #5  
Old 01-25-2002, 08:34 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
well, yeah, i just thought about the showimg
and i didnt think about connecting levels either

i havent even tried the sand npc thingy, so i dont know what you are talking about
__________________
Staff on Renegade


email: [email protected]
aim: papivicente
Reply With Quote
  #6  
Old 01-25-2002, 11:31 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
screen_name is far below soul blade in skills (and a good distance from me too)
Reply With Quote
  #7  
Old 01-25-2002, 12:15 PM
BocoC BocoC is offline
Registered User
BocoC's Avatar
Join Date: Jun 2001
Location: Washington State, USA
Posts: 980
BocoC is on a distinguished road
Send a message via AIM to BocoC Send a message via Yahoo to BocoC
Hmm. Maybe if I study the sand path NPC and the Graal2002 NPC, I can whip one up.
__________________
-Boco

FLKJH$TRFG*$(&%>FMG >REN<>F ;.kjsd
Reply With Quote
  #8  
Old 01-25-2002, 02:42 PM
Frolic_RC2 Frolic_RC2 is offline
Banned
Join Date: Jan 2002
Posts: 960
Frolic_RC2 is on a distinguished road
Quote:
Originally posted by BocoC
Hmm. Maybe if I study the sand path NPC and the Graal2002 NPC, I can whip one up.
BoCo, its currently impossible...so says Stefan. This is a future improvement suggestion
Reply With Quote
  #9  
Old 01-27-2002, 12:40 PM
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 Frolic_RC2


BoCo, its currently impossible...so says Stefan. This is a future improvement suggestion
e

editor NPCs can only do board modifications
Reply With Quote
  #10  
Old 01-28-2002, 08:51 PM
Frolic_RC2 Frolic_RC2 is offline
Banned
Join Date: Jan 2002
Posts: 960
Frolic_RC2 is on a distinguished road
Quote:
Originally posted by Faheria_GP2
e

editor NPCs can only do board modifications
Yup, I'm hoping Stefan will add NPCs to that. Then I will be happy.
Reply With Quote
  #11  
Old 01-29-2002, 01:56 AM
konidias konidias is offline
Old Bee
konidias's Avatar
Join Date: Jul 2001
Location: Orlando, FL
Posts: 7,222
konidias will become famous soon enough
Send a message via AIM to konidias
I thought Stefan said in one of his posts that it's possible to add npcs to it..

How would it be done with the generator thing anyway.. that's for mouse clicks and such.. isn't it just easier to make an npc that does showimg wherever tree tiles are?
__________________

Put this image in your sig if you support Bomy Island! (g2k1 revision)
play bomberman while you wait!


Reply With Quote
  #12  
Old 01-29-2002, 09:11 AM
Frolic_RC2 Frolic_RC2 is offline
Banned
Join Date: Jan 2002
Posts: 960
Frolic_RC2 is on a distinguished road
Quote:
Originally posted by konidias
I thought Stefan said in one of his posts that it's possible to add npcs to it..

How would it be done with the generator thing anyway.. that's for mouse clicks and such.. isn't it just easier to make an npc that does showimg wherever tree tiles are?
Not showimg, putnpc.

I did one with showimg, but you need to remember that is only for the current level...which in other words will cause it to vanish when you switch levels. Well, not if you update the board whereever there is tree tiles then showimg to create a layering effect, but I want to add random treetops, and that would look weird if I did it with showimg (the trees would change every time I changed levels).

Oh and Konidias...bleh...here is a helpful hint.

The editor NPC doesn't only detect key clicks, it works just like a normal NPC. Which means many things, but you can figure that out for yourself...
Reply With Quote
  #13  
Old 01-30-2002, 04:54 AM
konidias konidias is offline
Old Bee
konidias's Avatar
Join Date: Jul 2001
Location: Orlando, FL
Posts: 7,222
konidias will become famous soon enough
Send a message via AIM to konidias
Oh I understand.. then Stefan just needs to make it so that showimg information is stored on the 8 surrounding levels of the level you're in.. so that all the showimg's from those levels appear there if you have been on the level.
__________________

Put this image in your sig if you support Bomy Island! (g2k1 revision)
play bomberman while you wait!


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 09:32 PM.


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