Quesiton about map scripts.

Beelzebud

A Smooth-Skin
Ok so I finally got everything all set up and can compile scripts. Here is what I need to know.

I'm making a small mod and have a few maps built. How do I add support for the car in them? I've looked at the script files and can clearly see two lines that deal with the car, but I'm not sure how to change the script for my maps. Is there an easy method, or even a decent tutorial for adding support for the car to custom maps?
 
I don't know what you think those two lines are gonna do. Fact is, there are way more than two lines that deal with the car (approximately 300). Half of those lines tell the game where to place the car, trunk, and blocking hexes if you have the car and enter the map, while the other half destroy the car when you leave.
You don't have to change much to fit it to your map. Only one or two things, depending on how your code is written. You may have to update the map number that appears in your script (if you have it). If not, then the only thing you have to change is the occurrences of the starting tile (hex) for the car scenery. It will occur in the part of the code calling the car into creation, and the code to destroy the car. The rest is just a simple cut and paste. Look for something like this:

Scenery_Creation := op_create_object(33555441, 26097, 0, 304);

In this example, the 26907 represents the tile where it is placed. (33555441 represents part of the car.) Replace all occurrences of that number in the script that you use for your example.
 
Back
Top