Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: [SOLVED] AI Script Enter Closest Bunker
[SOLVED] AI Script Enter Closest Bunker
This topic is locked. You can no longer write replies here.
Sep 1 2011, 8:42 pm
By: QPreach  

Sep 1 2011, 8:42 pm QPreach Post #1



I'm not real good at explaining so I'll just give you a brief,
One of the Marine ability is to place down a turret (Bunker + 3 Rines: Computer P8)
And I'm having trouble fixing it, any help would be nice.
You should be able to find this skill in Force 1 or Player 8, its called Marine Hero Skill 3
Thankyou very much



None.

Sep 1 2011, 8:53 pm lil-Inferno Post #2

Just here for the pie

You didn't give enough information to even identify your problem.




Sep 1 2011, 8:58 pm Azrael Post #3



Judging by his explanation, I assume he meant to provide the map, but didn't press "Attach This" after selecting it.




Sep 1 2011, 9:00 pm QPreach Post #4



Eeer. Sorry. So what I want is to have a skill for my Marine to be able to place down a Computer Bunker with 3 Jim raynor in it.
I got down the Bunker and the 3 marines, its just my AI script doesnt work.
Like,
Create 1 Bunker at [Location 1]
Creatre 3 Marines at [Location 1]
Run AI Script Enter Cloest bunker



None.

Sep 1 2011, 9:01 pm QPreach Post #5



Quote from name:Azrael.Wrath
Judging by his explanation, I assume he meant to provide the map, but didn't press "Attach This" after selecting it.
Yeah, sorry. Here it is

Attachments:
Preachlines.scx
Hits: 1 Size: 68.87kb



None.

Sep 1 2011, 9:05 pm Azrael Post #6



The bunker and units are owned by Player 8, but the AI script is running for Current Player.

You could set a death count for Current Player instead, then have Player 8 run the script and reset the death count.




Sep 1 2011, 9:20 pm QPreach Post #7



What do you mean?
Can you please give example



None.

Sep 1 2011, 9:45 pm Azrael Post #8



You have the trigger condition "Current Player commands at least 1 Terran Marine".

The player who has the 1 Terran Marine is who the trigger runs for.

So, if Player 2 controls the 1 Terran Marine, the trigger runs for him.

When it gets to "Execute AI Script: Enter closest bunker" it is still for Player 2 because the trigger only ran for him. The bunker and the hero marines are owned by Player 8 though, so it doesn't work. The "Execute AI Script" is not running for Player 8, it's running for Player 2.

The two ways to fix this are:

1) Create the bunker and 3 hero marines for Current Player instead, then Execute AI Script like you are already, then give all the units to Player 8 afterwards.

or

2) Create bunker and 3 hero marines for Player 8 like you already are, then set a death count (let's say "Set death count of Cantina to 1"). Then make a new trigger for Player 8 that is like "When death count of Cantina = 1, Execute AI Script". Then it will execute it for Player 8, and since Player 8 owns the units involved, it will work.




Sep 1 2011, 10:03 pm QPreach Post #9



Ah I see thankyou very much
So,
Create Bunker 3 Jim Raynor
Set Deathcount for Player 8 1

Trigger 2
Player 8 has suffer 1 Deathcount

Action
Run AI Script
Is that right?

Edit: Uhm I have another question, how do I place bunkers, that it won't display the Unit Unplaceable?

Post has been edited 2 time(s), last time on Sep 1 2011, 10:34 pm by Roy. Reason: Try not to double-post



None.

Sep 1 2011, 10:15 pm Ahli Post #10

I do stuff and thingies... Try widening and reducing the number of small nooks and crannies to correct the problem.

Quote from QPreach
Uhm I have another question, how do I place bunkers, that it won't display the Unit Unplaceable?
Move the units that are within a 3x2 region away and back to that position.

Else you can try to move a preplaced disruption web and move it there. It won't stack onto ground units and unpassable terrain, so it is more likely that you can create a bunker there.




Sep 1 2011, 10:19 pm QPreach Post #11



Quote from Ahli
Quote from QPreach
Uhm I have another question, how do I place bunkers, that it won't display the Unit Unplaceable?
Move the units that are within a 3x2 region away and back to that position.

Else you can try to move a preplaced disruption web and move it there. It won't stack onto ground units and unpassable terrain, so it is more likely that you can create a bunker there.


Uh... I really had no idea what you just typed lol...



None.

Sep 1 2011, 10:45 pm NudeRaider Post #12

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

1. center location 2x3 on place for bunker
2. move all units at 2x3 to temp
3. create bunker at 2x3
4. move all units at temp to 2x3




Sep 3 2011, 6:54 pm Ahli Post #13

I do stuff and thingies... Try widening and reducing the number of small nooks and crannies to correct the problem.

Quote from NudeRaider
1. center location 2x3 on place for bunker
2. move all units at 2x3 to temp
3. create bunker at 2x3
4. move all units at temp to 2x3
Bunker is 3x2.




Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[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
[2024-5-04. : 1:05 am]
Vrael -- that's better
[2024-5-04. : 12:39 am]
NudeRaider -- can confirm, Vrael is a total madman
[2024-5-03. : 10:18 pm]
Vrael -- who says I'm not a total madman?
[2024-5-03. : 2:26 pm]
UndeadStar -- Vrael, since the ad messages get removed, you look like a total madman for someone that come late
[2024-5-02. : 1:19 pm]
Vrael -- IM GONNA MANUFACTURE SOME SPORTBALL EQUIPMENT WHERE THE SUN DONT SHINE BOY
[2024-5-02. : 1:35 am]
Ultraviolet -- Vrael
Vrael shouted: NEED SOME SPORTBALL> WE GOT YOUR SPORTBALL EQUIPMENT MANUFACTURING
Gonna put deez sportballs in your mouth
[2024-5-01. : 1:24 pm]
Vrael -- NEED SOME SPORTBALL> WE GOT YOUR SPORTBALL EQUIPMENT MANUFACTURING
[2024-4-30. : 5:08 pm]
Oh_Man -- https://youtu.be/lGxUOgfmUCQ
Please log in to shout.


Members Online: lil-Inferno, Zycorax, Roy