scripter64 wrote:Forwarded your message
myAi
- the1unknown
- Yogi
- Posts: 344
- Joined: Sat Jul 21, 2018 3:27 am
Re: myAi
"you don't have to be great to start, but you have to start to be great" -the villager
- the1unknown
- Yogi
- Posts: 344
- Joined: Sat Jul 21, 2018 3:27 am
Re: myAi
realising that after the update it perform worst 11
getting beated by training4 (only M@A strategy)
still, look how smart it plays. it make the enemy follow his one vill far away from his town center
getting beated by training4 (only M@A strategy)
still, look how smart it plays. it make the enemy follow his one vill far away from his town center
"you don't have to be great to start, but you have to start to be great" -the villager
-
- Waheguru
- Posts: 5891
- Joined: Fri Jan 16, 2009 8:36 pm
Re: myAi
That villager learned to lure more things than boars
- Esty
- Waheguru
- Posts: 1159
- Joined: Wed Dec 30, 2015 7:37 am
Re: myAi
Hey the1unknown,
Can you confirm me that you want one of ur AIs to join the next Davis cup ? In that case, can you give me his name plz ? I'm typing a list of AIs taking part
Can you confirm me that you want one of ur AIs to join the next Davis cup ? In that case, can you give me his name plz ? I'm typing a list of AIs taking part
Author of TRiBaL_Warrior, Yggdrasil, PharaoN, WoodyWood Pecker and currently dette
- the1unknown
- Yogi
- Posts: 344
- Joined: Sat Jul 21, 2018 3:27 am
Re: myAi
but all my ai are so badEsty wrote:Hey the1unknown,
Can you confirm me that you want one of ur AIs to join the next Davis cup ? In that case, can you give me his name plz ? I'm typing a list of AIs taking part
lol
even if I put 2 of them in the same team vs 1 ai..still they will lose
i don't know what to say, would be awesome to see my ai in an tournament
"you don't have to be great to start, but you have to start to be great" -the villager
- the1unknown
- Yogi
- Posts: 344
- Joined: Sat Jul 21, 2018 3:27 am
Re: myAi
Question
is the code
harder for the game to read than the
?
i am referring to to the structure of the code, the lines
is the code
Code: Select all
(defrule (unit-type-count-total my-unique-unit-line < 50) (can-train my-unique-unit-line)
=> (train my-unique-unit-line) )
Code: Select all
(defrule
(true)
=> (set-strategic-number sn-coop-share-attacking 1)
(set-strategic-number sn-coop-share-information 1)
(enable-wall-placement 1)
(disable-self)
)
i am referring to to the structure of the code, the lines
"you don't have to be great to start, but you have to start to be great" -the villager
- the1unknown
- Yogi
- Posts: 344
- Joined: Sat Jul 21, 2018 3:27 am
Re: myAi
thanks. For me it seems to be more easy to read with long linesAleph wrote:It makes no difference to the game... Definitely harder to read for yourself any time you wanna work on it.
"you don't have to be great to start, but you have to start to be great" -the villager
- the1unknown
- Yogi
- Posts: 344
- Joined: Sat Jul 21, 2018 3:27 am
Re: myAi
it is possible for the ai to lock the gates ?
https://ibb.co/Bnrvfxb
everything was well until some units opened the game and let 30 military units into his base
https://ibb.co/Bnrvfxb
everything was well until some units opened the game and let 30 military units into his base
"you don't have to be great to start, but you have to start to be great" -the villager
-
- Waheguru
- Posts: 5891
- Joined: Fri Jan 16, 2009 8:36 pm
Re: myAi
It's possible using DUC by finding your unlocked gates and using "up-target-point" with "action-lock". This action is a toggle, so it's important to filter out locked gates by checking "object-data-locked" first. To ensure there's no weirdness with lock/unlock looping in multiplayer delay, it would be good to not flood these rules every pass and instead run them for certain events or on like a 10 second timer. Please be careful with locking gates, though, as you may get into situations where you have no building room left inside, etc.
Code: Select all
(defconst gl-local-total 100)
(defconst gl-local-last 101)
(defconst gl-remote-total 102)
(defconst gl-remote-last 103)
(defconst tm-gate-lock 40)
(defrule
(up-timer-status tm-gate-lock != timer-running)
=>
(up-full-reset-search) ;clear all existing search results
(up-find-local c: gate-class c: 40) ;find up to 40 of your own gates
(up-remove-objects search-local object-data-locked != 0) ;filter out the locked gates
(up-get-search-state gl-local-total) ;get the remaining unlocked gate count
)
(defrule
(up-timer-status tm-gate-lock != timer-running)
(up-compare-goal gl-local-total > 0) ;if there are unlocked gates remaining
=>
(chat-to-player my-player-number "Locking gates.")
(up-target-point 0 action-lock -1 -1) ;lock them
)
(defrule
(up-timer-status tm-gate-lock != timer-running)
=>
(enable-timer tm-gate-lock 10) ;reset timer for another 10 seconds
)