Author Topic: programing question  (Read 1456 times)

verarticus

  • Guest
programing question
« on: 2 November 2008, 16:13:38 »
ok is it possible to give a unit an auto produce skill? cause ive got a great idea! you can use the invisible unit to produce gold/stone/or wood thing and give it auto produce ad tada you have buildings that have income. so is it possible to give an auto produce?

@kukac@

  • Guest
Re: programing question
« Reply #1 on: 2 November 2008, 16:41:37 »
Hmm, maybe the farms/energy sources are working the same way.

Edit: Hmm, I was quite sure farm or cow or pig continously generated food, but Í'm a but confused now....ű

mictes

  • Guest
Re: programing question
« Reply #2 on: 2 November 2008, 16:51:42 »
No, energy and food are statically ressources. Food has the extra it is consumable, if you have food in minus your units will die.
But it is nothing other as simple mtahematics:

Cow: cost -10 food.
= Produce cow you will lost -10 food. = X-Food+10 Food. !
...Cow die = X-Food--10Food-10Food = X-Food-10Food...

An "Auto-produce" is not possible yet.

verarticus

  • Guest
Re: programing question
« Reply #3 on: 3 November 2008, 00:39:09 »
ok i have another question how do you make splash not hit your guys but only hit enemies? ive tried hit all to false but it still hits everything...

modman

  • Guest
Re: programing question
« Reply #4 on: 3 November 2008, 01:45:15 »
It should only damage your enemies...at least that's what I thought.