News:

If you like the game and can afford to, please donate to support MegaGlest.

Main Menu

Units: Resource Processing

Started by ChupaReaper, 13 February 2012, 16:05:43

ChupaReaper

Is it possible or could it be to have units receive resources and convert them into different resources? So workers mine Iron Ore and deliver it to a Storehouse as normal. There is then a Blacksmith building that slowly converts the iron ore into weapons. I know this can be done using generate, but can generate somehow be put onto an auto-use so whenever the resources are available the Blacksmith will automatically convert them? This could be toggled on and off or exampled upon like the Blacksmith can make swords or maces depending on what the player tells it to make.

Coldfusionstorm

I would use a attack ability make it do zero damage, and then make it attack something elles, perhaps a...Iron stockpile?.
WiP Game developer.
I do danish translations.
"i break stuff"

ChupaReaper

Quote from: Coldfusionstorm on 13 February 2012, 19:56:04
I would use a attack ability make it do zero damage, and then make it attack something elles, perhaps a...Iron stockpile?.
That's an interesting way to do it, only problem is you could make the Blacksmith 'attack' anything, its a bit of a dirty way of doing it. I'll look into the cast spell and see if I can get it to auto target itself and continuously cast a spell that does nothing on itself.
Ideally a skill that just loops when turned on with generate attached is all that is needed.

lazyanttu

But I think that the cast-spell could be set <cycle=true>, when it cycles just like an attack. Would that solve the problem?

ChupaReaper

Quote from: lazyanttu on 14 February 2012, 12:50:43
But I think that the cast-spell could be set <cycle=true>, when it cycles just like an attack. Would that solve the problem?
I think that could work, so long as they building will target itself automatically so all the player has to do if click a button to start the processing.
Can then use the stop command to stop processing too which is always useful.

Coldfusionstorm

Dirty things are the result of imagination.

and are awesome.
WiP Game developer.
I do danish translations.
"i break stuff"