sdk help - for dune wars mod

keldath

LivE LonG AnD PrOsPeR
Joined
Dec 20, 2005
Messages
7,581
Location
israel
hi there,
i was wondering if someone can give me some help with sdk:

id like to have a new domain - all domain,
that when defined, a unit can go on all terrain, with the limitation i also define in the xmk - impassbleterrian tag,

say i want i unit to be able to mve on ocean , but cannot enter hills,

i tryed using the xml tag for all terrain, but, when its checked on, my unit can move on hills, despite the fact i defined it not to...




tjanks in advance :)
 
That's an XML question. You can make units able to move in any domain, and then restrict certain terrains so they cannot move there.

In unit infos:

<bCanMoveAllTerrain>1</bCanMoveAllTerrain>

and further down

<TerrainImpassables>
<TerrainImpassable>
<TerrainType>TERRAIN_ORBIT</TerrainType>
<bTerrainImpassable>1</bTerrainImpassable>
</TerrainImpassable>
</TerrainImpassables>

Hills are technically a terrain, so you should be able to do that.

This is from the Workbot unit in my FutureMod and I know it works.
 
Tholish, hi,

thanks,
thats exactly what i did acctually,

but,
the hills are the problem mate,
thehill limit wont work, only if you limit the land of the hill -0

the hill is grass - grass isnt limited, hence the unit can go on it,
i dont know, hills ont function like normal terrian,

thats why i need somthing to limit access to it.
 
I'll bet its for sandworms. Well, maybe you could have an invisible feature that appears wherever there are hills, and make that feature impassable by sandworms. This would preclude any other features on hills though. Or you could make hills impassable and give all units other than sandworms the ability to go on impassable terrain. Or you could make desert a water terrain and give all units other than sandworms the ability to pass all terrains.
 
hi,
i thoust about worms,

i think they should come as a very very often evet - worm sign,
it will create a worm near one of the cities, which offcourse will attack/pillage somthing,

also,
a "animal" unit of a worm, that will be able to wonder almost every terain bsides some teraain.

still dont have asolution for that,
but i hope that once i release the mod, some of the model makers and the sdk people will awake and want to help me,
from expirence,. you only get help after you acctually get a mod out....:)

so...i hope, and if now help comes, ill dowhat i can buddy, so far im planning a great game play.
 
Back
Top Bottom