Basically what I'm trying to do is make a dialog that displays the items in the 6 possible inventory slots of a player
and updates every 3 seconds, and displays this dialog to any player that selects that unit
(This all stems from the fact that you can't see other players default inventory, and players' heroes need to be able to see enemies' inventories for my map)
preferably without using a ton of "if unit type is this, then run this trigger", because there is over 100 items, and 100 "if" statements for each slot 1-6, for every player 1-8, might be resource intensive
You shouldn't need to use any "If Then Else" statements. I believe it should be possible to just set a variable to the item in question. That way, you'd just need a dialog, create a periodic trigger that gets the items from the inventory and display them on the dialog. Now, exactly how you'd do that... I don't know. :x
...
Yup, a variable with the type "- Game Link, Item". Now you just need to be able to call on the items in someone's inventory.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Basically what I'm trying to do is make a dialog that displays the items in the 6 possible inventory slots of a player
and updates every 3 seconds, and displays this dialog to any player that selects that unit
(This all stems from the fact that you can't see other players default inventory, and players' heroes need to be able to see enemies' inventories for my map)
preferably without using a ton of "if unit type is this, then run this trigger", because there is over 100 items, and 100 "if" statements for each slot 1-6, for every player 1-8, might be resource intensive
thanks,
@HatsuneMikuMegurine: Go
You shouldn't need to use any "If Then Else" statements. I believe it should be possible to just set a variable to the item in question. That way, you'd just need a dialog, create a periodic trigger that gets the items from the inventory and display them on the dialog. Now, exactly how you'd do that... I don't know. :x
...
Yup, a variable with the type "- Game Link, Item". Now you just need to be able to call on the items in someone's inventory.