OpenXcom Forum
OpenXcom => Suggestions => Topic started by: luke83 on January 04, 2012, 03:25:26 am
-
Is it/ Will it be possible to add extra areas to the map when your already within battle? EG If your half way through a mission and on a map say 10 squares x 10 squares but then say a second ufo approaches to assist the existing ufo , would it be possible to add some extra blocks along 1 side of MAP to handle the second ufo landing plus some new terrain ?
My General thought is to allow for new mission types and some Random events into the game to keep things interesting , Also to create some more different map shapes. Of course we will also need more map terrains so we dont just have the same blocks repeating over and over ( this part i can help with ).
-
Random Question: Is it/ Will it be possible to add extra areas to the map when your already within battle? EG If your half way through a mission and on a map say 10 squares x 10 squares but then say a second ufo approaches to assist the existing ufo , would it be possible to add some extra blocks along 1 side of MAP to handle the second ufo landing plus some new terrain ?
I think adding extra areas to the map is a good idea. This can be act as a transition zone/retreat area for reinforcement of enemy/X-com/friendly unit. This will be useful for special mission or scenario of Openxcom (after V1.0 ver).
-
Well, the code did not really foresee having more than 1 UFO on a map. It's not like everything has to be rewritten from scratch to implement this, but there are a few things to take into account.
Everything is possible, if you provide the code :)
-
"Everything is possible, if you provide the code :)"
This is always my biggest issue , i have the dreams but not the skills to achieve them :(
-
New types of map blocks are perfectly possible. No coding required for that :) You'll just have to add the filename of your new mapblock to the list of mapblocks the system has to choose from, for the specific terrain type.
The link between globe texture/mission type and terrain type(s) will become a ruleset too, so you could add new terrain types too without coding. I will foresee the ability to have multiple terrain types per globe texture/mission type as well.
So you could have one globe texture "forest", which in vanilla will load the forest tileset and forest maps if a UFO lands there. But you could add to the globe texture "forest" maybe a terrain type "forest with barns" that loads the forest and barn tileset and uses new mapblocks that has forest with an occasional barn in it.
I hope that gives some ideas about mods you don't need to do any coding for. Two UFOs in 1 map is just a little different, it affects other parts of the game, like the geoscape (alien activity for the region, what if you abort a mission, etc)
-
" I hope that gives some ideas about mods you don't need to do any coding for. Two UFOs in 1 map is just a little different, it affects other parts of the game, like the geoscape (alien activity for the region, what if you abort a mission, etc) "
For a aborted mission under this circumstance ( when a second ufo shows up to help gather the crew of the original shot down one) i would assume the second ufo would take off as normal after a set amout of time ( they would need a set amount of time to gather the useful parts and crew from the wrecked ship) then the ufo location would just disappear as normal. I was thinking of having this happen about 5%-10% of all crashed ufos and have there in battle appearance of the new ufo start randomly after turn 10 for example just so you go " Crap " just as you have your guys all set up to storm the crashed ufo ship ;D.
-
Also a follow up question.
When i use MapView it only allows me to create the one file for each type EG: Ufo. So to create additional sets do i create new sets of ufos , Name the file differently and your battscape code will select one of the file sets at random than use the correct SIZE ufo out of that file?
Is that correct? ( Please note currently i have not looked into HOW these are saved so please correct me if im wrong ::))
I am hoping to have the basic version if my armed civilians finished tonight and since i cant see any way of using them yet i was going to start working on some UFOs next so your not storming the same one time and time again before i move onto more terrain variety.
(Please note the ufo in the picture was one i created many months ago and i dont really like it to be honest it just happened to be the ufo picture i clicked on when i opened the file. You can proberly tell from my Forum avatar that from time to time i just stuff around with ideas :P)
-
Now that rulesets are externalized I can answer your question.
To create multiple files for the same UFO, you add mapblocks here:
- type: STR_MEDIUM_SCOUT
size: STR_SMALL
sprite: 1
damageMax: 200
speedMax: 2400
accel: 9
power: 20
range: 15
score: 75
battlescapeTerrainData:
name: UFO_110
mapDataSets:
- BLANKS
- U_EXT02
- U_WALL02
- U_BITS
mapBlocks:
- name: UFO_110
width: 10
length: 10
Say you created a new variation of the medium scout UFO_100_VAR1 then you add this:
mapBlocks:
- name: UFO_110
width: 10
length: 10
- name: UFO_110_VAR1
width: 10
length: 10
The game will randomly choose between one of the two variations of the UFO map
-
Any chance i can specify separate MCD types per UFO variation?
-
To build on my suggestion , this is the kind of vehicle the Gang members need to rockup onto the battle scape in to help the aliens ( Mid battle) !