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.
[04:49 pm]
Ultraviolet -- SEN membership is like the supreme court, we're here for life baby
[04:13 am]
O)FaRTy1billion[MM] -- ya
[02:46 am]
slayer766 -- wtf farty you around still hahaah
[2024-11-09. : 4:24 pm]
Oh_Man -- da real donwano
da real donwano shouted: Who can crack into an old protected map & remove the trigger for insta-defeat for playing solo?
me
[2024-11-09. : 12:48 am]
RIVE -- j
[2024-11-08. : 10:41 pm]
lil-Inferno -- p
[2024-11-07. : 7:38 pm]
Zoan -- M
[2024-11-07. : 11:26 am]
Zycorax -- F
[2024-11-06. : 7:31 pm]
O)FaRTy1billion[MM] -- L
[2024-11-06. : 9:45 am]
TF- -- Blumph win :wob:
Please log in to shout.


Members Online: jjf28, Roy, UndeadStar