Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 10-02-2002, 03:25 AM
darkriders_p2p darkriders_p2p is offline
Registered User
Join Date: Jan 2002
Location: Canada
Posts: 690
darkriders_p2p is on a distinguished road
Talking 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
__________________
maximus_asinus
Reply With Quote
  #2  
Old 10-02-2002, 03:27 AM
Torankusu Torankusu is offline
Elite Member
Torankusu's Avatar
Join Date: Jun 2001
Posts: 10,065
Torankusu is a jewel in the roughTorankusu is a jewel in the rough
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.
__________________
Quote:
Originally posted by Spark910
Think befreo you type.
Reply With Quote
  #3  
Old 10-02-2002, 03:35 AM
darkriders_p2p darkriders_p2p is offline
Registered User
Join Date: Jan 2002
Location: Canada
Posts: 690
darkriders_p2p is on a distinguished road
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
__________________
maximus_asinus
Reply With Quote
  #4  
Old 10-02-2002, 04:05 AM
Torankusu Torankusu is offline
Elite Member
Torankusu's Avatar
Join Date: Jun 2001
Posts: 10,065
Torankusu is a jewel in the roughTorankusu is a jewel in the rough
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...
__________________
Quote:
Originally posted by Spark910
Think befreo you type.
Reply With Quote
  #5  
Old 10-02-2002, 06:19 AM
R0b1n-NPC R0b1n-NPC is offline
Registered User
Join Date: Sep 2002
Posts: 397
R0b1n-NPC is on a distinguished road
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.
__________________
- R0bin
Reply With Quote
  #6  
Old 10-02-2002, 06:20 AM
R0b1n-NPC R0b1n-NPC is offline
Registered User
Join Date: Sep 2002
Posts: 397
R0b1n-NPC is on a distinguished road
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.
__________________
- R0bin
Reply With Quote
  #7  
Old 10-02-2002, 06:32 AM
AlexH AlexH is offline
Have A Drink On Me
AlexH's Avatar
Join Date: Jun 2001
Location: Somewhere In Time
Posts: 7,442
AlexH is on a distinguished road
Send a message via AIM to AlexH Send a message via MSN to AlexH
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.
__________________
QUICK LOOK BUSY JESUS IS COMING!
Reply With Quote
  #8  
Old 10-02-2002, 07:36 AM
Torankusu Torankusu is offline
Elite Member
Torankusu's Avatar
Join Date: Jun 2001
Posts: 10,065
Torankusu is a jewel in the roughTorankusu is a jewel in the rough
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...
__________________
Quote:
Originally posted by Spark910
Think befreo you type.
Reply With Quote
  #9  
Old 10-02-2002, 07:39 AM
Dach Dach is offline
call me Chad, it's cooler
Dach's Avatar
Join Date: Aug 2002
Posts: 1,899
Dach is on a distinguished road
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...
__________________
Scripting Documents:Old Script Documentation-Movement Tutorial
Reply With Quote
  #10  
Old 10-02-2002, 01:17 PM
screen_name screen_name is offline
is watching you
Join Date: Mar 2002
Location: The 3rd Dimension
Posts: 2,160
screen_name is on a distinguished road
Send a message via AIM to screen_name Send a message via MSN to screen_name
I use:

NPC Code:

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

__________________
[signature]insert here[/signature]
Reply With Quote
  #11  
Old 10-02-2002, 01:50 PM
MattMrHat MattMrHat is offline
Banned
Join Date: Aug 2002
Location: United States Age: 15
Posts: 111
MattMrHat is on a distinguished road
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?
Reply With Quote
  #12  
Old 10-02-2002, 10:46 PM
emortylone emortylone is offline
Registered User
Join Date: Apr 2002
Location: Control-NPC
Posts: 834
emortylone is on a distinguished road
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
__________________
Quote:
*Stefan: it seems sometimes they hire newbie scripters everywhere x-x
*Stefan: scripters are sometimes like people that draw paintings
*Stefan: all that counts is that it looks nice
Reply With Quote
  #13  
Old 10-03-2002, 01:38 AM
Com013 Com013 is offline
Registered User
Join Date: Aug 2002
Location: GMT+1
Posts: 381
Com013 is on a distinguished road
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.
__________________
Com013
Former Admin of the LAT on Graal The Adventure

e-mail: [email protected]
Reply With Quote
  #14  
Old 10-03-2002, 02:47 AM
darkriders_p2p darkriders_p2p is offline
Registered User
Join Date: Jan 2002
Location: Canada
Posts: 690
darkriders_p2p is on a distinguished road
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
__________________
maximus_asinus
Reply With Quote
  #15  
Old 10-03-2002, 03:19 AM
WanDaMan WanDaMan is offline
Master Tux
WanDaMan's Avatar
Join Date: Aug 2002
Location: England, United Kingdom
Posts: 5,571
WanDaMan is a jewel in the roughWanDaMan is a jewel in the rough
Send a message via MSN to WanDaMan
o.O Maps are hard with linking etc
__________________
V$:CONFL16T
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 12:20 PM.


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