Economy via LUA! - Page 2

Economy via LUA!

Discuss Lua based Spring scripts (LuaUI widgets, mission scripts, gaia scripts, mod-rules scripts, scripted keybindings, etc...)

Moderator: Moderators

User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Post by smoth »

ivory, I have no problem looking at an example if you have one but I have no time to meddle with an ai file. Too much time needed to test gameplay.

yeah, harvesters are definitely doable in spring with lua, I am not sure how efficient it would be though. My concern would be their detection of what ore field they should go and mine.
User avatar
Peet
Malcontent
Posts: 4384
Joined: 27 Feb 2006, 22:04

Post by Peet »

And pathing. *shudders*
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Post by smoth »

not so much..

unit sees a return depot, player clicks to drive to harvest area, unit begins harvesting... loads up... looks for harvest plant.... drives to proximity of harvest plant... lua takes resources, unit paths back to harvest spot. If the harvest spot is now empty it waits for new orders. Lua can issue move commands iirc.
User avatar
KDR_11k
Game Developer
Posts: 8293
Joined: 25 Jun 2006, 08:44

Post by KDR_11k »

He's talking about "Oh look, theres resources in the enemy base!".
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Post by smoth »

it happens :)
User avatar
Erom
Posts: 1115
Joined: 25 Apr 2006, 05:08

Post by Erom »

You could define a maximum search distance, that would fix most problems. I'm pretty sure that's how the craft and CnC series games do it - define a radius around the location of the last reclaim order. If there are resources in that radius, go get them, if none are left, wait at the base for a new order.
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

an area reclaim of radius 10k issued on the position of the harvest depot/silos location would give behaviour as intelligent as the latest CC3 harvesting AI.
User avatar
rattle
Damned Developer
Posts: 8278
Joined: 01 Jun 2006, 13:15

Post by rattle »

Enemy base, here I come!
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Post by smoth »

I'd be in your base harvesting your resources :P/

imagine cloaked/stealthy harvest units for resource stealing :P
User avatar
Zenka
Posts: 1235
Joined: 05 Oct 2005, 15:29

Post by Zenka »

AF wrote:an area reclaim of radius 10k issued on the position of the harvest depot/silos location would give behaviour as intelligent as the latest CC3 harvesting AI.
The truth!
Post Reply

Return to “Lua Scripts”