| 08-10-2009, 06:55 AM | #1 |
Hi, just wanna know something. Is there any way to refer to values in the object editor from the trigger editor? Like for instance the icon string path for a unit? |
| 08-10-2009, 08:00 AM | #2 |
You can get the Art and Sound effects from Abilities, but that's it: JASS:native GetAbilityEffect takes string abilityString, effecttype t, integer index returns string native GetAbilityEffectById takes integer abilityId, effecttype t, integer index returns string native GetAbilitySound takes string abilityString, soundtype t returns string native GetAbilitySoundById takes integer abilityId, soundtype t returns string You could probably use some sort of external tool to analyze the map's object data and then make that into a database script that contains all the relevant information for you to access in-game if you wanted to. Actually... that'd be really cool if it worked. |
| 08-10-2009, 08:04 AM | #3 |
You can't get all object editor data, but for units you can use the point-value. You can store multiple things in one integer, or you can use it as an index to get a value from an array. |
| 08-10-2009, 08:37 AM | #4 |
Right.. ah thats too bad.. I want to get the icon pictures of certain abilities so I can display it in my multiboard without needing to define every icon path manually. Anyway, thanks for the info guys :) |
