- Joined
- Feb 28, 2013
- Messages
- 1,897
Hello, just a quick question, how do I convert Unit ID (ex. Custom Building 1 (H000), another Custom Building (H001)) to a String? (ex. Custom Building 1 == H000 -> True)
What I am trying to achieve here is to the store unit ids to the UnitString array. The buildings are chests for example, and everytime I interact with them the items in it will be different (I have made an Interface made of destructibles and it will update everytime I interact with different chests - This thing is already done).
Arrays
UnitString[64], Item01[64], Item02[64], Item03[64], Item04[64]
Sample Data
H000, Pendant something, Boots something, Helmet something, No Item
H001, Claw, No Item, No Item, Helmet 2 something, No Item
What I am trying to achieve here is to the store unit ids to the UnitString array. The buildings are chests for example, and everytime I interact with them the items in it will be different (I have made an Interface made of destructibles and it will update everytime I interact with different chests - This thing is already done).
Arrays
UnitString[64], Item01[64], Item02[64], Item03[64], Item04[64]
Sample Data
H000, Pendant something, Boots something, Helmet something, No Item
H001, Claw, No Item, No Item, Helmet 2 something, No Item
Last edited: