MegaGlest Forum
Modding and game content creation => Maps, tilesets and scenarios => Topic started by: hairy cat on 22 June 2010, 12:23:43
-
Hey!
Is it possible to create a scenario where you start with a faction and there are random beasts around that don't need ressouces to live?
If so, is it also possible to choose the location of each beast?
If it is, please say how to xml it.
-
make the "beasts" a faction and place them were you want, if this is not the case, lock this thread, glestimals do the job on GAE
-
well thats not exacly what i meant. I mean, how do i place EACH beast at an exact location? Do i really have to create a faction for every single one of them?
-
I don`t know any further, see if there is a guide on wiki.
-
Well, I don't know much about secnarios, but I think you can do what you...want to do?
Probably all you need to do is to decide where they should be, and then list the "X,Y" Coordinates... I guess. :|
-
Probably all you need to do is to decide where they should be, and then list the "X,Y" Coordinates... I guess. :|
Ah. Can you tell me how to do that please?
Well, I don't know much about secnarios, but I think you can do what you...want to do?
Oh, cool, the only problem is that i don't really know how to... Got a big deal to learn
-
Probably all you need to do is to decide where they should be, and then list the "X,Y" Coordinates... I guess. :|
Ah. Can you tell me how to do that please?
See this (http://glest.110mb.com/lau.php) to learn about lau, the scripting language used for glest's scenarios.
Also, military's scenarios have a lot of scripting (the most scripting is found in the End of Morning Scenarios).
Basically, the command is:
createUnit('unit_name', #1, {x, y})Where 'unit_name' is the exact name of the unit (all lowercase), #1 is the faction index, from 0-3 (ie: one for each of the four players), and {x,y} is pretty obvious.
Remember that the faction index must be the same faction that actually has that unit. So assuming player 0 is human and player 1 is the beasts, as well as you have a unit called 'beast' in the beast's faction, you could use:
createUnit('beast', 1, {55,20})to create a unit at 55x 20y. Note that x and y are in CELLS, not TILES. A map that is 128x128 is actually 256x256 tiles (each tile has 2x2 cells). The last row and column aren't usable.
-
Just make a 1 faction for all of them and put it in the scenario folder (Only for MG) and specify in the scenario XML.
-
and in MG they will not consume any food (by default)! So noone will die if there is a lack of food.