I haven't been able to figure out how to do any of the following things. Are any of them possible, either via clever triggering or perhaps Galaxy scripts?
-Getting the current value of an active timer
-Modifying the value of a repeating timer in any way besides resetting it to its original value
-Doing arithmetic with Reals / without integer truncation
-Changing the unit data for a given unit type dynamically as opposed to defining it via the Unit editor in Galaxy Editor program. Is there any way to write a script or trigger to change, say, the hp of a Marine (not a specific, spawned marine, but all present and/or future marines) to 65? I imagine I could do this by making a second +hp upgrade that couldn't be researched but was given to the player by the trigger when desired, but is there any way to modify the unit stats that you can set in the Unit module dynamically via trigger or script aside from creating a bunch of upgrades granting +hp, etc. and then manipulating their levels via trigger? I assume that would be a viable workaround (it was used in some WC3 maps that wanted to, say, procedurally generate ever stronger waves in an endless TD), but it's not very elegant.
-Another question that just occurred to me: besides timer window and boss bar, which non-ladder UI elements actually work? I tried adding the character profile button on a whim and clicking it causes SC2 to hang, not crashing outright but freezing the game engine and making it impossible to access the menu, although the cursor still moves - I assume it's waiting for a response that will never come and since it's an internal game process, there's no failsafe in place when that expected response never comes (like a timeout message or whatnot - why would another thread in the same local executable time out unless the app has already crashed, after all?).
I haven't been able to figure out how to do any of the following things. Are any of them possible, either via clever triggering or perhaps Galaxy scripts?
-Getting the current value of an active timer
-Modifying the value of a repeating timer in any way besides resetting it to its original value
-Doing arithmetic with Reals / without integer truncation
-Changing the unit data for a given unit type dynamically as opposed to defining it via the Unit editor in Galaxy Editor program. Is there any way to write a script or trigger to change, say, the hp of a Marine (not a specific, spawned marine, but all present and/or future marines) to 65? I imagine I could do this by making a second +hp upgrade that couldn't be researched but was given to the player by the trigger when desired, but is there any way to modify the unit stats that you can set in the Unit module dynamically via trigger or script aside from creating a bunch of upgrades granting +hp, etc. and then manipulating their levels via trigger? I assume that would be a viable workaround (it was used in some WC3 maps that wanted to, say, procedurally generate ever stronger waves in an endless TD), but it's not very elegant.
-Another question that just occurred to me: besides timer window and boss bar, which non-ladder UI elements actually work? I tried adding the character profile button on a whim and clicking it causes SC2 to hang, not crashing outright but freezing the game engine and making it impossible to access the menu, although the cursor still moves - I assume it's waiting for a response that will never come and since it's an internal game process, there's no failsafe in place when that expected response never comes (like a timeout message or whatnot - why would another thread in the same local executable time out unless the app has already crashed, after all?).
@solistus: Go
1: use the Remaining Time Of Timer function (also elapsed time function) set Remaining time <real> = Remaining Time Of Timer
2: Probably, or just implement your own timer
While () conditions none Actions: Wait (your timer lengh<real>) your action codes
3: Use the Arithmetic (Real) function instead of the Arithmetic (integer) function