View Single Post
Old 01-24-2009, 11:42 AM   #38
Troll-Brain
User
 
Join Date: Oct 2006
Posts: 1,490

Submissions (1)

Troll-Brain has a spectacular aura about (134)

Default

UnitId2String always returns null when you load a saved game, same for UnitId2String and OrderId2String, and AbilityId2String doesn't work at all.

Quote:
Originally Posted by common.j
// Not currently working correctly...
constant native AbilityId takes string abilityIdString returns integer
constant native AbilityId2String takes integer abilityId returns string

Added a demo map.

Note that i display the strings only for point orders and train orders, but it is the same with all other immediate orders and target orders, feel free to test it yourself.
Attached Files
File Type: w3x test strings.w3x (16.6 KB, 25 views)
__________________
Cool != Useful
Troll-Brain is offline   Reply With Quote