| 05-04-2004, 01:56 AM | #1 |
Is it possible to dynamically take the value, lets say the HP of a unit and use it in a string? Kind of like the way you can get values for abilities. Anyone know if its possible, and if so, how to use it, like <C000:hp> for custom unit #1's hp. TIA |
| 05-04-2004, 02:02 AM | #2 | |
Theres a call called "Conversion - Convert real to string". That's what you want to use for this. If you're using this for a game text message you would type the first part of the message, cocantenate that with the converted string then cocantenate the last part behind it. Quote:
|
| 05-04-2004, 02:08 AM | #3 |
Right. But there are quite a few things that you cant call, some not being important but the armor of the unit you can't call, or it's armor type, or abilities. But thanks, I forgot about this, and it does help. |
| 05-04-2004, 03:22 AM | #4 |
Well WEU has an advanced function to add a custom string to a unit. You can use that to store strings. Kinda tedious but it's better than a massive array of if-then-else. And theoretically you can derive a unit's approximate armour value by hitting it with a 10 dmg dummy attack and figuring out the actual damage done using the "unit is damaged" triggers. Of course thats a massive amount of bending over backwards and completely not worht the trouble :) i'm just saying its possible :) |
| 05-04-2004, 03:26 AM | #5 |
Yeah but then armor types come into play. Unelss I hit it with Chaos damage, does that ignore armor, or just armor type? Either way I'll deal without it. |
| 05-04-2004, 04:10 AM | #6 |
Armor-type. |
