Skip to reading
Adventure Mechanics & Effects

Put the readout on screen and start the fight

Edition 0.86.3.4

Build authored boxing, camera moves, weather, attachments, inspectable objects, a radio and two-object puzzles using the existing adventure tools and scripts.

Download PDFView illustrations

LIVE SPARRING / EDITOR HOOKUP

01. In the Adventure Database, create a GUI or reopen the one with ID spar. In GUI Designer, set the display mode to Called by Trigger Action / Visual Script. Choose Add Element Label. In General set its ID to status. Make it wide and tall enough for two lines. Place it above the fighters.

GUI Designer. This single label displays both health totals, your punch power and the incoming attack. Its starting text is replaced when the bout opens.

02. Open GDScript Designer. Create a native record named spar_rules, or open the previous one. Replace the entire source with blocks A through G on pages 21–27, in order. Switch on Keep global instance alive, then choose Apply / Save Script. This setting lets the script hear key presses and keep time after the initial interaction finishes.

GDScript Designer. Check the Script ID at the top and the checked Global Script option below it.

03. In Scene Designer Scene Objects, select the porter. In Verb Actions choose the starting verb, such as Talk. Add Run Visual Script and choose spar_rules in Script. This action can also run a native GDScript record. In Context mode, choose Talk as his Default Verb if clicking him should start the bout.

04. If you used the earlier chapter, remove the High, Low, Guard and Leave buttons from spar and remove any old sparring contact watches or scoring actions. Keep the porter’s start interaction. Save the project. Choose Test Scene, interact with him and look for “You 6/6 Porter 6/6 Power 100%.”

During the bout the script temporarily takes over the usual movement keys. It restores the previous adventure input setting when the match ends. Q is available from the first moment.

Page 6 of 29Permalink
Go to page