Another GTA Fan Posted December 12, 2017 Share Posted December 12, 2017 I'm having an issue with making menu columns which includes variables. If it helps, I'm creating an Inventory cleo script, and I'm trying to have it so it has the name of the item in the 1st column, while having the amount of that item in the 2nd column. I've tried creating the menu so it's using just 1 column (And it works), however the quantity is not aligned, which is why I want to do it using 2 columns, I just can't seem to figure it out. Here's the entire menu panel coding I'm using, question is what do I need to change/add/remove in order for it to work as I intend? 08D4: [email protected] = create_panel_with_title 'INVENTO' position 25.0 190.0 width 310.0 columns 1 interactive 1 background 1 alignment 108D4: [email protected] = create_panel_with_title 'GPPANEL' position 25.0 120.0 width 310.0 columns 1 interactive 0 background 1 alignment 008EE: set_panel [email protected] column 0 row 0 text_1number GXT 'TEROW1' number $TEROW108EE: set_panel [email protected] column 0 row 1 text_1number GXT 'TEROW2' number $TEROW208EE: set_panel [email protected] column 0 row 2 text_1number GXT 'TEROW3' number $TEROW308EE: set_panel [email protected] column 0 row 3 text_1number GXT 'TEROW4' number $TEROW408EE: set_panel [email protected] column 0 row 4 text_1number GXT 'TEROW5' number $TEROW508EE: set_panel [email protected] column 0 row 5 text_1number GXT 'TEROW6' number $TEROW608EE: set_panel [email protected] column 0 row 6 text_1number GXT 'TEROW7' number $TEROW708EE: set_panel [email protected] column 0 row 7 text_1number GXT 'TEROW8' number $TEROW808EE: set_panel [email protected] column 0 row 0 text_1number GXT 'GOLDTO' number $TESTIN2090E: set_panel [email protected] active_row [email protected] Similar to how the Stats Window works in the game where the stat bars are all aligned in it's respective column. Link to comment Share on other sites More sharing options...
ZAZ Posted December 12, 2017 Share Posted December 12, 2017 (edited) post fxt of TEROW1,2,3,4,5,6,7 and GOLDTO gxt must be done in this way GOLDTO ~1~ Example, this is original gxt entry DOLLAR $~1~ then this [email protected] = 1308EE: set_panel [email protected] column 0 row 0 text_1number GXT 'DOLLAR' number [email protected] shows $13 at column 0 row 0 Btw. why did you use global variables? Edited December 12, 2017 by ZAZ deltaCJ 1 CLEO MODS CLEO Script Tutorial Link to comment Share on other sites More sharing options...
Another GTA Fan Posted December 12, 2017 Author Share Posted December 12, 2017 post fxt of TEROW1,2,3,4,5,6,7 and GOLDTO TEROW1 Healing Item ~1~TEROW2 Armor Item ~1~TEROW3 Random Item ~1~TEROW4 Another Item ~1~TEROW5 Item test ~1~TEROW6 Item 6th Row ~1~TEROW7 Item ~1~TEROW8 Item Test ~1~GOLDTO ~1~I'm actually using my own created currency with the mod rather than using the ingame currency. The entire mod works as intended, and all the values are fine (If I use an item is will remove 1 of that item, and will not work if I have no items). I would post an image but it's not letting me post any images on here for some reason, instead I'll type out how it looks, and how I want to get it to be: What it currenty looks like ingame: InventoryHealing Item 10Armor Item 10Random Item 10Another Item 10Item test 10Item 6th row 10Item 10Item test 10How I'm trying to get it to be: InventoryHealing Item 10Armor Item 10Random Item 10Another Item 10Item test 10Item 6th row 10Item 10Item test 10As I've said, the mod works, but the thing I'm trying to do is get the item quantity so it's aligned in a column as shown above. Btw. why did you use global variables?I'm using Gloabel Variables because I'm using many other cleo scripts that work with this mod, such as a merchant cleo that spawns an actor from where I can buy and sell items, and I'm using other actor mods that drops certain items for the inventory when they're defeated. It doesn't work using Locals, unless I combine the other scripts into the Inventory one, which seems to be more effort than what it would be worth. I got them to work, though, without any bugs or glitches. It's just the alignment that's the problem here. Link to comment Share on other sites More sharing options...
ZAZ Posted December 13, 2017 Share Posted December 13, 2017 (edited) ok, please note: don't use such globals in cleo use opcodes 0AB3: and 0AB4: to communicate between cleo scripts The expression var together with a number, <var><space><number> builds the Special Global Cleo Variable 0AB3: var 0 = 10or0006: [email protected] = 10 // integer values0AB3: var 0 = [email protected]and 0AB4: [email protected]= var 0var 0 up to var 999 will be stored, in exemble var 0 is stored with 10 to get then stored value into your script needs to submit into a local: 0AB4: [email protected] = var 44if0039: [email protected] == 1 // integer valuesthen//codeendwhen making savegame, then the var content will be stored in the CLEO_SAVES files Edited December 13, 2017 by ZAZ CLEO MODS CLEO Script Tutorial Link to comment Share on other sites More sharing options...
Another GTA Fan Posted December 13, 2017 Author Share Posted December 13, 2017 I've figured it out. It's all working with the columns now. As for the Globals, I will take note of what you said and try them out to replace the Globals, so I appreciate that, as for the original issue, it's been solved now. Link to comment Share on other sites More sharing options...