alternative for 'For Each loop' using a map variable

This:

The item pin, right click and select split. Type Football on the string (first one).

Add a breakpoint to the branch after the IsValid and test it.

okay i have this now

when i play the game, the node gets focused on during talking to the NPC without the item in the inventory. it focuses right before the last line of the dialogue which is weird, it doesnt even let the dialogue finish for some reason

Its ok if the break seems to interrupt at odd times. Its working for sure. The only thing thats left is to check that the dialogue logic is working as intended.

Remove the breakpoint and test away.

it’s the talk index thats messing it up, it ends on 3 but if i do == 3 it stops before the next line is said and if i do ==4 it doesnt focus because it hasnt reached 4.

even if i ignore this, when i collect the ball and talk to the dog again, nothing happens

After collecting the ball, does the branch in the dog return true?

no, nothing happens, not even the print string if it is true.

i could be wrong but i think the ‘is item already in inventory’ is the wrong place to look, since i think it gets called when there a duplicate of an item that is already in the inventory is being picked up?

its a part of adding +1 to an item. so e.g. for my ice cream object, if ice cream is already in inventory, it’s going to add one and if that item is not in the inventory itll output to be false and just add that item (i think)

I could be of more help If you can share the project of if youre available for discord.

tried to zip the game and the min size it gets to is still 600mb lol.

i can do discord: #neoculturetech

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.