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.
[2026-4-29. : 2:00 am]
l)ark_ssj9kevin -- hi jamal
[2026-4-29. : 12:18 am]
Heinermann -- memes
[2026-4-28. : 10:08 pm]
NudeRaider -- skeet-skeet, motherfucker
[2026-4-28. : 4:24 pm]
Vrael -- NudeRaider
NudeRaider shouted: Vrael boy, if you're not careful I'll moderate your sorry ass too!
gotta catch me first! skeet skeet skeet
[2026-4-26. : 1:58 pm]
lil-Inferno -- ya
[2026-4-25. : 11:50 pm]
JamaL -- Glad to see SEN will never die. Kudos to whoever is paying the hosting fees these days!
[2026-4-25. : 3:37 pm]
NudeRaider -- (-.-,)
[2026-4-25. : 3:35 pm]
Zoan -- ;o I thought that was a monkey emote
[2026-4-25. : 3:34 pm]
Zoan -- :mods:
[2026-4-25. : 3:34 pm]
Zoan -- :mods"
Please log in to shout.


Members Online: Solstice245