PRT: INEW

PRT: INEW is a C3/DS CAOS command used when installing a connectable agent to create the input port.

Documentation
PRT: INEW (command) id (integer) name (string) description (string) x (integer) y (integer) message_num (integer)

Create a new input port on target. You should number input port ids starting at 0. The message_num is the message that will be sent to the agent when a signal comes in through the input port. _P1_ of that message will contain the data value of the signal. The position of the port, relative to the agent, is given by x, y.

Examples
Installation of the anti-bacterial spray:

new: comp 3 8 19 "anti-infection spray" 10 0 5005 attr 199 bhvr 41 perm 64 elas 20 accg 1.64 fric 100 pat: dull 1 "anti-infection spray" 10 4 -38 0 prt: inew 0 "input" "anti-infection spray input" 14 42 2001 prt: onew 0 "output" "anti-infection spray output" 35 42 mvto 1983 3877 SETV OV61 100 emit 18 .35
 * Creature can activate, pickup and hit.
 * Spray dull part - well why not? :)
 * Give it some ports!
 * Stick it in the medical bay!