Micro AIs new question

Discussion of Lua and LuaWML support, development, and ideas.

Moderator: Forum Moderators

User avatar
Spannerbag
Posts: 759
Joined: December 18th, 2016, 6:14 pm
Location: Yes

Re: Micro AIs new question

Post by Spannerbag »

Celtic_Minstrel wrote: April 16th, 2025, 6:09 pm ... So yes, I'd use the full path to the file, relative to ~add-ons.
Brilliant - that's what I'd hoped; just wanted to be reassured that the lua environment knew about the addons relative path.
Not 100% sure of syntax lua expects ( e.g. ~add-ons/LSB/lua/, add-ons/LSB/lua/ or even LSB/lua/ ) but I can work it out.

Thanks for your help, much appreciated! :D


EDIT:
{ ca_id = "move", location = '~add-ons/LSB/lua/ca_forest_animals_move_ignore_enemies.lua', score = score - 2 } loaded. :)
And the units moved around. :shock:
Will test & tweak when time permits...

Cheers!
-- Spannerbag
SP Campaigns: After EI (v1.14) Leafsea Burning (v1.18, v1.16)
I suspect the universe is simpler than we think and stranger than we can know.
Also, I fear that beyond a certain point more intelligence does not necessarily benefit a species...
Post Reply