Go
Wc3C.net
»
Warcraft III Modding
»
Developer's Corner
»
Triggers & Scripts
»
Convert destructible/doodad to string
Convert destructible/doodad to string
01-06-2007, 04:02 AM
#1
Zandose
How do you convert a destructible/doodad type to a string. It's id code.
01-06-2007, 11:07 AM
#2
Themerion
If you meant the rawcode of it, it's
unit-type
id, then enter the object editor and click Ctrl-V.
It's
in-game
id can be aquired through JASS-functions:
JASS:
function
H2I
takes
handle
h
returns
integer
return
h
return
0
endfunction
Trigger:
Set tempDoodad=the doodad you wanted
Custom Script: set udg_myString=I2S(H2I(udg_tempDoodad))
01-06-2007, 02:58 PM
#3
Zandose
ty