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

User:AzraelUK/COS files

From Creatures Wiki
Jump to navigation Jump to search

OK then, so, here are some handy dandy .COS files I've made. You can either create a folder called something like '002 AzraelUK is totally awesome and I want his babies/' in your Bootstrap/ folder, or you can inject them via the CAOS Tool. So, here we go.

Speech Monitor[edit]

This infobar displays the last thing said. You can click on it and it will take you to the creature that said it. It will also create a log of everything that has been said (check your Journal/ directory).

new: comp 3 3 1194 "infobar" 3 0 50
attr 6
perm 0
bhvr 0
rnge 1999
mvto 809 592
pat: fixd 1 "infobar" 2 20 15 1 "WhiteOnTransparentChars"
part 1
frmt 1 1 1 1 1 1 2
sets ov01 wnam
adds ov01 " speech logs.txt"

* ov00 - the norn who just spoke
* ov01 - the filename
* 126::va00 - the text to be displayed on the sign
scrp 3 3 1194 1
	targ ov00
	cmrt 1
endm

scrp 3 3 1194 126
	part 1
	sets va00 "\""
	adds va00 _p1_
	adds va00 "\""
	ptxt va00
	seta ov00 _p2_
	file oope 1 ov01 1
	outs ptxt
	outs " - "
	targ _p2_
	outs hist name gtos 0
	outs " ("
	doif gnus = 1
		outs "Norn"
	elif gnus = 2
		outs "Grendel"
	elif gnus = 3
		outs "Ettin"
	endi
	outs ")"
	outs "\n"
	file oflu
	file oclo
endm

rscr
enum 3 3 1194
	kill targ
next
scrx 3 3 1194 1
scrx 3 3 1194 126

That's the only worthwhile one, though I'll post my somewhat trivial ones later.