Why use a behavior? Setting the units Death Timer to -1 makes so you can grab them to apply actions to them. -1 makes it so the time it takes for the unit to fully die is infinite then you would just move the unit to a point or region and resurrect it.
Best you could do is suggest that the player turns them on through a tip or text message. My guess is that Blizzard won't allow us to access the players main settings, which is where the subtitle option is stored. This is for security reasons, as a random map could intentionally change the players settings, messing them all up. It's the same reason we are not able to pull the players name as a string, only as text.
Edit: Alternatively, you could create a dialog with the background hidden and use that to show the subtitles. It's more work, but it would make sure that everyone playing the map views your subtitles without issue. It also gives you full creative control, as you could design it however you want without having to deal with the XML UI files.
As far as I'm aware the styles have preset properties that make the style; including font size. You'd have to make custom styles; each with different font sizes to fit the each of the sizes it can be changed to. I'm pretty sure that's how the styles work within the Galaxy Editor.
Simply add all players into an array and then randomly set them into new teams/player groups. Then base all the team stuff through those groups instead of the the default team system.
If you need more detailed info let me know.
Edit:
Here's an untested base example of what you would need to do.
So I have a dialog item - portrait that I'm trying to have display within a specific dialog. When I create the item and set it to a specific dialog it never attaches to the specific dialog or any dialog. It displays behind every dialog like it not attached to anything.
Anyone know of a fix or what I might be doing wrong. Which using the exact same process, every other item type displays fine.
I have an IF statement within an action definition that errors when the script tries to compile (when I try to save).
The error is "Expected a Boolean expression".
The weird part is that the line it is referring to is a condition that adds two integers to see if when added they are greater then a constant integer.
Why would a condition without a Boolean expect a Boolean expression?
Full trigger: Keep in mind the trigger is still a work in progress.
Loot-GenerateOptions:ActionReturnType:(None)ParametersGrammarText:Loot-Generate()HintText:(None)CustomScriptCodeLocalVariablesnItems=0<Integer>PreviousItem=0<Integer[3]>i=1<Integer>ActionsGeneral-Pickeachintegerfrom1toLoot-nRegions,anddo(Actions)ActionsGeneral-If(Conditions)thendo(Actions)elsedo(Actions)IfAndConditions((Triggeringunit)isinLoot-Region[(Pickedinteger)])==TrueRegion-Difficulty[(Pickedinteger)]==1ThenGeneral-If(Conditions)thendo(Actions)elsedo(Actions)If(Inventory-TotalItems+nItems)>Inventory-cMaxSlotsThenVariable-SetnItems=((Inventory-TotalItems+nItems)-Inventory-cMaxSlots)General-Repeat(Actions)nItemstimesActionsVariable-SetLoot-Item=(Randomintegerbetween0and3)Variable-SetLoot-Quantity=(Randomintegerbetween1andLoot-MaxQuantity)General-If(Conditions)thendo(Actions)elsedo(Actions)IfAndConditionsLoot-Item!=PreviousItem[1]Loot-Item!=PreviousItem[2]Then------- Displays the quantity and name of the item found.UI-Display(Combine((Text(Loot-Quantity))," ",Items-Items[Loot-Item].Name))for(Playergroup((Triggeringplayer)))toSubtitleareaVariable-SetPreviousItem[i]=Loot-ItemVariable-Modifyi:+1Trigger-RunLoot-AddtoInventory(CheckConditions,Don't Wait until it finishes)ElseElseVariable-SetnItems=(Randomintegerbetween1and3)General-Repeat(Actions)nItemstimesActionsVariable-SetLoot-Item=(Randomintegerbetween0and3)Variable-SetLoot-Quantity=(Randomintegerbetween1andLoot-MaxQuantity)General-If(Conditions)thendo(Actions)elsedo(Actions)IfAndConditionsLoot-Item!=PreviousItem[1]Loot-Item!=PreviousItem[2]ThenUI-Display(Combine((Text(Loot-Quantity))," ",Items-Items[Loot-Item].Name))for(Playergroup((Triggeringplayer)))toSubtitleareaUnit-Removeinventoryitem(Triggeringinventoryitem)Variable-SetPreviousItem[i]=Loot-ItemVariable-Modifyi:+1Trigger-RunLoot-AddtoInventory(CheckConditions,Don't Wait until it finishes)ElseElseUI-Display"Not in Region"for(Allplayers)toErrorarea
Of course it's possible but that doesn't mean it's supported by the Editor or will be easy to do. Basically you would have to find or build a third-party program that will communicate with Sc2. Sort of like a bot would with games like Diablo. If X button is pressed perform this. This however would take a tremendous amount of time since I doubt anyone would want controller support for Sc2 due to the numerous amounts of hot-keys. It wouldn't be efficient.
Now. A similar approach would be to set actions within the trigger editor that could perform the actions you would expect a controller to. Example: Move between dialog buttons with the arrow keys on the keyboard instead of the mouse.
The only thing I'm not sure of is why it would matter if the commands would be coming from a controller or not. Since that is apart of the programming process and is not apart of the actual game-play it's self.
Hardly good with XML, the errors I keep getting are:
[InfoPaneHero] with the same name as an already existing child.
XML: mismatched tag:
I've looked over my code a couple times now and can't seem to find out why. What I'm trying to do is set everything but Damage, Armor, Experience, Behaviors, and Attributes to Visible val="False". Then move them how I want them.
I have an target effect ability that uses a Search Area, Persistent, Apply Behavior, and Damage Effect, The idea is to just simply cast an AoE and all enemy units/heroes in the area take damage and get their movement speed reduced. The ability works all the way up until the beam. The beam being used is Zurvans Lightning Breath Beam from the actor of the same name. Right now, I have the event set up as to create the actor when the Damage Effect starts. The issue is the beam is created directly on the target.
Example:
This is more to what I was hoping for...
If anyone has any idea how to make the second one work that would be awesome. If you need anymore info just let me know.
Hey, I was wondering if anyone knew how to use a unit as a resource for an ability? What I mean is, I have a hero with an ability that spawns a couple Infested Terrans. I'm wanting to have other abilities to use those Infested Terrans to do things. Such as, when X ability is used to make 1 of the Infested Terrans to move to the target unit and stun the target unit than kill the used Infested Terran. If no Infested Terrans are up, than the ability can't be used.
Any help would be great, since most of my knowledge is with triggers not data.
Thanks.
When making changes to Anchors and then checking in-game they're fine, but once I close the UI Module the values reset to what they previously were. The values are only changed in-game, within the UI Module the values are correct. In order to fix this, I have to re-open the UI Module, set them to different values, save, switch them back to what they should be, save, and then they work again.
0
@Mugen245: Go
If you need someone to work on terrain or triggers let me know.
0
Why use a behavior? Setting the units Death Timer to -1 makes so you can grab them to apply actions to them. -1 makes it so the time it takes for the unit to fully die is infinite then you would just move the unit to a point or region and resurrect it.
0
@LucidIguana: Go
Best you could do is suggest that the player turns them on through a tip or text message. My guess is that Blizzard won't allow us to access the players main settings, which is where the subtitle option is stored. This is for security reasons, as a random map could intentionally change the players settings, messing them all up. It's the same reason we are not able to pull the players name as a string, only as text.
Edit: Alternatively, you could create a dialog with the background hidden and use that to show the subtitles. It's more work, but it would make sure that everyone playing the map views your subtitles without issue. It also gives you full creative control, as you could design it however you want without having to deal with the XML UI files.
0
As far as I'm aware the styles have preset properties that make the style; including font size. You'd have to make custom styles; each with different font sizes to fit the each of the sizes it can be changed to. I'm pretty sure that's how the styles work within the Galaxy Editor.
0
@Dangel1234: Go
Simply add all players into an array and then randomly set them into new teams/player groups. Then base all the team stuff through those groups instead of the the default team system.
If you need more detailed info let me know.
Edit: Here's an untested base example of what you would need to do.
Global Variables:
Teams = (Empty player group) <Player Group[4]>
nMaxPlayers = 12 <Integer>
nMaxTeamPlayers = 3 <Integer>
nTotalPlayers = 0 <Integer>
Trigger:
0
@GlornII: Go
Beautiful, thank you.
0
So I have a dialog item - portrait that I'm trying to have display within a specific dialog. When I create the item and set it to a specific dialog it never attaches to the specific dialog or any dialog. It displays behind every dialog like it not attached to anything.
Anyone know of a fix or what I might be doing wrong. Which using the exact same process, every other item type displays fine.
0
I have an IF statement within an action definition that errors when the script tries to compile (when I try to save).
The error is "Expected a Boolean expression".
The weird part is that the line it is referring to is a condition that adds two integers to see if when added they are greater then a constant integer.
"(Inventory - Total Items + nItems) > Inventory - cMax Slots"
Why would a condition without a Boolean expect a Boolean expression?
Full trigger: Keep in mind the trigger is still a work in progress.
0
@Mugen245: Go
You do understand that it's a text tag not an image tag?
0
@Cardanis: Go
Of course it's possible but that doesn't mean it's supported by the Editor or will be easy to do. Basically you would have to find or build a third-party program that will communicate with Sc2. Sort of like a bot would with games like Diablo. If X button is pressed perform this. This however would take a tremendous amount of time since I doubt anyone would want controller support for Sc2 due to the numerous amounts of hot-keys. It wouldn't be efficient.
Now. A similar approach would be to set actions within the trigger editor that could perform the actions you would expect a controller to. Example: Move between dialog buttons with the arrow keys on the keyboard instead of the mouse.
The only thing I'm not sure of is why it would matter if the commands would be coming from a controller or not. Since that is apart of the programming process and is not apart of the actual game-play it's self.
Like you said, it's a prototype.
0
Hardly good with XML, the errors I keep getting are:
[InfoPaneHero] with the same name as an already existing child.
XML: mismatched tag:
I've looked over my code a couple times now and can't seem to find out why. What I'm trying to do is set everything but Damage, Armor, Experience, Behaviors, and Attributes to Visible val="False". Then move them how I want them.
Code Below...
0
Deleted the ability and remade it from scratch, got it to work now!
0
I have an target effect ability that uses a Search Area, Persistent, Apply Behavior, and Damage Effect, The idea is to just simply cast an AoE and all enemy units/heroes in the area take damage and get their movement speed reduced. The ability works all the way up until the beam. The beam being used is Zurvans Lightning Breath Beam from the actor of the same name. Right now, I have the event set up as to create the actor when the Damage Effect starts. The issue is the beam is created directly on the target. Example:
This is more to what I was hoping for...
If anyone has any idea how to make the second one work that would be awesome. If you need anymore info just let me know.
0
Hey, I was wondering if anyone knew how to use a unit as a resource for an ability? What I mean is, I have a hero with an ability that spawns a couple Infested Terrans. I'm wanting to have other abilities to use those Infested Terrans to do things. Such as, when X ability is used to make 1 of the Infested Terrans to move to the target unit and stun the target unit than kill the used Infested Terran. If no Infested Terrans are up, than the ability can't be used.
Any help would be great, since most of my knowledge is with triggers not data.
Thanks.
0
When making changes to Anchors and then checking in-game they're fine, but once I close the UI Module the values reset to what they previously were. The values are only changed in-game, within the UI Module the values are correct. In order to fix this, I have to re-open the UI Module, set them to different values, save, switch them back to what they should be, save, and then they work again.
Weird bug, anyone else experiencing this?