Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Krechet777

Next level

Recommended Posts

Hi! How can I change next map? When I use "Exit_Normal" starts next level by number (?). Is there script to spawn player on self defined map?

Share this post


Link to post

It's defined in MAPINFO, you'll have to create your own MAPINFO, This will define which map will be loaded after exiting that map .

E.G :
map map01 "DABOOM !"
{
next = 2
}

map map02 "Woohoo !"
{
next = 4
}

...etc

Share this post


Link to post
Krechet777 said:

Thanks. But, is there any way to have two exits on map leeding to different maps?

I'd assume you'd have to tag one as a secret exit so...

map map01 "Example"
{
next = 2
secretnext = 15
}

Share this post


Link to post

Oh, this is good idea!
But two questions (i'm newbie, sorry)
1) What is MAPINFO? (I'm using GZDoom builder)
2) Two next maps (standart and secret) is good enough, but is there any way to start map by my choise (e.g. Exit(my_map_name))?

Share this post


Link to post

MAPINFO does what you wanted ,Put secret exit in second level, and define it in MAPINFO by secretnext:

map MAP10 "YOUR MAP NAME"
{
next = "MAPXX" - this defines the next map for normal exit .
secretnext = "MAPXX" - this defines the next map for secret exit .
}

Share this post


Link to post

No, with MAPINFO I can create two exits: standart and secret, but I want to MORE next maps
Edit:
There is RETURN trigger whitch act when player RE-enter level, so I'm sure there is way to manage next level. but I dont know how...

Share this post


Link to post

You're gonna need an ACS Script to achieve this . Of course you're gonna have to put more than 1 exit .
EDIT : For instance :

#Include "zcommon.acs"
Script 1 (void)
{
Teleport_NewMap (map, 0, 0);
}

and give lindef effect 80 to the exit, set script number, and activation method ... that's all .

Share this post


Link to post

Thanks, but seems it work only with maps MAP*, if mapname starts with another string (not "map") it will give you error: "No player 1 start" (but there it is)

Share this post


Link to post

Indeed, Teleport_NewMap uses Levelnum to determine the level. Levelnum is set by default when the mapname is in MAPXX format, but if the format is different, Levelnum can be set manually in MAPINFO, and if you plan to use Teleport_NewMap, you should set it manually. Info here: http://zdoom.org/wiki/MAPINFO/Map_definition

Share this post


Link to post

I Already suggested MAPINFO, but he wanted to put multiple exits for his map that lead to many Levels (Not only Normal and Secret) , Looks like the only trick is Teleport_NewMap .

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×