Staredit Network

Staredit Network -> UMS Assistance -> Invisible Bunks
Report, edit, etc...Posted by CaReBeaR on 2005-07-26 at 21:05:56
Ok i wanna make bunkers invisible like in those so many defences, but then i wanna create a pylon were the bunker would b. I did what i thought was the right triggers, and it works the first time but then the 2nd time the bunker wont move away. Look at what i did --v and if u no what i did wrong and what is causing the bunker to not move away after the 1st time doing the trigger plz tell me.

Trigger
Description:
Make Invisible Bunks
Players:
¤ Player 1
¤ 1
¤ 1
¤ 1
Conditions:
¤ Player 1 comands exactly 1 Supply depot
Actions:
¤ Move all scv owned by player 1 at anywhere to scv home
¤ center location labeled supply depot player 1 on Supply depot owned by player 1 at anywhere
¤ Remove all supply depot at supply depot player 1
¤ Create 1 bunker at supplydepot player 1
¤ create 3 marine at supply depot player 1
¤ Exectute ai script enter closest bunker
¤ wait 100 miliseconds
¤ Move all bunker owned by player 1 at player 1 supplydepot to Player1 Bunker Place
¤ Create 1 protoss pylon at location Supply depot player 1
¤ Move all terran scv owned by player 1 at scv home to player 1 supply depot
¤ preserve trigger
¤ Comment



That was my first time i used that trigger coding so i kinda messed up in the players part... its only for p1.
Report, edit, etc...Posted by I-X-King-X-I on 2005-07-26 at 21:13:49
well when i do mine i have 4 triggers working the locations and in the defense im using i used what Oo.Vic.oO did with the able to pick what units you want with a ling

But if you just move it anywhere it should work
Report, edit, etc...Posted by CaReBeaR on 2005-07-26 at 21:22:30
Well i dont no if i made it clear up there, but the major problem is that the trigger doesnt work twice, and No its got nothing to do with preserve trigger
I make the game, take my worker and build a supply depot, the trigger works perfectly, the bunker moves i get the pylon yada yada but then when i build another bunker, when it gets the point to move the bunker it just doesnt and i get unplacalbe pylon..
Report, edit, etc...Posted by I-X-King-X-I on 2005-07-26 at 21:54:50
pinch.gif , ok have a island or some place with some bunkers, then make that island or wherever not visiable to you

then have 2 locations, 'p1supply' and 'p1bunker' (you can have differnet names of cours)

then have a location 'p8bunkers'
then put a location over the bunker island 'bunkers'

have a trigger always putting 'p1supply' on the depots
same with 'p1bunker' except center them on bunkers
then have a trigger thats centering 'p8bunkers' on the bunkers you have laid out

then do the triggers

gah i made that sound more complicated than it is but if you understand what im saying it should work more than once
Report, edit, etc...Posted by Urmom(U) on 2005-07-26 at 21:59:16
tis the conditions. you are moving the bunker and making a new one so its 2 instead of exactly 1. use the "bring" command and make it the size of the field you can build on.
Report, edit, etc...Posted by CaReBeaR on 2005-07-26 at 22:02:31
QUOTE
tis the conditions. you are moving the bunker and making a new one so its 2 instead of exactly 1. use the "bring" command and make it the size of the field you can build on.

But i removed the previous supply depot so wouldnt it not count towards commanding 1?

QUOTE
then have a trigger thats centering 'p8bunkers' on the bunkers you have laid out

What do u mean by that? p8 needs bunks?
Report, edit, etc...Posted by I-X-King-X-I on 2005-07-26 at 22:06:21
well yes, have a island with bunks for player 8, if you got xtra use base mode to lay out the bunks after you create the lil place for them

then have a trigger like


Trigger
Description:
p8 bunks
Players:
¤ Player 8
Conditions:
¤ Always
Actions:
¤ Center location labled 'p8bunkers' on Terran Bunkers for current player at 'Bunkers'


Report, edit, etc...Posted by Urmom(U) on 2005-07-26 at 22:10:25
QUOTE(I-X-King-X-I @ Jul 26 2005, 10:06 PM)
well yes, have a island with bunks for player 8, if you got xtra use base mode to lay out the bunks after you create the lil place for them

then have a trigger like





Trigger
Description:
p8 bunks
Players:
¤ Player 8
Conditions:
¤ Always
Actions:
¤ Center location labled 'p8bunkers' on Terran Bunkers for current player at 'Bunkers'

[right][snapback]271313[/snapback][/right]


i dont see what that would accomplish but ya ur right, i accidently got bunker and depot confused in ur trigger
Report, edit, etc...Posted by CaReBeaR on 2005-07-26 at 22:10:51
QUOTE
well yes, have a island with bunks for player 8, if you got xtra use base mode to lay out the bunks after you create the lil place for them

then have a trigger like

Ok but how does that come into the triggers that i showd up there?
Report, edit, etc...Posted by Urmom(U) on 2005-07-26 at 22:12:34
that would just center on the bottom left bunker for p8 forever basically i think so id ignore it
Report, edit, etc...Posted by I-X-King-X-I on 2005-07-26 at 22:22:50
ok make these triggers and it should work (and you will need like an island of p8 bunkers and an scv for the player tongue.gif )
Locations needed
'p1supply' 'p1bunker' 'bunker' 'p8bunker' 'building area' 'scv'


Trigger
Description:
moving locations
Players:
¤ Player 1
Conditions:
¤ always
Actions:
¤ Center location labeled 'p1bunkers' on Terran Bunkers owned by current player at 'Building Area
¤ Preserve Trigger


and


Trigger
Description:
moving locations
Players:
¤ Player 1
Conditions:
¤ Current Player commands exactly 1 Supply Depot
Actions:
¤ Center location labeled 'p1supply' on Supply Depots owned by current player at 'Building Area'
¤ Preserve Trigger


and


Trigger
Description:
moving locations
Players:
¤ Player 1
Conditions:
¤ Current playing brings exaclty 3 men to 'p1supply'
¤ Current player brings exaclt 0 scv to 'p1supply'
Actions:
¤ Remove all buildings at 'p8bunkers'
¤ Move 1 terran bunker for current player at 'p1supply' to 'p8bunkers'
¤ Move all Scv for current player at 'Scv' to 'p1supply'
¤ Preserve Trigger


and


Trigger
Description:
moving locations
Players:
¤ Player 8
Conditions:
¤ Always
Actions:
¤ Center location labeled 'p8bunkers' on Terran Bunker owned by Current player at 'Bunkers'
¤ Preserve Trigger


then for your bunker trigger


Trigger
Description:
Creating Bunker
Players:
¤ Player 1
Conditions:
¤ Current Player commands exaclty 1 supply depot
Actions:
¤ Move all Scv at 'Building Area' to 'Scv'
¤ Remove all Terran Supply Depot at 'p1supply'
¤ Create 1 Terran Bunker at 'p1supply'
¤ Create 3 Marines at 'p1supply' for current player
¤ Execute Ai Script 'Enter Closet Bunker' at 'anywhere'
¤ Preserve Trigger


now using those triggers it should work out just fine

edit - sry for taking so long to post it
Next Page (1)