Welcome to the Creatures Wiki! Log in and join the community.

PRT: BANG

From Creatures Wiki
Jump to: navigation, search

PRT: BANG is a C3/DS CAOS command used in the hit script of connectable agents to simulate 'banging' the machine, jostling the ports loose. Often combined with RAND to give an unpredictable result.

Documentation[edit]

PRT: BANG (command) bang_strength (integer)

Breaks connections randomly with other machines (as if the machine had been 'banged'. Use a bang_strength of 100 to disconnect all ports, 50 to disconnect about half etc.

Examples[edit]

Hit script of the delay gate:

** Hit Script
scrp 3 8 13 3
	sndc "hit_"
	velo 0 rand -5 -10
	prt: bang rand 60 100
	stim writ from 92 1
endm