I am making an RP map and it's nearly completed BUT there are just a few things i just can't seem to get.
@adddamage
I cannot do this as there is no trigger that adds to a unit's damage.
@setname NAME HERE
Believe it or not, i cannot find how to SET a units name so instead of the selected unit saying MARINE it will be called NAME.
These are very annoying as i am almost done my map and they are both very important. I am making my map strictly on GUI. I have NO experience with coding for starcraft 2. But i will accept if someone could just give me a code and i would insert it into my game.
Help appreciated.
EDIT: also i will need help with @addweapon UNITNAME(WEAPON)
so that would give the unit a weapon based off of a unit name not a unit in game, but a unit TYPE. help.
1) There is no real way to increase a unit's damage. You have some workarounds at your disposal, however:
- - 1) You can use "Catalog - Set Catalog Field Value" to change the amount of damage of the weapon's damage effect.
- - 2) You can just change the unit's weapons to similar weapons with more/less damage.
- - 3) You can use triggers to apply an additional damage effect to targets hit by your dude.
- - 4) You can add a behavior which increases damage.
2) If I remember correctly there is no way to change a unit's name in-game.
1) There is no real way to increase a unit's damage. You have some workarounds at your disposal, however:
- 1) You can use "Catalog - Set Catalog Field Value" to change the amount of damage of the weapon's damage effect.
- 2) You can just change the unit's weapons to similar weapons with more/less damage.
- 3) You can use triggers to apply an additional damage effect to targets hit by your dude.
- 4) You can add a behavior which increases damage.
2) If I remember correctly there is no way to change a unit's name in-game.
Thank you for the help, but it is possible. I was inspired to make this map based on one that can do all the things i need help with. I will try those work around, but it needs to be a value that was what the player Said. so it cannot be a new weapon with more damage. as i would have to create infinite amounts of weapons.
I'm @ work so I can't look at the editor to figure out the solution but talking it through always helps me.
For the damage: every unit has a weapon attached to them in their data. You can probably find I trigger to remove and swap that weapon. If you want this to be seemless just make the weapons have the same name. I saw a tutorial on YouTube that showed a editor remove a zealots psi blades. Search : items and loot. I think you may find it helpful.
As for naming I'll really have to look at the editor. But I'd imagine you would need to make a string variable to place in the name location of the units data.
no i couldn't find out how to get the add damage to work. or any of them. the annoying part is i can't find any function that will actually give a unit damage. And for some reason, when i try to add a weapon if i convert the weapon to a unit, it wants a UNIT not a unit type. So that is also difficult seeing as its a string trigger. Then the setname i cant even remotely understand. It wont let me edit the unit's name through a trigger. all of theses commands are variable strings btw. so like all of em are used through strings and the values are all variables.
I think thesundaypaper has the right idea. What you do is for every type of damage increase that you would like to impliment, you create an upgrade in the data editor. This upgrade should affect the unit whose damage you want to change, and add the damage you would like to. Then, when the trigger runs where you want to change the unit's damage, you just complete the upgrade for the owning player, and bam, the unit's damage changed.
The naming thing I am not sure about, because I have never looked into it. If there is no built in way to do it though, you could however essentially create a map with your variables if you needed to map specific units to new names. You could create two arrays, one of type "Unit", and one of type "Text". The elements in these to arrays that share an index would be `mapped` to each other. Whenever you want to name a unit, you toss a reference to your unit in the next available element of the first array, and the name you want them to be named in the same element of the second array. You then write a function (within the GUI) that takes a Unit, and returns Text. This function would loop through "For each picked integer from 0 to unitArray size - 1" and compare the passed unit to the unit in the array. If they match, return the name that you stored at the same index in the text array.
As far as adding damage to a unit can't you apply a Stacking Buff with +1 damage, then convert the String to an Integer and apply that buff as many times as the converted number? Or something of that nature. As far as Setting names, the only Setname I know of is when you say like:
setname-Example
-Hello
Example: Hello
(Not as good when not in game, but again just an Example)
From what i've seen in the editor you can not change the actual units name, but you can set Strings with a name and whenever you say the associated command it will display the name.
I'm creating a variable. Not an upgrade. i want upgrades possible. but i'm not going to be going and making 93258236793297682378923698723ue86532798763296728396367923467984362467864637 upgrades, one for each unit and each units weapon. No, its not smart. Surely there is a way which i do not know about that allows you to buff the unit adding # damage. But i don't know how. I am it's nice of you to try, but i want individual units with individual damage additions. so basically i need to make a buff, but i don't know how to, and i need to se that buff each time its used to the string. which i also don't know how to do. sorry if this sounds like i'm trolling you but im not, The whole concept of upgrades on units is when i think hard about how i could do it. ending up to be a painful paradox in my brain.
about the naming you just said.
what?? that made no sense :S
@handlmaps
You kind of have the idea that i am triny to get at, but i don't know how to create a buff like that, can you explain it a little more. I have a massive head ache from trying to figure this out, after all its been 3 days since i tried.
playing around in the editor trying to make something like that right now.
Thanks for the assistance, i've been doing that for days. :S. The problem mostly is there is no effect that globally can add damage. it can only specifically add damage to a weapon. Not any weapon, a specified weapon.
I am making an RP map and it's nearly completed BUT there are just a few things i just can't seem to get. @adddamage
I cannot do this as there is no trigger that adds to a unit's damage. @setname NAME HERE Believe it or not, i cannot find how to SET a units name so instead of the selected unit saying MARINE it will be called NAME. These are very annoying as i am almost done my map and they are both very important. I am making my map strictly on GUI. I have NO experience with coding for starcraft 2. But i will accept if someone could just give me a code and i would insert it into my game. Help appreciated.
EDIT: also i will need help with @addweapon UNITNAME(WEAPON) so that would give the unit a weapon based off of a unit name not a unit in game, but a unit TYPE. help.
Well,
1) There is no real way to increase a unit's damage. You have some workarounds at your disposal, however:
- - 1) You can use "Catalog - Set Catalog Field Value" to change the amount of damage of the weapon's damage effect.
- - 2) You can just change the unit's weapons to similar weapons with more/less damage.
- - 3) You can use triggers to apply an additional damage effect to targets hit by your dude.
- - 4) You can add a behavior which increases damage.
2) If I remember correctly there is no way to change a unit's name in-game.
Thank you for the help, but it is possible. I was inspired to make this map based on one that can do all the things i need help with. I will try those work around, but it needs to be a value that was what the player Said. so it cannot be a new weapon with more damage. as i would have to create infinite amounts of weapons.
Bump i still need help.
@ShakiShingi: Go
Bump this is actually a problem every second of this thread being open i am trying get working :(
I'm @ work so I can't look at the editor to figure out the solution but talking it through always helps me.
For the damage: every unit has a weapon attached to them in their data. You can probably find I trigger to remove and swap that weapon. If you want this to be seemless just make the weapons have the same name. I saw a tutorial on YouTube that showed a editor remove a zealots psi blades. Search : items and loot. I think you may find it helpful.
As for naming I'll really have to look at the editor. But I'd imagine you would need to make a string variable to place in the name location of the units data.
Gl
bump my problems not been resolved.
Did you use the weapon swap for damage incriments?
What I mean is, did you find a solution for add damage but not change unit name, or still no answer for both?
@BasicGear: Go
no i couldn't find out how to get the add damage to work. or any of them. the annoying part is i can't find any function that will actually give a unit damage. And for some reason, when i try to add a weapon if i convert the weapon to a unit, it wants a UNIT not a unit type. So that is also difficult seeing as its a string trigger. Then the setname i cant even remotely understand. It wont let me edit the unit's name through a trigger. all of theses commands are variable strings btw. so like all of em are used through strings and the values are all variables.
do an upgrade that gives the unit more damage.
@thesundaypaper: Go
its a string variable dude. not an upgrade those are entirely seperate.
@ShakiShingi: Go
I think thesundaypaper has the right idea. What you do is for every type of damage increase that you would like to impliment, you create an upgrade in the data editor. This upgrade should affect the unit whose damage you want to change, and add the damage you would like to. Then, when the trigger runs where you want to change the unit's damage, you just complete the upgrade for the owning player, and bam, the unit's damage changed.
The naming thing I am not sure about, because I have never looked into it. If there is no built in way to do it though, you could however essentially create a map with your variables if you needed to map specific units to new names. You could create two arrays, one of type "Unit", and one of type "Text". The elements in these to arrays that share an index would be `mapped` to each other. Whenever you want to name a unit, you toss a reference to your unit in the next available element of the first array, and the name you want them to be named in the same element of the second array. You then write a function (within the GUI) that takes a Unit, and returns Text. This function would loop through "For each picked integer from 0 to unitArray size - 1" and compare the passed unit to the unit in the array. If they match, return the name that you stored at the same index in the text array.
As far as adding damage to a unit can't you apply a Stacking Buff with +1 damage, then convert the String to an Integer and apply that buff as many times as the converted number? Or something of that nature. As far as Setting names, the only Setname I know of is when you say like:
setname-Example
-Hello
Example: Hello
(Not as good when not in game, but again just an Example)
From what i've seen in the editor you can not change the actual units name, but you can set Strings with a name and whenever you say the associated command it will display the name.
@Honz: Go
I'm creating a variable. Not an upgrade. i want upgrades possible. but i'm not going to be going and making 93258236793297682378923698723ue86532798763296728396367923467984362467864637 upgrades, one for each unit and each units weapon. No, its not smart. Surely there is a way which i do not know about that allows you to buff the unit adding # damage. But i don't know how. I am it's nice of you to try, but i want individual units with individual damage additions. so basically i need to make a buff, but i don't know how to, and i need to se that buff each time its used to the string. which i also don't know how to do. sorry if this sounds like i'm trolling you but im not, The whole concept of upgrades on units is when i think hard about how i could do it. ending up to be a painful paradox in my brain.
about the naming you just said. what?? that made no sense :S
@handlmaps
You kind of have the idea that i am triny to get at, but i don't know how to create a buff like that, can you explain it a little more. I have a massive head ache from trying to figure this out, after all its been 3 days since i tried.
@ShakiShingi:
playing around in the editor trying to make something like that right now.
Thanks for the assistance, i've been doing that for days. :S. The problem mostly is there is no effect that globally can add damage. it can only specifically add damage to a weapon. Not any weapon, a specified weapon.
ok, here we go, i did this quite some time ago for my damage increasing aura:
create a Behavior - Buff
go to Modification - Combat - Damge Deatlt (unscaled) enter the values you like. hit ok.
if you want it to be permanent set duration to -1.
if you want the buff to be hidden go to Flags.
you can set the maximum of buff stacks at maximum Stack count.
you can increase this buff via triggers (add behavior to unit from caster) and also via abilitys with an aplly behavior effect.
hope it helps
thanks i will try it out
@ShakiShingi:
Hey, got the results attached.
Edit: I will also play around to try to see if I can modify the Unit's name in any way.
thank you ALOT i actually figured it out with your help :) I still need help with addweapon and setname :S