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

Difference between revisions of "PROP"

From Creatures Wiki
Jump to navigation Jump to search
(Created page with " '''PROP''' ''(command)'' ROOM_ID ''(integer)'' CA_INDEX ''(integer)'' CA_VALUE ''(float)'' <br />The command '''PROP''' is used when making metarooms to set the amount o...")
 
(No difference)

Latest revision as of 23:50, 16 February 2020

PROP (command) ROOM_ID (integer) CA_INDEX (integer) CA_VALUE (float)
The command PROP is used when making metarooms to set the amount of a CA in a room, and if you leave out the CA_VALUE it returns the amount of a CA in the specified room.

Examples[edit]

		doif prop room targ 1 le ov80
			setv va00 1
		endi

		doif prop room targ 2 le ov82
			setv va01 1
		endi

		doif prop room targ 4 ge ov87
			setv va02 1
		endi


		doif va00 eq 1 and va01 eq 1 and va02 eq 1
			gsub grow
		endi

See also[edit]