Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Help me with a map problem please (https://forums.graalonline.com/forums/showthread.php?t=10403)

08-26-2001 03:20 AM

Help me with a map problem please
 
I want to know how to make a map excactly...yes i know its been asked before but I just don't understand how to make a png file...
i mean do you have to draw it all by yourself or have a special way for it...?
please help me out

AlexH 08-26-2001 03:56 AM

ok its pretty simple
this is the way i done mine

ok make a backup of bigmap.txt
and make your own txt file for your map like

"level1.graal","level2.graal"
"level3.graal","level4.graal"

then save it in the map as bigmap.txt
then create a lvl called onlinestartlocal.graal
and put this npc in it

if (playerenters) {
setmap map.png,bigmap.txt,playerx,playery;
}

then close down the NPC windows and hit M
then it should cycle through all of the levels and it will make your map

08-26-2001 03:58 AM

so just map.png?
ok thnx, I needed to know that

AlexH 08-26-2001 04:00 AM

yep
thats all
and it should work
and to make the mini map just resize the map it makes

08-26-2001 04:00 AM

it doesn't work :(

08-26-2001 04:01 AM

this is what I've done:

if (playerenters) {
setminimap map.png,miniyakuziamap.txt,playerx,playery;
setmap map.png,miniyakuziamap.txt,playerx,playery;
}

AlexH 08-26-2001 04:01 AM

aww
it should work
you make the txt thing right

AlexH 08-26-2001 04:03 AM

o i know
try puttin the bigmap.txt in your lvls folder
then if it doesnt work
i have no idea why its not workin

Lyndzey 08-26-2001 05:25 AM

First name it
setmap mapname.gif, then play it for 3 seconds, then do it. It should work, then change it to .png

AlexH 08-26-2001 05:35 AM

i got told pngs dont work offline but ive neva tried them for a map
i usually make my map a gif

08-26-2001 05:57 AM

...
all I get is a little head in the downleft corner which doesn't move...
:(
and I just need to know how to make a map (not the text but the graphic)
I mean do i have to draw one myself with paint or something? Or does graal make the map by itself by just reading the txt file and the levels in it and so makes a img for it....???

08-26-2001 06:03 AM

Quote:

Originally posted by Lyndzey
First name it
setmap mapname.gif, then play it for 3 seconds, then do it. It should work, then change it to .png

thats what I don't understand Lyndzey...how do I make a graphic for the map???????
setmap imgname and stuff I understand, but I dunno how to make the image for it

ownerofbabylon 08-26-2001 06:43 AM

Quote:

Originally posted by AlexH
i got told pngs dont work offline but ive neva tried them for a map
i usually make my map a gif

Yea only gifs work offline

08-26-2001 06:54 AM

Quote:

Originally posted by ownerofbabylon


Yea only gifs work offline

that's all nice and stuff, but I just need to know how to make an image file for the map...
please help me out, how do I make a image for the map?!?!?!?!

08-26-2001 08:55 PM

nobody????

mhermher 08-26-2001 09:17 PM

This is how i did:


create a txt called yakozosmap.txt or whatever
then open it and put all your levels in it like this



"level1.graal","","","level3.graal","",""
"","","","level4.graal","",""

or how your server is like

each "" is for 1 level so you have to do like this sometimes


"","","","",""...

yeah then when you made the txt done open a lvl and put this in a NPC:


if (playerenters) {
setmap bravomap.png,playerx,playery;
}

then play the game with that map then go to editor agin and press M then it will ask you to continiu cuz it will load the levels and you press yes then you wait like 5 min and get the map, then you open a program like photoshop then you open the map file and save it as a gif then you take it to your graal directory and there you draw the image to the file called "mng2gif.exe" or what its called then you get a copy of your map but in PNG then you go to that level where you scripted, in there change "bravomap.png" aginst "yourmapfile.png" and woilla it works

;)

Metal-Slug 08-26-2001 09:34 PM

Quote:

Originally posted by mhermher
This is how i did:


create a txt called yakozosmap.txt or whatever
then open it and put all your levels in it like this



"level1.graal","","","level3.graal","",""
"","","","level4.graal","",""

or how your server is like

each "" is for 1 level so you have to do like this sometimes


"","","","",""...

yeah then when you made the txt done open a lvl and put this in a NPC:


if (playerenters) {
setmap bravomap.png,playerx,playery;
}

then play the game with that map then go to editor agin and press M then it will ask you to continiu cuz it will load the levels and you press yes then you wait like 5 min and get the map, then you open a program like photoshop then you open the map file and save it as a gif then you take it to your graal directory and there you draw the image to the file called "mng2gif.exe" or what its called then you get a copy of your map but in PNG then you go to that level where you scripted, in there change "bravomap.png" aginst "yourmapfile.png" and woilla it works

;)

thats good, but, if you used level generator, the txt file is made, so, open up the a-1 level and make an npc in it is
NPC Code:

if (playerenters) {
setmap graalmap.png,bigmap.txt,x,y;


then press "m" key, save the file, then change that npc to graalmap.gif, open up the png, save it as gif, then gointo the npc, press "m" again, and viola, you got yourself a map

mhermher 08-26-2001 10:39 PM

i dont use lvl generator

08-27-2001 06:00 AM

very nice, and thnx i needed to know the "m" part
and now I need to know how to make a bigmap, i got the little one but when I press m I get excactly the same one and its the same size (small)
so how do I make it bigger?


All times are GMT +2. The time now is 10:00 PM.

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