Hey thanks a lot for the tip yesterday, I almost got it all figured out. It makes a lot more sense now, and after a fresh look at it, I found the area of code that I probably should have been looking at earlier. Let me share it here:
The part I'm looking at is the last 5 lines or so. Instead of looking at CI_UI_RECT, I can just work with CI_UI_BASE_X & CI_UI_BASE_Y probably. I understand what you said about changing things to arrays so that each player can have his/her respective area for the inventory. I would just put in CI_UI_BASE_X[index] if I'm not mistaken. The thing is though when I tried the script you suggested to replace the value with a function, "GetPlayerStartLocationX(Player(index))" it said that 'GetPlayerStartLocationX' was an undeclared variable. Does this have anything to do with these being globals? I included more of the original script this time for context.
The only other thing I couldn't figure out myself was how to create item sets. Like what command to create the set name, or what items one needs to complete the set, and set bonuses. I don't believe the system provided an example of this feature, so if it's not too much trouble, could someone share an example of theirs? It's one of the coolest feature's of the system, and I can't wait to figure it out. Thanks again, I'm making slow but steady progress!
JASS:
globals
constant boolean CI_NEW_MAP = false
constant integer CI_UI_MAX_ITEMS = 20
constant boolean CI_UI_SHOW_ITEMS = false
constant boolean CI_UI_AUTO_APPLY_BONUSES = false
constant boolean CI_UI_AUTO_REMOVE_BONUSES = false
constant boolean CI_UI_AUTO_CHECK_PICKUP = false
constant real CI_UI_BASE_X = 7000.
constant real CI_UI_BASE_Y = 7650.
constant real CI_UI_WIDTH = 2048.
constant real CI_UI_HEIGHT = 1024.
rect CI_UI_RECT = null
The part I'm looking at is the last 5 lines or so. Instead of looking at CI_UI_RECT, I can just work with CI_UI_BASE_X & CI_UI_BASE_Y probably. I understand what you said about changing things to arrays so that each player can have his/her respective area for the inventory. I would just put in CI_UI_BASE_X[index] if I'm not mistaken. The thing is though when I tried the script you suggested to replace the value with a function, "GetPlayerStartLocationX(Player(index))" it said that 'GetPlayerStartLocationX' was an undeclared variable. Does this have anything to do with these being globals? I included more of the original script this time for context.
The only other thing I couldn't figure out myself was how to create item sets. Like what command to create the set name, or what items one needs to complete the set, and set bonuses. I don't believe the system provided an example of this feature, so if it's not too much trouble, could someone share an example of theirs? It's one of the coolest feature's of the system, and I can't wait to figure it out. Thanks again, I'm making slow but steady progress!
Last edited: