Forum Discussion

LadyMo218's avatar
LadyMo218
MHCP Member
5 months ago

Codeblock Script Help - Lists

I have a codeblock script question for anyone who could provide insight… I’m working on a type of scavenger hunt world and I want it to be replayable so I want the players to have a different list of objects they need to hunt down each time they play. What would be the best way to accomplish this? Items spawning in according to what’s on the lists? The game will be for 6 players so each player has their own list that is different from the other players.

2 Replies

  • Since 6 players can play at once with their own list of items. If the same item is on more than 1 player's list, do they see the same item and it can be picked up by each player, or they see their own instance of the item and they pick up their own copy? Are the items in different locations per player?

    Considering the dynamics here, I would say spawning the items for each player and only allowing that player to see their own items might be the way to go here. Alternatively you could just pool all the items from everyone's list and only spawn 1 copy of each item into the world and set who can see the items to only those who have it on their list, and remove them from being able to see it after they've already grabbed it.

    • LadyMo218's avatar
      LadyMo218
      MHCP Member

      Great questions! I think it would be best for each player to have their own items. Each list should be approximately 8 items they need to find. Once they find the item, the list updates? Maybe remove it from list dynamically? But the item itself will disappear once grabbed.