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:
Now, add a block of code for the trigger and set it to this:
(Change the 5 to whatever you want the endurance to change by)
And done! Does this work?
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.
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).
Well lol Actually I just did something WAY WAY More simple what i did was do a vending machine and two movement meters one higher the other lower in taking energy and i just put that when you buy the vending machine it deactivates the higher movement meter and activates the lower one which is quite simpler but thanq all for your ideas tho!