Machinations.io Simulation...
About this model
Machinations.io Simulation Prompt Objective: Simulate a 1v1 simultaneous turn-based duel in Morning Star: Kingdom to test the sustainability of the Stamina Debt and Breathe mechanics against basic combat actions.
-------------------------------------------------------------------------------- 1. Core Resource Pools HP Pool (Player A & B): Start at 30 . Stamina Pool (Player A & B): Start at 10 (Max 10) . Stamina Debt Pool: A temporary pool that accumulates a flat value from sustained effects (like a Shield Barrier) . 2. Turn Logic (Simultaneous Reveal) Use a Gate to randomly select between four simultaneous actions for each "Agent" (Player) every time the "Reveal Phase" pulses : Action 1: Light Attack (Cost: 1 Stamina) Logic: Subtract Weapon Rating (WR) from the opponent's HP . Weapon Variables: Sword (WR 4) . Dagger (WR 2, allows off-hand action) . Action 2: Defend (Cost: 1 Stamina) Logic: Use Mitigation Equation: Damage Taken =Rating Attack −(Rating Defense +Bonus Shield ) . Shield Variable: WR 3 + Bonus 2 . 1:1 Trade Mechanic: If Rating Attack Rating Defense , trigger a conditional drain from the Stamina Pool to negate HP loss until Stamina reaches 0 . Action 3: Dodge (Cost: 2 Stamina) Logic: Use a Probability Gate (66% success). If successful, damage is 0. If failed, take full WR damage . Action 4: Breathe (Cost: 0 Stamina) Logic: Player cannot Attack or Move . Regen Scale (Converter): If current Stamina is 0–2: Restore +8. If current Stamina is 3–6: Restore +5. If current Stamina is 7–9: Restore +2 . Debt Settlement: Subtract the Stamina Debt Pool total from the final restored amount before updating the Stamina Pool [30, Conversation History]. 3. State Triggers Exhaustion State: If Stamina 0, disable all actions except Breathe for the next pulse . Guard Broken State: If ExcessDamage≥RemainingStamina while defending, trigger a Drain on HP for full damage + 2 (Critical Damage) . Fallen State: If HP ≤ 0, end simulation and record turn count .
-------------------------------------------------------------------------------- Key Data to Track (CSV Export Requirements) Stamina Delta: The average stamina level per player before and after a Breathe pulse. Mitigation Frequency: How often the 1:1 Stamina Trade was used versus taking raw HP damage. Survival Time: Total turn count until a Fallen State is reached. Debt Impact: Total amount of stamina "lost" to debt settlement during the duel. Would you like me to refine the logic for a specific weapon type, such as how the Starfall Greatsword's high WR (12) interacts with the Guard Break threshold?
"Machinations.io Simulation..." is a public Machinations diagram shared in the Community by João Vitor Fernandes B., with 22 components.
It was created in March 2026 and last edited in March 2026.
Open the diagram in the Machinations app and press Play to watch the resources move, adjust its values to test how the system responds, or remix it to make an editable copy in My diagrams.