Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: AI Script for Burrowing?
AI Script for Burrowing?
Aug 29 2008, 5:20 am
By: blacklight28  

Aug 29 2008, 5:20 am blacklight28 Post #1



Is there an AI script for burrowing a unit? Sorry if this question has been asked before.



None.

Aug 29 2008, 5:33 am Falkoner Post #2



Computer non-hero units will auto burrow if they can and no one is around, otherwise, no, there's no AI, you can create them burrowed though.



None.

Aug 29 2008, 11:41 pm Vi3t-X Post #3



And for heroes, you could use:

[ Variable ]
Center location X on Y
Create 1 Y burrowed at location X
Remove 1 Y [ Terrain Level ] at location X

Problems: You need 2 locations, sorry, 1 detecting the burrow and one detecting the level of terrain its going to be on.
Problems: Units heal, but is counterable via vHP system.



None.

Aug 29 2008, 11:48 pm stickynote Post #4



Can't you modify the unit properties? And change it to burrowed?



None.

Aug 30 2008, 12:38 am NudeRaider Post #5

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 Vi3t-X
And for heroes, you could use:

[ Variable ]
Center location X on Y
Create 1 Y burrowed at location X
Remove 1 Y [ Terrain Level ] at location X

Problems: You need 2 locations, sorry, 1 detecting the burrow and one detecting the level of terrain its going to be on.
Problems: Units heal, but is counterable via vHP system.
Switch the order of remove and create and it will work.
However this does not take care of properties like blinded or lost hp.

Quote from stickynote
Can't you modify the unit properties? And change it to burrowed?
No. There is no such action.




Aug 30 2008, 12:44 am stickynote Post #6



Lol. I got confused with the create unit with properties action.



None.

Aug 30 2008, 12:55 am blacklight28 Post #7



Damn it... Ok well, I don't want to create another topic so I'll ask it here. How do i make a Dark Templar for player 12 visible to other players. And I can't get the AI Script for turning on shared vision to work... I'm trying to get the computer, or player 12 to turn on shared vision to a player.



None.

Aug 30 2008, 1:50 am NudeRaider Post #8

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

You can only share vision to P1-8.

So you either need to hallucinate them (and replace before the hallucination time is over) or place detectors.

I got another idea however: Try creating it for a player you have vision to, then defeat the player. This should give the unit to P12 and maybe it also preserves the vision. But I doubt that.




Aug 30 2008, 10:06 pm Falkoner Post #9



The vision isn't preserved, as shown by all sorts of games when your ally leaves and you no longer can see their base. You're going to need to use detectors somehow.



None.

Aug 30 2008, 11:59 pm blacklight28 Post #10



Ok, then if that doesn't work, how do you get the computer to ally you? I'm trying to put a defense system in a town. But if you walk past it, it will attack you.



None.

Aug 31 2008, 12:31 am Falkoner Post #11



Set Alliance Status action..



None.

Sep 1 2008, 7:23 pm blacklight28 Post #12



Wow, didn't know that was a trigger... Thx



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[04:15 am]
DarkenedFantasies -- you eat lots of beans
[03:46 am]
IskatuMesk -- how do i get gas
[11:43 pm]
Moose -- you don't
[10:06 pm]
Zoan -- how do i get minerals
[2026-4-14. : 11:45 pm]
ClansAreForGays -- Anyone wanna played Skewed StarCraft?
[2026-4-14. : 12:07 am]
Vrael -- NudeRaider
NudeRaider shouted: Vrael ranting still is though
you're a gentleman and a scholar, thank you
[2026-4-13. : 10:07 pm]
NudeRaider -- ya why phone people when you can just write letters
[2026-4-13. : 9:37 pm]
IskatuMesk -- I have never and will never own a phone
[2026-4-13. : 9:15 pm]
NudeRaider -- Vrael ranting still is though
[2026-4-13. : 9:14 pm]
ClansAreForGays -- anticapitalism isnt edgy anymore
Please log in to shout.


Members Online: Vrael, O)FaRTy1billion[MM]