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

HIST NAME

From Creatures Wiki
Jump to navigation Jump to search

HIST NAME is a CAOS command that sets or returns the name of the creature with a given moniker.

Usage[edit]

Set[edit]

Syntax: HIST NAME moniker(str) new_name(str)

Renames the creature with new_name.

Return[edit]

Syntax: HIST NAME moniker(str)

Returns the creature's name.

Example[edit]

From the DS upper-left GUI:

doif norn ne null
	...
	targ norn
	...
	*acquire the creature's moniker
	sets va01 gtos 0
	*do if moniker is properly valid
	doif ooww va01 eq 3
		*get the name
		sets va02 hist name va01
		doif va02 eq ""
			sets va02 "?"
		endi
		*display the name
		targ ownr
		part 3
		ptxt va02