Hey, got some questions about slic.
1. I know it says that all the variables are global but are they global only throughout that one file or multiple files. For example.
If I had two files slic.slc and gem.slc and I declared x as a variable in both files would each one interfere with each other or are they isolated from each other??
Sorry if the way I questioned this above seems a bit crude but I'm quite new to any kind of programming.
2. Also, is there any way in slic to store hex locations. I know it should be possible to do this with something like unit.location and city.location but I have been unable to store just plain old hex locations in some type of typelocation variable, I've tried almost everything and have almost come to the conclusion that it is not possible. So for example,
If you wanted to build a unit on a certain hex location that is not a city and the coordinates for the hex were something like this 46,44,0, can this be done, can you pass 46,44,0 those hex numbers into some sort of variable so you can script a unit to be built on that hex.
------------------
Gemini
1. I know it says that all the variables are global but are they global only throughout that one file or multiple files. For example.
If I had two files slic.slc and gem.slc and I declared x as a variable in both files would each one interfere with each other or are they isolated from each other??
Sorry if the way I questioned this above seems a bit crude but I'm quite new to any kind of programming.
2. Also, is there any way in slic to store hex locations. I know it should be possible to do this with something like unit.location and city.location but I have been unable to store just plain old hex locations in some type of typelocation variable, I've tried almost everything and have almost come to the conclusion that it is not possible. So for example,
If you wanted to build a unit on a certain hex location that is not a city and the coordinates for the hex were something like this 46,44,0, can this be done, can you pass 46,44,0 those hex numbers into some sort of variable so you can script a unit to be built on that hex.
------------------
Gemini
That means unit-locations can't be stored for long times, and limits me with flat-map support (it will still work, but less elegant) and probably make whatever you're trying to do impossible. The only way to do whatever you want now is to place a unit as a placeholder at the location you need to store or something like that. If you tell me what exactly you want I can think about a possible solution but I really need some specifics. The solution, if it exists at all, will probably be an ugly hack specific for your situation, such as we're using for flat-map support (we use units for that instead of terrain-types).
Hey Locutus, I found something that may help the both of us.

I've been looking for a function like that for a long time
Comment