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:19 am]
Symmetry -- NudeRaider
NudeRaider shouted: Symmetry I can't tell if it's relevant. You provided literally no context so I was providing an equally generic answer.
Is EUD editor capable of writing shit onto the player's harddrive? That seems like it would be dangerous
[11:43 pm]
Ultraviolet -- let's take each other's clothes off :teach:
[11:03 pm]
Vrael -- :teach:
[11:03 pm]
Vrael -- I mean, my clothes
[11:03 pm]
Vrael -- I will take your clothes off
[07:13 pm]
NudeRaider -- I am gettin' so hot :teach:
[04:08 pm]
lil-Inferno -- so take off all your clothes
[02:38 pm]
Ultraviolet -- ooh it's gettin hot in here
[09:38 am]
NudeRaider -- Symmetry
Symmetry shouted: I meant more why is it relevant
I can't tell if it's relevant. You provided literally no context so I was providing an equally generic answer.
[05:02 am]
Symmetry -- I refuse to let it die! Send forth the memes!
Please log in to shout.


Members Online: RIVE, l)ark_ssj9kevin