Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: Help with Crazy Scarab Spawning
Help with Crazy Scarab Spawning
Jul 24 2009, 12:50 pm
By: Kimaru  

Jul 24 2009, 12:50 pm Kimaru Post #1



Hey, sorry for the lame title, couldn't think of anything better....anyway. I am trying to make it so a civilian, for example, spawns scarabs that fly in all directions. I am aware that scarabs cannot be created, nor told to attack normally, so I have already placed reavers with replenishing hangars in the map. There is a pylon that they are trying to attack, but the path is blocked by other buildings. The scarabs are moved to the civilian and are ordered to Junk Yard Dog. So here is what my trigger looks like:

Code
Player 1
Conditions: Always

Actions: Center location labeled 'civ' on Terran Civilian owned by current player at 'anywhere'
Move all Protoss Scarab for current player at 'scarabs' to 'civ'
Run AI Script at 'civ': Send units on Junk Yard Dog
Preserve Trigger


So I've tested this trigger, and it does not work. The scarabs are moved to the civilian, but they head for the very top left corner of the map. If some enemy units wander to top left, they'll die from splash, but the scarabs do not hunt down the enemy units. The scarabs always go to top left after being moved. HOWEVER, I have now switched the reaver possession to a computer, allied to me. The scarabs now belong to my computer ally. The scarabs are being moved to the civilian, and they are tracking targets down! I have switched the above trigger possession to the computer as well. So bottom line, the scarab hunt works if it belongs to a computer, even if the civilian belongs to me. The scarab hunt does not work when they're MY reavers. Can anybody tell me why this is so? or how I can make it so I don't need a computer? I have an 8 player map and I'd really hate to take away player slots..
Thanks



None.

Jul 24 2009, 1:00 pm Jesusfreak Post #2



Wow, thanks for this, I'd like to see answers to this. I'm having almost exactly the same problem, except that I'm using a defiler that spawns a scarab that's supposed to attack a nearby target when it casts dark swarm.



None.

Jul 24 2009, 3:42 pm CecilSunkure Post #3



Don't you just need to give the scarabs to a computer player, then move them, then run junkyard dog on them? Junkyard dog doesn't work on human players, so if you don't want the scarabs to be CPU controlled, well I'm not sure what to do.



None.

Jul 24 2009, 3:54 pm Jesusfreak Post #4



There IS a way to make them human controlled, but I'm not sure how. Spellsword did it, I think...



None.

Jul 24 2009, 4:01 pm JaFF Post #5



As already mentioned, human players cannot run JunkYard Dog, hence it does not work for human-controlled reavers/scarabs. To my knowledge, there is no way around it. You will have to sacrifice a computer slot if you want the spell to work like that.

Post has been edited 2 time(s), last time on Jul 24 2009, 6:55 pm by JaFF.



None.

Jul 24 2009, 4:08 pm CecilSunkure Post #6



Oh, and be sure to put the trigger that runs the JD under the computer that owns the scarabs.



None.

Jul 24 2009, 9:04 pm Kimaru Post #7



Alright, then. Thanks.



None.

Jul 25 2009, 12:23 am SelfPossessed Post #8



Junkyard Dog can only be run for a computer player.

However, if you give the computer Reaver that shot the Scarab to a human player after running the Junkyard Dog AI script, it will maintain the AI script. You still need a computer slot though.



None.

Jul 25 2009, 4:35 am ShredderIV Post #9



omg, there was a map i played a while ago that actually did this pretty well... of course i think it did it some way by making them somehow attack to a location... I think it was called mage arena or something like that... if i find it i'll post it or something so you guys can figure it out.

edit: aha! found it in dldb, it's one of the final lvl spells, but i'm not much of a complex trigger guy myself, but enjoy! it was also made by Tank_7...
http://www.staredit.net/files/248/

edit again: o wait this uses 2 computer players... nvm... my suggestion would just be to make it a 3v3... or somehow hack sc to make it allow 10 players lol.

Post has been edited 1 time(s), last time on Jul 25 2009, 4:41 am by ShredderIV.



None.

Jul 25 2009, 7:20 am NudeRaider Post #10

We can't explain the universe, just describe it; and we don't know whether our theories are true, we just know they're not wrong. >Harald Lesch

Quote from ShredderIV
... or somehow hack sc to make it allow 10 players lol.
not possible.
You can use P9-12 for certain tasks but they can't run triggers, thus they can't have actions applied that only affect Current Player, like the Junkyard dog AI.




Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[05:02 am]
Oh_Man -- whereas just "press X to get 50 health back" is pretty mindless
[05:02 am]
Oh_Man -- because it adds anotherr level of player decision-making where u dont wanna walk too far away from the medic or u lose healing value
[05:01 am]
Oh_Man -- initially I thought it was weird why is he still using the basic pre-EUD medic healing system, but it's actually genius
[03:04 am]
Ultraviolet -- Vrael
Vrael shouted: I almost had a heart attack just thinking about calculating all the offsets it would take to do that kind of stuff
With the modern EUD editors, I don't think they're calculating nearly as many offsets as you might imagine. Still some fancy ass work that I'm sure took a ton of effort
[12:51 am]
Oh_Man -- definitely EUD
[09:35 pm]
Vrael -- I almost had a heart attack just thinking about calculating all the offsets it would take to do that kind of stuff
[09:35 pm]
Vrael -- that is insane
[09:35 pm]
Vrael -- damn is that all EUD effects?
[2024-5-04. : 10:53 pm]
Oh_Man -- https://youtu.be/MHOZptE-_-c are yall seeing this map? it's insane
[2024-5-04. : 1:05 am]
Vrael -- I won't stand for people going around saying things like im not a total madman
Please log in to shout.


Members Online: Roy