Modification.DamageDealtUnscaled[Ranged] (or Melee, Splash, or Spell) is what you're looking for.
To view the XML you need to open the .sc2map file in a MPQ editor (SC2map files are just MPQ archives) and extract it. Alternately if you turn on View Raw Data from the View menu it'll show you the real field names from within the data editor.
I knew about the raw data, but I didn't know how to open the file to see Ranged, Splash, Spell and Melee.
Edit: NOPE. That looked like it was the solution, but now that I can test it... it doesn't work and gives me an ingame error that it couldn't be written. Also I didn't manage to find the file for the behaviour in the mpq...! The only file I was able to open was "Objects" which told me stuff about the doodads I placed. The others seem to not have any info. I use winMPQ and the Starcraft2 listfile.
"Modification.DamageDealtUnscaled[Melee]" or "Modification[Melee].DamageDealtUnscaled" > gives errors
I really need this. RileyStarcraft, your answer looked perfectly but have you tested this string? I only get erros using it.
Edit: Lol. Didn't know I can view the xml code in the editor itself :D Lets check this out..
Another Edit: So this is starting to get weird. Sorry, you were right, the path you said was perfectly fine.
But still it doesn't work, well: Setting doesn't work, getting the value is fine.
I tried everything I could imagine, but it kept giving me the same error over and over: Catalog field couldn't be written.
If you believe you have the correct field specified and it says you cant write to it then ... well you prolly cant write to that field. Many of the fields are write proctected so they can not be modified in game.
Rollback Post to RevisionRollBack
Skype
KageNinpo = SN
My Libraries
DialogLeaderboard & TeamSort
My Projects
SPACEWAR Tribute
Infinite TD
I read the small documentation (http://forums.sc2mapster.com/resources/tutorials/1250-triggers-catalog-field-value-get-set/) and so I guess that I need the id and not the index of the field. But it only tells me to open the xml file and not how to do so...! I can't open any file inside the Mods folder.
Modification[x].DamageDealtUnscaled (found in Behaviour-Buff)
What is x? I need the id of the "general" attack field, using [1] only gives an error.
@Rushhour:
Modification.DamageDealtUnscaled[Ranged] (or Melee, Splash, or Spell) is what you're looking for.
To view the XML you need to open the .sc2map file in a MPQ editor (SC2map files are just MPQ archives) and extract it. Alternately if you turn on View Raw Data from the View menu it'll show you the real field names from within the data editor.
Thanks, that's exactly what I wanted to know. :)
I knew about the raw data, but I didn't know how to open the file to see Ranged, Splash, Spell and Melee.
Edit: NOPE. That looked like it was the solution, but now that I can test it... it doesn't work and gives me an ingame error that it couldn't be written. Also I didn't manage to find the file for the behaviour in the mpq...! The only file I was able to open was "Objects" which told me stuff about the doodads I placed. The others seem to not have any info. I use winMPQ and the Starcraft2 listfile.
"Modification.DamageDealtUnscaled[Melee]" or "Modification[Melee].DamageDealtUnscaled"
> gives errorsBump.
I really need this. RileyStarcraft, your answer looked perfectly but have you tested this string? I only get erros using it.
Edit: Lol. Didn't know I can view the xml code in the editor itself :D Lets check this out..
Another Edit: So this is starting to get weird. Sorry, you were right, the path you said was perfectly fine. But still it doesn't work, well: Setting doesn't work, getting the value is fine.
I tried everything I could imagine, but it kept giving me the same error over and over: Catalog field couldn't be written.
Please don't tell me it isn't possible to modify this. :/ Same problem for the Scaled damage btw.
@Rushhour: Go
If you believe you have the correct field specified and it says you cant write to it then ... well you prolly cant write to that field. Many of the fields are write proctected so they can not be modified in game.
What a pitty. You say "many fields".. , how many are restricted/ what can be written? Is this random or mainly fields that the UI interacts with?
Thanks anyway. At start I thought I could do whatever I want with this function :D
@Rushhour: Go
Only the ones that you cant modify through existing triggers it seems >.<
All pessimism aside, alot of the fields that you cannot modify through existing functions are read only.