Go
Wc3C.net
»
Warcraft III Modding
»
Developer's Corner
»
Triggers & Scripts
»
String to buffcode
String to buffcode
01-04-2005, 06:18 AM
#1
Mighty_Morbo
Can anyone tell me how to write a function that converts a string to a buffcode?
Thanks in advance.
01-04-2005, 02:34 PM
#2
Ryude
I think an Int 2 Handle function would work, although I have not tried.
function I2H takes integer i returns handle
return i
return null
endfunction
01-05-2005, 10:20 AM
#3
PitzerMike
Look for a function called IdString2DebugIdInteger in the JASS vault (i think I submitted it)
Peppar submitted the opposit function which converts the integer to a string. (just in case you want to do that as well)
01-05-2005, 05:28 PM
#4
Mighty_Morbo
Thanks guys!