Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   easy question for some! (https://forums.graalonline.com/forums/showthread.php?t=15097)

aesquivel 10-21-2001 08:33 AM

easy question for some!
 
how do you make a graal map with out use the level generator (your own levels) :confused:

TDO2000 10-21-2001 08:41 AM

hmmm ok

first do a text with the level in the correct order
ok for example your levels are like this

level1.graal empty level2.graal empty level3.graal
level4.graal level5 level6 level7 level8

so u have to make a txt with this in it

"level1.graal","","level2.graal","",level3.gra al";
"level4.graal","level5.graal","level6.graal","leve l7.graal","level8.graal"

(for an empty space just use " ")
save it in the graal-folder as quivelmap.txt ;)

so next step
go into one of the levels u want the map for and add a NPC with this.script:
if(playerenters){
setmap graalmap.png,quivelmap.txt,0,61;
}
click test and start the level
the back into graal edit and press m
if u made everything right now u will see all the levels for a very short moment and the graal will ask u for a filename save it as quivelmap.png
so back to the npc in the level change it's code to:

if(playerenters){
setmap quivelmap.png,quivelmap.txt,0,61;
}

and now your map should work...

aesquivel 10-21-2001 08:51 AM

oaky thanx xuz i have heard a ton of different ways and NONE of them have werked lets c if this 1 does ;)

aesquivel 10-21-2001 09:00 AM

damn damn damn damn damn still couldnt get it ta werk :(

TDO2000 10-21-2001 09:07 AM

so hm
1. is the txt-file ok?
2. what happenden after u startet the level with the setmap NPC and pressed m after it?

wait a moment oh i made an ; at the last line of my txt example
normally it should be

"level","level","level"
"level","level","level"

;)

aesquivel 10-21-2001 12:04 PM

1 Attachment(s)
i have the txt file right i think im puting it in the post and when i pressed "M" it didnt go through the levels :(
and this is what my map looks like[IMG]C:\!Adam's Stuff\!Graal\Graal2001\Adamslvs\Cody's Arlia Levels\arliamap.png[/IMG]

TDO2000 10-21-2001 04:29 PM

added the npc with your txt-file and started the level?

nyghtGT 10-21-2001 04:40 PM

Quote:

Originally posted by aesquivel
i have the txt file right i think im puting it in the post and when i pressed "M" it didnt go through the levels :(
and this is what my map looks like[IMG]C:\!Adam's Stuff\!Graal\Graal2001\Adamslvs\Cody's Arlia Levels\arliamap.png[/IMG]

make sure you get the allignment right ....
for instance:

"","central.graal",""
"south-west.graal","south-central.graal","south-east.graal"
"","","south-east2.graal"

the levels would be linked like this:
central.graal
|
south-west.graal ---- south-central.graal ---- south-east.graal
| | |
no level no level south-east2.graal

aesquivel 10-21-2001 11:35 PM

well i have the levels in graal in order from top left to bottom right
Ex.

16 15 14 13
12 11 10 9
8 7 6 5
4 3 2 1

thats the way the levels are linked in graal sot hats the way i put them in the txt file is that right?

TDO2000 10-21-2001 11:41 PM

soooo ok

I told u to add an npc with the setmap-command using your txt
The u have to start this level (play in it!!!) that the script can work. after this u go back into the editor and press m!! (so u assagined the txt-file to the actual map and graal knows in whick order it has to open the levels)

aesquivel 10-22-2001 06:58 AM

okay im kinda confused could you tell me it step by step starting from the begining plz :)

Lomgren 10-22-2001 09:04 AM

From what I understand, this is how you are supposed to make a map.
1. backup your copy of bigmap.txt (maybe call it bigmapspare.txt or something like that), and then change it by putting your level names in it, and make sure it is saved as bigmap.txt
2. open graal, and press M while you are in the editor. This should cause each of your levels to show briefly as it is added to the map. Save the map as whatever you want, and then open it to make sure it worked.
3. If it worked, you now have a 24 bit png map. You need to change it to an 8 bit png (since gifs are no longer used) so you can use it in graal. Use some sort of graphics editor to change it.
4. go back and replace the bigmap.txt with the proper version, since you have finished the map.

hopefully this should work.

aesquivel 10-22-2001 11:20 AM

nope still cant get it ta werk :( this is very depressing

royce 10-22-2001 11:23 AM

Quote:

[I]Originally posted by TDO2000:[I]
soooo ok

I told u to add an npc with the setmap-command using your txt
The u have to start this level (play in it!!!) that the script can work. after this u go back into the editor and press m!! (so u assagined the txt-file to the actual map and graal knows in whick order it has to open the levels)

you not only have to add that script into a level but into the text file of your map?? i'm confused:confused: :confused:

aesquivel 10-22-2001 11:37 AM

Ahhhhhhhhhhhhhhhhhh

im going ta go crazy tring to figure this out :confused:


gaa my head hurts :(

TDO2000 10-22-2001 09:18 PM

Ok the last step by step wasn't right ok I'll try it

1. Make your txt file and save it in your Graal folder
2. start Graal and add an NPC with

if(playerenters){
setmap graalmap.png,yourtxtfile,0,61;
}
3. RUN THE LEVEL!!!! (So u can WALK inside it)
4. Back into the Editor an Press M, now u should see your levels very short
5. save it as an png and change it from 24 bit to 8 bit
6. change the NPC to
if(playerenters){
setmap yourpng,yourtxt,0,61;
}


and do it step by step ;D

aesquivel 10-23-2001 01:03 AM

unfortinatly it didnt werk is there any 1 that has actually made a map before thats who i really need:eek:

btedji 10-23-2001 03:19 AM

Quote:

Originally posted by aesquivel
unfortinatly it didnt werk is there any 1 that has actually made a map before thats who i really need:eek:
your gonna need to learn some time :D

TDO2000 10-23-2001 06:09 AM

And made many maps that way and they all worked :D

aesquivel 10-23-2001 08:29 AM

well i dont see what im doing wrong :( well maybe what could i use to convert the image to 8 bit from 24 bit i use imago web what do you use

TDO2000 10-23-2001 08:31 AM

Paintshop Pro 7.02 :)

aesquivel 10-23-2001 08:34 AM

how or where could i get it?


All times are GMT +2. The time now is 04:48 PM.

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