CONSUME FISH WHEN EXECUTING A CUSTOM ACTION
Posted: Tue May 17, 2022 10:16 am
I've been trying to make a blink mod that teleports the player a short distance. I copied another mod that already does this but I tweaked the distance, the controls, and some other stuff. (I'm not planning on posting the mod right now: it's just for personal use, because I think combat needs defensive moves, like blocking and dodging but that's off-topic.)
What I want to do: consume 1 fish for each time the action is performed, i.e. consume 1 fish in inventory for each teleportation.
The rest of the mod already works as intended. I just need consumption of fish to balance it. Another solution would be a cooldown, but I don't know how to do that either as I'm new to programming and modding in Factorio.
What I want to do: consume 1 fish for each time the action is performed, i.e. consume 1 fish in inventory for each teleportation.
The rest of the mod already works as intended. I just need consumption of fish to balance it. Another solution would be a cooldown, but I don't know how to do that either as I'm new to programming and modding in Factorio.