Build roads?

Level 4
Joined
Jan 3, 2009
Messages
64
Hello!

I was thinking if i can add to my map a road system, like... you can just build certain structures next to the roads!

Ok and now i was thinking if i can add a population system to my map, like... the houses produces villagers and increase the population( food), also there is a way to change that food to Population and the icon of course XD!


And when the players tries to build a structure that is not next to a road it displays a floating text saying "Build it next to a road"

EDIT:
Another thing! I was trying to do a random weather system that affects the movement of the units, like in winter the units get slower!
And my system doesnt work :D


+rep Help me :thumbs_up:
 
Level 8
Joined
Jun 16, 2008
Messages
333
With the food you can do the population and to get a road click here
for the building you would need to do a trigger where they can only build in a certain spot and have a region there
 
Level 4
Joined
Jan 3, 2009
Messages
64
Pharaoh, very close like....

[BUILDING][ROAD][BUILDING]

So i think i will need a custom building with a terrain texture, unselectable, invulnerable and walkable, right?
And when i finish with the building i just need to create a trigger that just let me build next to those roads?

The only thing here is that i dunno how to make the triggers :D
 
Level 8
Joined
Jan 8, 2008
Messages
454
Make a dummy unit called 'Road'. For triggers do,

Events: When Unit is Constructed,
Conditions: Constructed unit = 'Road',
Effects: Remove Last Constructed Unit
'Environment' Create terrain effect (Village cobble path) at location of last removed unit.

I think that will work. GL
 
Top