Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   stupid map question (https://forums.graalonline.com/forums/showthread.php?t=38812)

darkriders_p2p 10-02-2002 03:25 AM

stupid map question
 
I want to make a map for my levels.
do I just enter:
NPC Code:
if (playerenters) {
setmap MAPNAME.txt,0,0;
}


and just walk through the levels?
Because that doesn't work

Torankusu 10-02-2002 03:27 AM

Re: stupid map question
 
Quote:

Originally posted by darkriders_p2p
I want to make a map for my levels.
do I just enter:
NPC Code:
if (playerenters) {
setmap MAPNAME.txt,0,0;
}


and just walk through the levels?
Because that doesn't work

NPC Code:

if (created){
setmap mapname.png,mapnametextfile.txt,60,30;
}


is what I use.
Of course, you need to have a text file with the levels listed specifically and stuff.

darkriders_p2p 10-02-2002 03:35 AM

Re: Re: stupid map question
 
Quote:

Originally posted by Torankusu
NPC Code:

if (created){
setmap mapname.png,mapnametextfile.txt,60,30;
}


is what I use.
Of course, you need to have a text file with the levels listed specifically and stuff.

the way I put it is SUPPOSED to add each level you go on to your map

Torankusu 10-02-2002 04:05 AM

Re: Re: Re: stupid map question
 
Quote:

Originally posted by darkriders_p2p

the way I put it is SUPPOSED to add each level you go on to your map

use test.
It might give you an error.

I don't see what's wrong with pressing M to generate it...

R0b1n-NPC 10-02-2002 06:19 AM

Re: Re: Re: stupid map question
 
Quote:

Originally posted by darkriders_p2p

the way I put it is SUPPOSED to add each level you go on to your map

Really? News to me.

R0b1n-NPC 10-02-2002 06:20 AM

Re: Re: Re: Re: stupid map question
 
Quote:

Originally posted by Torankusu
use test.
It might give you an error.

I don't see what's wrong with pressing M to generate it...

You need bigmap.txt with all the level names in it.

AlexH 10-02-2002 06:32 AM

The way Toran does it is much better.
It gives you the full map then you can also auto-map it when new stuff is added.

Torankusu 10-02-2002 07:36 AM

Re: Re: Re: Re: Re: stupid map question
 
Quote:

Originally posted by R0b1n-NPC


You need bigmap.txt with all the level names in it.

Which is what I included in the code I gave him...

Dach 10-02-2002 07:39 AM

You need to set an image and a levels' text file. Those dumb numbers don't seem to actually work, atleast not when I tried.

Do please try to name your txt file something other than bigmap.txt, I don't need 20 different text files of the same name on my computer...

screen_name 10-02-2002 01:17 PM

I use:

NPC Code:

setmap image.png,text.txt,playerx,playery;


MattMrHat 10-02-2002 01:50 PM

Just wondering, what do the numbers after setmap map.png,bigmap.txt, stand for? Are they positioning for something, and if so, what do they position and why? Also, I saw this script (not saying where) that makes the RC Icon on the minimap follow the player. How would a script like that be made?

emortylone 10-02-2002 10:46 PM

The position doesn't matter unless you're using minimap, in which case I use mapx and mapy. You need a .txt file containing "levelname" in a format.
---Shifter

Com013 10-03-2002 01:38 AM

The position is where the players' head apear when they are not on the map.
The unit is levels. (1,1) is the top-left corner of the level world-b_2.graal.

darkriders_p2p 10-03-2002 02:47 AM

map problem
 
I did what toran/robin said, to generate the map with M. (I think thats what I did last time, but I forget alot). But I have a small bug. The map comes up all "liney" and because of this it doesn't link the levels right

WanDaMan 10-03-2002 03:19 AM

o.O Maps are hard with linking etc

Dach 10-03-2002 07:54 AM

Re: map problem
 
Quote:

Originally posted by darkriders_p2p
I did what toran/robin said, to generate the map with M. (I think thats what I did last time, but I forget alot). But I have a small bug. The map comes up all "liney" and because of this it doesn't link the levels right
Most likely its not the image that's messing it up, since the image does not matter... Check to make sure that all the levels are linked correctly and that you set the map right. If the warps are messed up, it won't link right.

Com013 10-03-2002 10:45 AM

Could you post the map?

Torankusu 10-04-2002 12:16 AM

I had that problem on my other computer, but it was because I had Direct3D on (the lines on the maps and stuff). I don't have that problem on this computer, but I turned direct 3d off on my other computer.

If the links are screwed up, it's either:
A.) The Text File.
B.) The Level's links.

I generate most of my maps (just generate plain green levels to whatever size I want them and detail them then) and then make a map and stuff, etc. Hardly any problems.

darkriders_p2p 10-04-2002 02:23 AM

Ya I did some screwing around with my direct3d and it fixed, the driver was installed incorrectly.
But now levels that I add to my map add in random places on my map, not where they are supposed to be.

Com013 10-04-2002 04:16 AM

How's that possible?
If you'd have a map like this:
NPC Code:

"level_a-1.nw", "level_b-1.nw"
"level_a-2.nw", "level_b-2.nw"


and you'd like to add level_c-1.nw in the north-east, you'd write:
NPC Code:

"level_a-1.nw", "level_b-1.nw", "level_c-1.nw"
"level_a-2.nw", "level_b-2.nw", ""


Can't see a problem...


All times are GMT +2. The time now is 06:26 AM.

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