Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: Ai Scrip Dont Works
Ai Scrip Dont Works
Apr 2 2011, 9:12 pm
By: nico141  

Apr 2 2011, 9:12 pm nico141 Post #1



well i am making a game based on "naruto mots" and the map is working good execpt for ai script, they dont works i used switches whit preserve trigger example

trigger of spell
Conditions
Current player bring at least 1 "X" unit to "Y" location
Bring At least 1 "S" unit to "L" location
Actions
Kill 1 "X" from current player at "Y"
Create 10 "K" unit (air unit)
Order to Move all "K" from Current Player to "J"location
Wait 200 mill second
Order to Move all "K" from Current Player to "J"location
Wait 200 mill second
Give 10 "k" from current player at "L" to Player 7 (computer player)
wait 50 mill second
set switch 1
wait 500 mill second
clear switch 2
Give 10 "k" from player 7 at "L" to current player
wait 5000
kill 10 "K" from current player at "L"
Preserve trigger

Switch trigger (only for player 7)
Condtions
Switch 1 is set
actions
run ai script "junk Yard Dog" at "location"
Preserve trigger


ANd i tried whit only using the ai scrip
example:

Actions
Kill 1 "X" from current player at "Y"
Create 10 "K" unit (air unit)
Order to Move all "K" from Current Player to "J"location
Wait 200 mill second
Order to Move all "K" from Current Player to "J"location
Wait 200 mill second
Give 10 "k" from current player at "L" to Player 7 (computer player)
wait 50 mill second
Run ai Script "junk Yard Dog " at "L" location
Give 10 "k" from player 7 at "L" to current player
wait 5000
kill 10 "K" from current player at "L"
Preserve trigger

AND DONT WORKS!!!!!!!!!!!!!!!!!!!

SOME IDEAS?

Attachments:
Friend arena 2 BETA.scx
Hits: 0 Size: 68.97kb



None.

Apr 2 2011, 9:24 pm Raitaki Post #2



Wait blocks. Use death counters as waits.
Also, JYD units only attack players when disturbed, so you should use mobile grids or preplaced locations to order the AI to move randomly.



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[05:47 pm]
NimoStar -- If its any consolation, the human brain would still mop the floor with this bot if it wasn't limited by the mechanical interface
[05:34 pm]
NimoStar -- Well. The bot didn't come up with any new strategy. It just has superhuman micro. Hard to beat that. I reckon even the simplest dedicated chess engines are unbeatable for humans now.
[02:13 pm]
Oh_Man -- all g
[10:54 am]
NudeRaider -- Oh_Man
Oh_Man shouted: NudeRaider did u watch the entire video? it's not one game. it's currently dominating the ladder at number 1 position. do ur research first!
Oops, caught me there, no I haven't. :( I was imagining how the game went. Sorry for that. Watching it now. brb
[10:52 am]
NudeRaider -- NimoStar
NimoStar shouted: They were not "Unprepared" that was their fifth loss in a row against the bot. The other replays are also available
that doesn't mean he was prepared. When humans come around with new strategies it often takes weeks until the pros figure out how to shut it down. Oh_Man that's certainly a way more convincing argument for micro being "too good to beat".
[09:43 am]
DiearAnother -- wirefram
[08:35 am]
NimoStar -- Well, pros showed that long ago... half of zerg pros just ling muta rush
[08:35 am]
NimoStar -- " its shown is that you can trade 1000's of apm to make up for lack of strategy"
[03:25 am]
Oh_Man -- https://youtu.be/R_6bsf9REkY anyone ever tried playing SC ghost?
Please log in to shout.


Members Online: NimoStar