|
Post by Toharawk on Jul 1, 2018 8:44:06 GMT
Hi, Is there a way to compare items (or use the "Get Propety" Action) to get the Value of an Item (ID) from the Inventory via Playmaker? If we try to access the Third Person Inventory, we can only get the (total) item value. This Feature would be really important for Quests and Dialogues. Did sombody maybe had the same problem already and knows the solution? Best, Toharawk
|
|
|
Post by tharindu on Jul 1, 2018 20:39:03 GMT
Devistute is the playmaker guy I know in this forum to use invector may be he can shed some light
|
|
|
Post by Devistute on Jul 2, 2018 18:26:00 GMT
Well my idea would be to get the Property as you said and as the Item ID is Integer , you store it as global variable. You would need to put this FSM to the character itself, and perhaps make it update every frame so it doesn't loose track of the items you have collected so far.
Second FSM would need to go to the actual vInventory Prefab, and that one needs to use "Int Compare" and then do whatever you want it to do. It goes to the point of using Global Variables as you need to keep them intact between levels and what not. One can literally create save system from scratch just by using Global's (Which is what i'm going to do later, hehe.)
Might get rather difficult if there's a lot of items in the game, but i think it can be made to work eventually. Eco System for playMaker also has more Action scripts, so if this plan doesn't work out you can go get that and search there. (You wont find anything that is made literally to work with Invector scripts, but things that can help you achieve what you are trying to do.)
This one is an example for the FSM that would need to be with Player at all times. The second Action is to set the ID of item. Dunno how that would be useful but yeah.
Good luck and stuff.
|
|
|
Post by Toharawk_ on Jul 11, 2018 21:45:43 GMT
It is indeed a good workaround. Thanks ;)
|
|