Then Goes into the model and adjusts the model size
example.
Model - Marine
Scale Maximum = Scale Maximum x .5
Scale Maximum = Scale Maximum x .5
Radius = Radius x .5
Selection Radius = Selection Radius x .5
Shadow Radius = Shadow Radius x.5
It has to be possible to use a script to changes the properties for every unit correct? rather then manually editing every single unit in the editor for every map i want to make?
Unit Group - Pick each unit in (Any units in (Entire map) owned by player Any Player matching Excluded: Missile, Dead, Hidden, with at most Any Amount) and do (Actions)
Actions
Unit - Set (Picked unit) Movement Speed to (((Picked unit) Movement Speed (Default)) * Multiplier)
Unit - Set (Picked unit) scale to ((100.0 * Multiplier)%, (100.0 * Multiplier)%, (100.0 * Multiplier)%) of its original size
That's what i came up with but it sets only movement speed and scale - the other things are not in the trigger editor, or well hidden
Ok, size I'll just let you use Sweetzombie's (I didn't review if his works, but I'll assume as much)
First, the 2 "typical" ways to modify a unit is using behavior - buff or effect - modify unit. For fun I did catalog edits.
Caveats of catalog edits: This modifies all units who share the same ID owned by the specified player. So as the example map shows, 2 friendly marines will be edited with the new stats, while the enemy Marine retains it's normal stats.
Comments show that minimap radius hacking returns an error, as does separation radius. I'm not sure the best course of action to edit these fields. If it's an option inside Behaviors, try that.
It should also be noted that many of these features could be done with Behavior - Buffs so it only occurs on one unit instead of all owned by player.
Rawr
Events
Game - Player Any Player types a chat message containing "change", matching Exactly
Local Variables
Conditions
Actions
------- You said "Movement", and "Speed Stat", but since i'm not sure what fields you're asking specifically here's just your Speed
Catalog - Set value of Units "Marine" "Speed" for player (Triggering player) to "3"
------- Movement Radius
Catalog - Set value of Units "Marine" "Radius" for player (Triggering player) to "1"
------- Separation Radius - Gives a write error
Catalog - Set value of Units "Marine" "SeparationRadius" for player (Triggering player) to "1"
------- Sight Radius
Catalog - Set value of Units "Marine" "Sight" for player (Triggering player) to "12"
------- Minimap Radius - Gives a write error
Catalog - Set value of Units "Marine" "MinimapRadius" for player (Triggering player) to "5"
Rundown of Catalog action:
Set value of <Units>: This is where in the catalog the data is found. Use the data editor to know what to put here.
"Marine": This is the ID of the catalog entry. Double clicking an entry in the data editor and looking at the ID: field (right near Suggest Name) is what is placed here.
"MinimapRadius": This is the field you want to edit. You can find this by selecting an item you want to modify and change it to "View Raw Data" (It's the binary with the helix button on the top center of screen). Find the field and usually take out the catalog name (e.g. CUnit_TechAliasArray becomes TechAliasArray in this data). Doing array fields can be confusing so I'll leave you to figure it out later.
for Player (Triggering player): This is who's game data will be modified. It will be a player-wide modification, not just unit.
to "5": This is the new value you want to set. Obviously converts to integer/reals as needed can be helpful.
Thats alot Xackery and SweetZombieJesus, Gives me some stuff to try out, this editor is so much more complex then sc1, hopefully i can figure out how to change all i want to change, i dont think its possible to edit every unit one at a time
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Is there anyway someone who knows alot about scripting can create a script that
makes a loop that takes all these variables for every unit and reduces them by 50% (or possibly another variable for % size for easy reuse)
-Movement - Radius-Movement - Seperation Radius-Movement - Speed-Stat - Sight Radius-UI - Mini Map RadiusThen Goes into the model and adjusts the model size example. Model - Marine Scale Maximum = Scale Maximum x .5 Scale Maximum = Scale Maximum x .5 Radius = Radius x .5 Selection Radius = Selection Radius x .5 Shadow Radius = Shadow Radius x.5
It has to be possible to use a script to changes the properties for every unit correct? rather then manually editing every single unit in the editor for every map i want to make?
Please some help!
That's what i came up with but it sets only movement speed and scale - the other things are not in the trigger editor, or well hidden
wouldnt that only change exisiting units? possibly someone knows a way to reference the default game data in a script and how to modify it?
also when i pick unit group it doesnt let me add units entire map
Just hook into the unit created event and set the scale whenever a unit is created.
Or edit the unit catalogs at runtime, overriding at the top of the tree might also work.
Ok, size I'll just let you use Sweetzombie's (I didn't review if his works, but I'll assume as much)
First, the 2 "typical" ways to modify a unit is using behavior - buff or effect - modify unit. For fun I did catalog edits.
Caveats of catalog edits: This modifies all units who share the same ID owned by the specified player. So as the example map shows, 2 friendly marines will be edited with the new stats, while the enemy Marine retains it's normal stats.
Comments show that minimap radius hacking returns an error, as does separation radius. I'm not sure the best course of action to edit these fields. If it's an option inside Behaviors, try that.
It should also be noted that many of these features could be done with Behavior - Buffs so it only occurs on one unit instead of all owned by player.
Rawr
Events
Game - Player Any Player types a chat message containing "change", matching Exactly
Local Variables
Conditions
Actions
------- You said "Movement", and "Speed Stat", but since i'm not sure what fields you're asking specifically here's just your Speed
Catalog - Set value of Units "Marine" "Speed" for player (Triggering player) to "3"
------- Movement Radius
Catalog - Set value of Units "Marine" "Radius" for player (Triggering player) to "1"
------- Separation Radius - Gives a write error
Catalog - Set value of Units "Marine" "SeparationRadius" for player (Triggering player) to "1"
------- Sight Radius
Catalog - Set value of Units "Marine" "Sight" for player (Triggering player) to "12"
------- Minimap Radius - Gives a write error
Catalog - Set value of Units "Marine" "MinimapRadius" for player (Triggering player) to "5"
Rundown of Catalog action:
Set value of <Units>: This is where in the catalog the data is found. Use the data editor to know what to put here.
"Marine": This is the ID of the catalog entry. Double clicking an entry in the data editor and looking at the ID: field (right near Suggest Name) is what is placed here.
"MinimapRadius": This is the field you want to edit. You can find this by selecting an item you want to modify and change it to "View Raw Data" (It's the binary with the helix button on the top center of screen). Find the field and usually take out the catalog name (e.g. CUnit_TechAliasArray becomes TechAliasArray in this data). Doing array fields can be confusing so I'll leave you to figure it out later.
for Player (Triggering player): This is who's game data will be modified. It will be a player-wide modification, not just unit.
to "5": This is the new value you want to set. Obviously converts to integer/reals as needed can be helpful.
Thats alot Xackery and SweetZombieJesus, Gives me some stuff to try out, this editor is so much more complex then sc1, hopefully i can figure out how to change all i want to change, i dont think its possible to edit every unit one at a time