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.
[02:41 am]
Oh_Man -- i used to play TF2 competitive in that clan, and also was PR manager (ie: i wrote all the website posts)
[02:41 am]
Oh_Man -- another fun fact iaguz actually joined the clan i was part of - Frenetic Array
[02:40 am]
Symmetry -- Human memory is a fragile, fallible thing
[02:39 am]
Oh_Man -- i realised all his shit was halluc and i wiped out his measly army of fake hallucs and he called GG - yeah thts wat actually happened damn false memory strikes again
[02:38 am]
Oh_Man -- i was zerg, the toss guy did a bunch of hallucinates, and i was like, welp, i guess i'm dead, but i have that mindset of never giving up, so attacked him anyway, then tht was wen
[02:38 am]
Oh_Man -- coz i was actually a zerg main, so wat ACTUALLY happened was a complete reverse of this
[02:37 am]
Oh_Man -- i found an old comment of mine i actually think the idra thing over-ride my own memory
[02:22 am]
Symmetry -- was it idra
[01:52 am]
NudeRaider -- Oh_Man
Oh_Man shouted: and i went on to win the tournament, and a pair of steelseries headphones. i even reember how i won the final match - hallucinated a fck-tonne of units and my opponent thought i had way more than he did and GGed
classic
[02:56 pm]
Oh_Man -- long story short - patience is a virtue!
Please log in to shout.


Members Online: Oh_Man