You must be logged in to post messages.
Please login or register

AI & RM Scripting
Moderated by Sebastien, Leif Ericson

Hop to:    
Welcome! You are not logged in. Please Login or Register.1 reply
Age of Kings Heaven » Forums » AI & RM Scripting » Missing Opening Parenthesis
Bottom
Topic Subject:Missing Opening Parenthesis
GranCalabaza
Squire
posted 06-16-19 02:19 PM CT (US)         
Hi all, I recently edited an AI file and I received Error 2001: Missing Opening Parenthesis, in the line 190 which is the 7th line below:

(defrule
(not(event-detected trigger 5))
(or
(game-time <= 450)
(or
(event-detected trigger 7)
)
)
(unit-type-count-total scout-cavalry-line < 10)
(can-train scout-cavalry-line)
=>
(train scout-cavalry-line)
)

Any idea what is wrong here? I don't see any missing parenthesis. But I am not that experienced in AI editing...

PS: I got it...

[This message has been edited by GranCalabaza (edited 06-17-2019 @ 06:50 AM).]

AuthorReplies:
Leif Ericson
Seraph Emeritus
posted 06-17-19 09:45 AM CT (US)     1 / 1       
Looks like you figured it out, but for anyone else reading, the or statement on line 5 and the parenthesis on line 7 weren't necessary.

~`o~|\  Join the fresh and exciting AI Ladder for its fourth season!
 `  |_\
       |    Learn the joy of AI scripting in my guide: The World of AI Scripting
______|______
 \        /
   .....Hinga Dinga Durgen! - SpongeBob
  `-=<.__.>=-
You must be logged in to post messages.
Please login or register

Hop to:    

Age of Kings Heaven | HeavenGames