I hope you’re all doing well! I’m currently working on a custom game mode in Gimkit Creative, and I’ve hit a bit of a roadblock that I could really use some help with.
Here’s what I’m trying to do:
Objective: I’m designing a game mode where players have to collect items around the map and then use those items to unlock special abilities.
Problem: I’m struggling with setting up the logic that triggers the ability once a player collects the required number of items. I’ve set up the item spawns and collection mechanics, but I can’t figure out how to make the ability unlock smoothly after the required items are gathered.
What I’ve Tried:
I’ve been using the Triggers and Events system, but I can’t seem to get the condition to check if a player has collected all the items correctly.
I also tried using Variables to track the number of items each player has, but I’m not sure how to link it to the ability unlock.
Has anyone worked on something similar or have any suggestions on how I could approach this? Any tips on using Triggers, Events, or Variables more effectively would be greatly appreciated!
Easy you can:
Create a lifecycle and wire it to a trigger
Wire the trigger to a wire repeater (with a delay of 1)
Wire the repeater to a checker
Wire the checker, if doesn’t succeed, back to the trigger
There now the system will keep checking until it successful
Wire the successful checker to whatever you want to do with it
(if its multiple people wire the trigger first to a relay then to the wire repeater).
You can use a checker that constantly checks if a player has more than a certain amount of items. (To determine how many items a player has, you can use an inventory item manager linked to a property.)
Welcome to the forums! Make sure to read the TOS and FAQ.
Some Forum Tips
First off, you don’t need to be so formal, even if you are using AI.
Second, be careful with AI. If I remember correctly, a user got in trouble for using AI to write guides once.
Hello Mr.GPT, I think that I may know how to fix your problem.
Problem: You are not sure on how to make an ability unlock automatically.
Solution:
To make the ability unlock automatically, one method is to connect a lifecycle to a relay that is connected what’s known as a Wire Repeater Loop, which then subsequently connects a checker that checks for your desired item. What that will do is that the checker will constantly check for the item because of the Wire Repeater Loop, and the Wire Repeater Loop is activated by the lifecycle.
A Wire Repeater Loop is 2 Wire repeaters wired together like this:
As you can see, the 2 wire repeaters are wired together so that when 1 wire repeater is activated, the wire repeater will send the signal to the other one, and then the other one sends the signal back in a recursive loop.
To make the aforementioned system, place a lifecycle. Then, place a relay, and make sure that the setting “Relay Audience” is set to “All Players”. Connect the lifecycle to the relay so that when the lifecycle is triggered, the relay relays the signal. Then, create the previously mentioned Wire Repeater Loop, and set the delay for each wire repeater to 0.1 seconds. After that, you need to create a checker. Configure the settings of the checker so that it checks for your desired item. To finish the system, you must connect both Wire Repeaters in the Wire Repeater Loop to the checker so that when a wire repeater is activated, the checker will check for the desired item.