Zones help
Displaying 1-3 of 3 total.
1
Please enter a numerical value for the importance of this sticky.
Enter 0 to unsticky.
rosh.r03

Hi i've got a map and it works but my map is only 100x100 so i want to add zones to other maps and i know how to do it but what i'm not sure about is in the (name of map).vc what to do do you a a void or what?

P.S what do i type in to change the map and add those co-ordinates?

(\__/)
( 0.o)
(> <)
WW this is a bunny in the grass !!!!!!!!!!!!!!

Posted on 2005-12-12 08:13:41 (last edited on 2005-12-12 08:16:16)

pthaloearth

you need to program a function in your vc (there are some recent posts on how to do this exact part of the process just read em) and then place a zone in you map via mapEd and then link that function to the vc code you wrote.

Posted on 2005-12-17 17:15:38

resident

The first thing to note is that the map.VC is local, which means that you can have functions of the same name in two different map.vc's, and they won't conflict with each other (though you can't use any function names you've declared in system.VC)

Other than that, you can create a function of whatever name you want.

For example:

void goto_test2()
{
map("test2.map");
}

you would then the "script name" for the zone to "goto_test2", and set it's activation rate at 255/255 so that it activates every time you walk over it. (in theory, 0/255 should mean it will never fire, and 127/255 should mean it only triggers 50% of the time, as I understand it)


This is the short version, so when you get to your new map, you'll have to add a new player entity and whatnot. See the topic map changing which is here: http://www.verge-rpg.com/boards/display_thread.php?id=28257&PHPSESSID=79fe56f1e082b94623a9af7936d07269 for a slightly more complicated and flexible function for swapping to a new map.

Posted on 2005-12-18 03:12:44


Displaying 1-3 of 3 total.
1
 
Newest messages

Ben McGraw's lovingly crafted this website from scratch for years.
It's a lot prettier this go around because of Jon Wofford.
Verge-rpg.com is a member of the lunarnet irc network, and would like to take this opportunity to remind you that regardless how babies taste, it is wrong to eat them.