Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: Crazy scarab frenzies don't attack targets
Crazy scarab frenzies don't attack targets
Nov 29 2009, 11:31 pm
By: Kimaru  

Nov 29 2009, 11:31 pm Kimaru Post #1



Hey, I'm fixing up this cat and mouse map by adding a boss that launches scarabs in random directions, but for some reason the scarabs just go to the top left of the map. In the version I'm uploading, you can see that the scarabs work for about 10 seconds, then start ignoring the comsat stations and probe. The owners of the scarabs are computers and I'm using JYD.

Attachments:
cat test1.scx
Hits: 6 Size: 146.3kb



None.

Nov 30 2009, 12:38 pm JaFF Post #2



Check the triggers and make sure the actions follow this pattern:

-Move scarabs from reavers to the point from which they 'shoot' (call it location X)
-Run JYD AI at location X. Make sure that location X is no more than 2x2 tiles. 1x1 is preferred.



None.

Dec 1 2009, 3:28 am Kimaru Post #3



The triggers follow that pattern. I amended my location sizes to match your suggestion. I tried both 1x1 and 2x2 and neither made a difference. Though, I'm still noticing one thing. For about 5 seconds, the scarabs do what they're supposed to. Then they ignore commands and go to the top left of the map. I should also mention that the map is not using hyper triggers, if that plays a role.



None.

Dec 1 2009, 8:11 am Vrael Post #4



Quote from Map Triggers
Trigger("\x006C\x005ats - \x007Kill Those Mice!"){
Conditions:
Always();

Actions:
Modify Unit Hanger Count("Current Player", "Warbringer (Reaver)", 10, 0, "Cat Base");
Run AI Script At Location("TB2B", "Get Queen");
Set Invincibility("Current Player", "Dark Templar (Hero)", "Cat Place", enabled);
Set Deaths("Current Player", "Ursadon (Ice World)", Subtract, 1);
Set Deaths("Current Player", "Cantina", Subtract, 1);
Set Deaths("Current Player", "Cave", Subtract, 1);
Set Deaths("Current Player", "Cave-in", Subtract, 1);
Set Deaths("Current Player", "Cocoon", Subtract, 1);
Set Deaths("Current Player", "Uraj Crystal", Subtract, 1);
Preserve Trigger();
Comment("randomization");
Set Switch("What to buy?", randomize);
Set Switch("What to buy [2]?", randomize);
Set Switch("What to buy [3]?", randomize);
Set Switch("What to buy [4]?", randomize);
Set Switch("Teleportation 1", randomize);
Set Switch("Teleportation 2", randomize);
Set Switch("Teleportation 3", randomize);
}

//-----------------------------------------------------------------//

Trigger("\x006C\x005ats - \x007Kill Those Mice!"){
Conditions:
Always();

Actions:
Run AI Script At Location("TSW4", "Cat Base");
Run AI Script At Location("ZSUx", "Cat Base");
Preserve Trigger();
Comment("AI: Mine Minerals");
}

//-----------------------------------------------------------------//
You're spamming AI scripts (condition "always") for the same players that own the scarabs. This is probably interfering with the JYD scripts.



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[08:08 pm]
anoeth47 -- Can I get a moderator/lord of the forum to clean up my topics - delete posts not really part of the topic.
[07:11 pm]
anoeth47 -- Can you download from forum if not a member?
[07:07 pm]
anoeth47 -- Thank you NudeRaider much cleaner
[04:24 am]
anoeth47 -- Sie_Sayoka >>> Thanks!!! Got the png's to show up in Map Showcase
[2026-4-22. : 10:20 pm]
anoeth47 -- Sweet
[2026-4-22. : 7:48 pm]
NudeRaider -- https://staredit.net/381642/ really makes you appreciate (again) how good sc music is.
[2026-4-18. : 3:57 am]
NudeRaider -- https://staredit.net/381600/ You have 5 minutes, then you can only edit your posts.
[2026-4-17. : 4:05 pm]
NudeRaider -- DarkenedFantasies
DarkenedFantasies shouted: you eat lots of beans
:lol:
Please log in to shout.


Members Online: Sie_Sayoka, Excalibur