Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 10-21-2001, 08:33 AM
aesquivel aesquivel is offline
Registered User
Join Date: Sep 2001
Location: Whitewright
Posts: 346
aesquivel is on a distinguished road
Send a message via AIM to aesquivel
Exclamation easy question for some!

how do you make a graal map with out use the level generator (your own levels)
__________________
Reply With Quote
  #2  
Old 10-21-2001, 08:41 AM
TDO2000 TDO2000 is offline
Registered User
TDO2000's Avatar
Join Date: Jul 2001
Location: Germany
Posts: 655
TDO2000 is on a distinguished road
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...
__________________
No Webhost at the moment
Reply With Quote
  #3  
Old 10-21-2001, 08:51 AM
aesquivel aesquivel is offline
Registered User
Join Date: Sep 2001
Location: Whitewright
Posts: 346
aesquivel is on a distinguished road
Send a message via AIM to aesquivel
oaky thanx xuz i have heard a ton of different ways and NONE of them have werked lets c if this 1 does
__________________
Reply With Quote
  #4  
Old 10-21-2001, 09:00 AM
aesquivel aesquivel is offline
Registered User
Join Date: Sep 2001
Location: Whitewright
Posts: 346
aesquivel is on a distinguished road
Send a message via AIM to aesquivel
damn damn damn damn damn still couldnt get it ta werk
__________________
Reply With Quote
  #5  
Old 10-21-2001, 09:07 AM
TDO2000 TDO2000 is offline
Registered User
TDO2000's Avatar
Join Date: Jul 2001
Location: Germany
Posts: 655
TDO2000 is on a distinguished road
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"

__________________
No Webhost at the moment
Reply With Quote
  #6  
Old 10-21-2001, 12:04 PM
aesquivel aesquivel is offline
Registered User
Join Date: Sep 2001
Location: Whitewright
Posts: 346
aesquivel is on a distinguished road
Send a message via AIM to 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]
Attached Files
File Type: txt arliamap.txt (252 Bytes, 139 views)
__________________
Reply With Quote
  #7  
Old 10-21-2001, 04:29 PM
TDO2000 TDO2000 is offline
Registered User
TDO2000's Avatar
Join Date: Jul 2001
Location: Germany
Posts: 655
TDO2000 is on a distinguished road
added the npc with your txt-file and started the level?
__________________
No Webhost at the moment
Reply With Quote
  #8  
Old 10-21-2001, 04:40 PM
nyghtGT nyghtGT is offline
Banned
nyghtGT's Avatar
Join Date: Jun 2001
Posts: 3,993
nyghtGT is on a distinguished road
Send a message via AIM to nyghtGT
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
Reply With Quote
  #9  
Old 10-21-2001, 11:35 PM
aesquivel aesquivel is offline
Registered User
Join Date: Sep 2001
Location: Whitewright
Posts: 346
aesquivel is on a distinguished road
Send a message via AIM to aesquivel
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?
__________________
Reply With Quote
  #10  
Old 10-21-2001, 11:41 PM
TDO2000 TDO2000 is offline
Registered User
TDO2000's Avatar
Join Date: Jul 2001
Location: Germany
Posts: 655
TDO2000 is on a distinguished road
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)
__________________
No Webhost at the moment
Reply With Quote
  #11  
Old 10-22-2001, 06:58 AM
aesquivel aesquivel is offline
Registered User
Join Date: Sep 2001
Location: Whitewright
Posts: 346
aesquivel is on a distinguished road
Send a message via AIM to aesquivel
okay im kinda confused could you tell me it step by step starting from the begining plz
__________________
Reply With Quote
  #12  
Old 10-22-2001, 09:04 AM
Lomgren Lomgren is offline
Senior Member, Anti-Spam
Join Date: Mar 2001
Location: Missouri
Posts: 196
Lomgren will become famous soon enough
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.
__________________
Lomgren - devoted to classic, even though I may be gone for months on end
Reply With Quote
  #13  
Old 10-22-2001, 11:20 AM
aesquivel aesquivel is offline
Registered User
Join Date: Sep 2001
Location: Whitewright
Posts: 346
aesquivel is on a distinguished road
Send a message via AIM to aesquivel
nope still cant get it ta werk this is very depressing
__________________
Reply With Quote
  #14  
Old 10-22-2001, 11:23 AM
royce royce is offline
Banned
royce's Avatar
Join Date: Sep 2001
Location: Yakitinzen, China
Posts: 2,271
royce is on a distinguished road
Send a message via AIM to royce
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
Reply With Quote
  #15  
Old 10-22-2001, 11:37 AM
aesquivel aesquivel is offline
Registered User
Join Date: Sep 2001
Location: Whitewright
Posts: 346
aesquivel is on a distinguished road
Send a message via AIM to aesquivel
Ahhhhhhhhhhhhhhhhhh

im going ta go crazy tring to figure this out


gaa my head hurts
__________________
Reply With Quote
  #16  
Old 10-22-2001, 09:18 PM
TDO2000 TDO2000 is offline
Registered User
TDO2000's Avatar
Join Date: Jul 2001
Location: Germany
Posts: 655
TDO2000 is on a distinguished road
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
__________________
No Webhost at the moment
Reply With Quote
  #17  
Old 10-23-2001, 01:03 AM
aesquivel aesquivel is offline
Registered User
Join Date: Sep 2001
Location: Whitewright
Posts: 346
aesquivel is on a distinguished road
Send a message via AIM to aesquivel
unfortinatly it didnt werk is there any 1 that has actually made a map before thats who i really need
__________________
Reply With Quote
  #18  
Old 10-23-2001, 03:19 AM
btedji btedji is offline
bryan986
btedji's Avatar
Join Date: Apr 2001
Location: Force 10
Posts: 1,153
btedji is on a distinguished road
Send a message via ICQ to btedji Send a message via AIM to btedji Send a message via Yahoo to btedji
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
your gonna need to learn some time
Reply With Quote
  #19  
Old 10-23-2001, 06:09 AM
TDO2000 TDO2000 is offline
Registered User
TDO2000's Avatar
Join Date: Jul 2001
Location: Germany
Posts: 655
TDO2000 is on a distinguished road
And made many maps that way and they all worked
__________________
No Webhost at the moment
Reply With Quote
  #20  
Old 10-23-2001, 08:29 AM
aesquivel aesquivel is offline
Registered User
Join Date: Sep 2001
Location: Whitewright
Posts: 346
aesquivel is on a distinguished road
Send a message via AIM to aesquivel
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
__________________
Reply With Quote
  #21  
Old 10-23-2001, 08:31 AM
TDO2000 TDO2000 is offline
Registered User
TDO2000's Avatar
Join Date: Jul 2001
Location: Germany
Posts: 655
TDO2000 is on a distinguished road
Paintshop Pro 7.02
__________________
No Webhost at the moment
Reply With Quote
  #22  
Old 10-23-2001, 08:34 AM
aesquivel aesquivel is offline
Registered User
Join Date: Sep 2001
Location: Whitewright
Posts: 346
aesquivel is on a distinguished road
Send a message via AIM to aesquivel
how or where could i get it?
__________________
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 11:03 PM.


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