Open the bout and check both actors
LIVE BOXING SCRIPT / B OF G
Append this entire function. The porter’s interaction calls it once. If a point is missing, the message names the actor and the mark to fix. A win from an earlier encounter is remembered.
func run(_ctx: Dictionary = {}) -> void:
if live:
return
if Runtime.variables.get("spar_won", false):
Runtime.show_message("The porter steps aside.")
return
dimension = 0
var pts = Runtime.adventure_extensions.attach_points
for id in IDS:
var badge = pts.get_point(id, "badge")
var marks = ["badge", "belt", "glove"]
if badge.get("dimension", 0) == 2:
marks = ["badge", "belt", "glove_high", "glove_low"]
for mark in marks:
var pt = pts.get_point(id, mark)
if (pt.is_empty() or not pt.enabled
or (dimension != 0 and pt.dimension != dimension)):
Runtime.show_message("Check the live point: " + id + "/" + mark)
return
dimension = pt.dimension
fighters = [fighter(), fighter()]
held.clear()
next_attack = 1.0
old_input = Runtime.player_input_enabled
room_stamp = Runtime.room_event_generation
game_stamp = Runtime.runtime_generation
live = true
Runtime.set_player_input_enabled(false)
Runtime.show_gui("spar")
pose(0, "idle")
defend(1, "high")
report = "Watch the porter's gloves."
drawn = ""
hud()The script captures the current adventure input setting before it locks walking. The two poses at the end put the hero at rest and the porter in a high guard.
