Jump to content
  • 0
Sign in to follow this  
Jedzkie

Lua Error on AI

Question

when i try to use /merai (custom AI config) this error pops up.. './AI_sakray/USER_AI/Battle.lua:259: attempt to call a table value'

 

this is the code in line 259:

 

for i,v in Friends do

 

this is the full code:

 

   -- 3. Check if our friends has enemies.	if object == 0 then		for i,v in Friends do			object = GetEnemyOf(v)		end	end

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.