Staredit Network

Staredit Network -> UMS Assistance -> Help with bunks
Report, edit, etc...Posted by Lord-Omega on 2006-09-15 at 23:21:04
i dont expext anyone to know this but i would realy like to know how to do random bunkers? like on the game random bunkers?
Report, edit, etc...Posted by Kenoli on 2006-09-16 at 01:41:03
Tutorial on randomization: here.
Report, edit, etc...Posted by Lord-Omega on 2006-09-16 at 08:51:14
ok so then im guessing but to make a map like random bunks i would have to have some trigs and locs like so

Locations:
- Supply Depot
- Bunker
-"grid of locs"
- Player 1's Area

Triggers

Trigger
Description:
SD
Players:
¤ P1
Conditions:
¤ Always
Actions:
¤ Center "Supply Depot"/"Bunker" onto all "Supply Depots"/"Bunkers"
¤ Preserve Trigger


This would obviously make that location follow that building, I'd also need 1 for bunker 2.


Trigger
Description:
Building Bunks
Players:
¤ P1
Conditions:
¤ Player 1 brings exactly 1 "Supply Depot" to "Supply Depot"
Actions:
¤ Remove all "Supply Depots" for player 1
¤ Clear Switch 1
¤ Preserve Trigger


This ould kill the supply depot


Trigger
Description:
random bunker
Players:
¤ P1
Conditions:
¤ Switch 1 is clear
Actions:
¤ Creat 1 "bunker" at "Supply Depot"
¤ Creat 1-4 "some units"
¤ Set switch 1
¤ Preserve Trigger


im guessing that i would actually need a grid of locs were player 1 is at and a switch for location.


Trigger
Description:
Bunkerization
Players:
¤ P1
Conditions:
¤ Always
Actions:
¤ Run AI script "order all anyunit, Enter closest bunker" at "Player 1's area"
¤ Preserve Trigger


and i would have to use the randomize switchs and all and i would need hypos right?
Report, edit, etc...Posted by Ahli on 2006-09-16 at 10:48:56
nice that u know my map happy.gif

-u need a "unitpool" where u create some random units (ghost, rine or flamer/or their heros, if u buyd heroes for the bunker)
-u need the random units (a few switches and hypertriggers)(the tutorial explains it^^)
-u need a "next bunker"-location. there u move 4 units and u can check which bunker should be build and some presents if u had more of the same units

-supply exists
-> -center locbunkerposition on supply -remove supply -create bunker -move the 4 random units from "next bunker" to the bunker -some wait(0sec)(gives the units time to get inside the bunker) -move the units from locbunker to locbunker (sometimes the units have to run around another building to reach their bunker, this just helps them) -some wait(0sec) - disable bunker - move it away - move the right building there(u create that building in another location) -preserve trigger

-bunker is inside the locbunkerposition
-> -ai-script to get the units inside the bunker -preserve trigger
Report, edit, etc...Posted by Kenoli on 2006-09-16 at 12:56:18
You can put it all into a single trigger per unit combination.
Trigger
Players:
¤ All Players.
Conditions:
¤ Current commands at least 1 Supply Depot.
¤ (Condition for whatever randomization you're using)
Actions:
¤ Preserve trigger.
¤ Center location labeled 'Supply' on Supply Depot owned by Current Player at 'Anywhere'.
¤ Remove 1 Supply Depot for Current Player at 'Supply'.
¤ Move 1 SCV for Current Player at 'Anywhere' to 'HoldSCV'.
¤ Create 1 Bunker at 'Supply' for Current Player.
¤ (Create 4 random units based on the condition you used)
¤ Execute AI script 'Enter Closest Bunker' at 'Supply'.
¤ Wait for 500 milliseconds.
¤ Move 1 Bunker for Current Player at 'Supply' to 'Bunker'.
¤ (Optional: Create some other building where the Bunker was)
¤ Move 1 SCV for Current Player at 'HoldSCV' to 'Supply'.
Report, edit, etc...Posted by Ahli on 2006-09-16 at 13:23:33
dont forget to disable happy.gif
Report, edit, etc...Posted by Dragoon-elf on 2006-09-16 at 13:32:54
lol well at least he is using something from you map I guess...but I am sure others have done it before you.
Report, edit, etc...Posted by Lord-Omega on 2006-09-17 at 01:20:00
k so how do i do the randomize switch?

and i did the trig, player builds a suplly depot at supply, remove supply depot at supply, make units and bunk, order units enter, disable doodad state, and it goes to the center of map.... every time. how do i fix it?
Next Page (1)