MPQDraft Installation/Application:
1) Extract LocUnlock.qdp to your MPQDraft folder
2) When creating a SEMPQ or loading an MPQ patch, make sure the "LocUnlock v1" plugin checkbox is checked
FireGraft v0.93 Installation/Application:
1) Extract LocUnlock.qdp to your FireGraft folder
2) When editing your project, go to the Plugins tab
3) Click tha add Add button under MPQDraft plugin, and select LocUnlock.qdp
Usage:
LocUnlock uses the EnableDebugMode (which is currently only supported by PyTRG) action to edit locations, and takes its parameters from the Start Locations (unit 214) death count of different players:
Player 2: Location number
Player 3: Values to change (bitmask: 1 = top left X, 2 = top left Y, 4 = bottom right X, 8 = bottom right Y, 16 = flags)
Player 4: Top left X
Player 5: Top left Y
Player 6: Bottom right X
Player 7: Bottom right Y
Player 8: Elevation flags (bitmask: 1 = Low Elevation, 2 = Medium Elevation, 4 = High Elevation, 8 = Low Air, 16 = Medium Air, 32 = High Air)
If the Location number or Values to change is 0, then the Anywhere location is automatically set to cover the whole map with all flags set (like how it starts for UMS maps).
Examples:
Make Anywhere cover the whole map at the start of the game:
Code
Trigger(All Players):
Conditions:
Always()
Actions:
EnableDebugMode()
Conditions:
Always()
Actions:
EnableDebugMode()
Cover 2x2 square of tiles in the top left with location 1 when switch 1 is set:
Code
Trigger(All Players):
Conditions:
Switch(1, Set)
Actions:
SetDeaths(Player 2, Start Location, Set To, 1)
SetDeaths(Player 3, Start Location, Set To, 31)
SetDeaths(Player 4, Start Location, Set To, 0)
SetDeaths(Player 5, Start Location, Set To, 0)
SetDeaths(Player 6, Start Location, Set To, 64)
SetDeaths(Player 7, Start Location, Set To, 64)
SetDeaths(Player 8, Start Location, Set To, 63)
EnableDebugMode()
Conditions:
Switch(1, Set)
Actions:
SetDeaths(Player 2, Start Location, Set To, 1)
SetDeaths(Player 3, Start Location, Set To, 31)
SetDeaths(Player 4, Start Location, Set To, 0)
SetDeaths(Player 5, Start Location, Set To, 0)
SetDeaths(Player 6, Start Location, Set To, 64)
SetDeaths(Player 7, Start Location, Set To, 64)
SetDeaths(Player 8, Start Location, Set To, 63)
EnableDebugMode()
Credits:
bajadulce: Giving me the idea to make this and for hosting!
Doodle: Some code I used to learn from
A_of-s_t: Helping, and being cool
DiscipleOfAdun: Supplied function to get the SC version and for mucho grande help!
Download: LocUnlock.zip
Post has been edited 1 time(s), last time on Sep 15 2008, 9:46 pm by poiuy_qwert.
[img=http://www.modcrafters.com/images/sig_logo.png]
We mod Starcraft.
PyMS (Local/Forums) | FNTGen | ProTRG (Local) | LocUnlock | BWAI Launcher
BroodWarAI.com (Forums) | StarCraft: Team Fortress (Forums/Local)
We mod Starcraft.
PyMS (Local/Forums) | FNTGen | ProTRG (Local) | LocUnlock | BWAI Launcher
BroodWarAI.com (Forums) | StarCraft: Team Fortress (Forums/Local)