How do i do an endurance?? like in tag where you can buy endurance how can i do this
Endurance allows you to lose less energy when you move, right?
Make it to when a player moves it takes a certain amount of energy away, so when there player increases their endurance it takes less energy away.
No, when a player purchases endurance, activate an inventory item manager with a higher limit.
Correct is right that is exactly waht i want lol
You use a movement meter.
Yeah i do use a movement meter alr lol
Make a vending machine broadcast to a movement meter using a lower energy per tick or less ticks per second.
Ok. First, make a property(This is the setting of it:
) called “endurance.” By now you must’ve already added a way to take away energy. (Instead of using a movement meter use a item granter)Thinking you used a item granter, simply set the amount it takes to 0. Next, create a block of code for the item granter and set it to do this:
(Add a repeater and set it to complete a task every .5 seconds(the smallest possible amount) and wire it to the item granter and set it to this: Repeater runs task ----> Run wire pulse block)
Saying you already have a vending machine that gives endurance, wire it to a trigger and set it to this: Item purchased -----> Trigger. Make the settings to this:
![Screenshot 2023-09-05 135722](https://forum.creative.gimkit.com/uploads/default/original/2X/9/954b4977c48a88e828ca63732dea694a03d5fb71.png)
![Screenshot 2023-09-05 135736](https://forum.creative.gimkit.com/uploads/default/original/2X/e/e412b896fd7e8fb90a9a55d2470b3f861e68c463.png)
Now, add a block of code for the trigger and set it to this:
![Screenshot 2023-09-05 140137](https://forum.creative.gimkit.com/uploads/default/original/2X/4/48807b2342c24eb56bc697082bfd2896c014358d.png)
(Change the 5 to whatever you want the endurance to change by)
And done! Does this work?
That actually sounds a lot simpler than my idea lol.
Although, your idea uses more repition, mine is more straight forward and has only 1 vending machine.
To elaborate, make the vending machine broadcast to a counter that updates a property. Make the property broadcast to a trigger. In blocks, the trigger should broadcast on:
Convert to Text
“Endurance Upgrade”
[Endurance Property]
The movement meter should receive on the upgrade number.
Mine has 1 vending machine as well.
If @Quehcueh wants to make multiple upgrades for endurance they would need to make multiple vending machines and stuff while mine is only once(unless they want to change the amount that the endurance changes in).
No mine uses concatenation, so it only needs one vending machine, but multiple movement meters.
i will try this Thank You
So Uh what If I am using a movement meter?
Just remove it. Use a item granter and a repeater instead. (If you still just wanna use the movement meter then just do what @getrithekd said)