String to Int (e.g. from "0x02000D66" to 0x02000D66)

Post » Wed Jan 02, 2013 1:41 am

Is there a way to convert a String to an Int?
E.g. Can I pass a FormId from a Bat file to a Papyrus Script?
In the BAT file a line "setpqv questId formIdString '0x02000D66'"
In Papyrus, formIdString is a string but I need to convert it into an Int.

Note: I tried passing 0x02000D66 directly as an Int, but Papyrus showed it as 0.
So passing 0x02000D66 from the Bat file didn't seem to work.

Thanks!
User avatar
JD FROM HELL
 
Posts: 3473
Joined: Thu Aug 24, 2006 1:54 am

Return to V - Skyrim