Vortaka Posted February 18, 2009 Share Posted February 18, 2009 Hello all, Well, I'm tinkering with some mods and everything and I have (another) little question... I'm using DN_RecyclingMachine, by the way... To know if you have enough tin cans or not, you have to "try" to recycle it and it would give you an error if you don't have enough... I would like to know if it's possible, and how to write it if it is, to "show" the player.getItemCount TinCan01 or TinCan02 in the message line... Example: 8 Bent Tin Cans to 1 Scrap Metal (4); in the () there is a Player.GetItemCount TinCan01 example)5 Tin Cans to 1 Scrap Metal (11); (Same thing but with a TinCan02)Cancel So, simply said, the only thing I want to do is add in a "variable count" in ITXT thing... Is it possible? Please and thank you, Vortaka! Link to comment Share on other sites More sharing options...
Cipscis Posted February 19, 2009 Share Posted February 19, 2009 Yes, you can do this by using the format specifiers available to ShowMessage. In this case, you'll want to use either %.0f or %g in your message, and pass it the appropriate value in a "short" variable. Cipscis Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.