v50 Steam/Premium information for editors
  • v50 information can now be added to pages in the main namespace. v0.47 information can still be found in the DF2014 namespace. See here for more details on the new versioning policy.
  • Use this page to report any issues related to the migration.
This notice may be cached—the current version can be found here.

Difference between revisions of "DF2014 Talk:Creature token"

From Dwarf Fortress Wiki
Jump to navigation Jump to search
Line 29: Line 29:
  
 
I found that by setting [FREQUENCY:5] on a creature that the local Elves could trade, and save scumming an incoming caravan.  The rate of the creature appearing in the caravan dropped to 1/40 caravans (not truly 1/20 as it had to compete with roughly 100 other creatures with varying frequency settings).  By setting it to [FREQUENCY:100] it now appears in roughly 1/6 caravans.  (I'd test it more thoroughly if loading worlds took less time on my PC)
 
I found that by setting [FREQUENCY:5] on a creature that the local Elves could trade, and save scumming an incoming caravan.  The rate of the creature appearing in the caravan dropped to 1/40 caravans (not truly 1/20 as it had to compete with roughly 100 other creatures with varying frequency settings).  By setting it to [FREQUENCY:100] it now appears in roughly 1/6 caravans.  (I'd test it more thoroughly if loading worlds took less time on my PC)
 +
 +
== [COPY_TAGS_FROM] does not copy caste tags applied to a creature ==
 +
 +
Wanted to note this here, as I've seen Giant versions of pack animals without the [PACK_ANIMAL] flag set in creature_raws[creature_index].caste[caste_index].flags.PACK_ANIMAL as viewed through DFHack.  As the [PACK_ANIMAL] flag CAN be set on the entire animal, and then pushed onto the male/female/whatever castes.  It is still a caste flag, and does not get copied when using [COPY_TAGS_FROM].  Which only appears to copy creature wide tags.

Revision as of 15:56, 29 March 2017

+ This talk page has been created by request by 178.167.254.128 (talk | contribs).

To remove this message, delete the {{newpage}} (or {{np}}) tag from this page.


APPLY_CREATURE_VARIATION versus APPLY_CURRENT_CREATURE_VARIATION

Based on testing, APPLY_CREATURE_VARIATION has instant effect (in reverse order, as noted elsewhere), whereas APPLY_CURRENT_CREATURE_VARIATION is used to manually apply any creature variation tags, such as CV_ADD_TAG or CV_REMOVE_TAG, that have been manually added to the creature definition instead of being defined in a creature variation. In other words, APPLY_CURRENT_CREATURE_VARIATION has no effect if you are simply using APPLY_CREATURE_VARIATION to load creature variations. Think of a creature variation defined in an OBJECT:CREATURE_VARIATION file as a "template", which is applied with APPLY_CREATURE_VARIATION. Think of a "current creature variation" as any manually-defined creature variations that have been added to the creature definition itself, which must be applied to the creature with APPLY_CURRENT_CREATURE_VARIATION after you have made all of the necessary modifications.

For example, the following is a use of APPLY_CREATURE_VARIATION, which takes instantaneous effect without any need for APPLY_CURRENT_CREATURE_VARIATION.:

	[APPLY_CREATURE_VARIATION:REMOVE_STUB_ARMS]

This is an example of the use of APPLY_CURRENT_CREATURE_VARIATION:

	[COPY_TAGS_FROM:MY_CREATURE]
	[CV_REMOVE_TAG:TISSUE_LAYER_UNDER]
	[TISSUE_LAYER_UNDER:BY_CATEGORY:BODY:GAS]
	[TISSUE_LAYER_UNDER:BY_CATEGORY:WING:GAS]
	[APPLY_CURRENT_CREATURE_VARIATION]

--JT (talk) 05:43, 13 August 2014 (UTC)

Littersize Creature Token

I just tested the [LITTERSIZE] token and it still works, just a note for those interested.

[LOCAL_POPS_CONTROLLABLE] and [LOCAL_POPS_PRODUCE_HEROES] prevent trading creature

Specifically this prevents Elves from adding the creature as a trade-able (tame) caged creature to caravans. This is notable as they can currently trade pets that have [CAN_LEARN] and [CAN_SPEAK] enabled. Found this by save scumming an incoming Elven caravan while testing out creature addition and removal from a civilization using populate.rb

[FREQUENCY] affects how often creature appears in trade caravans

I found that by setting [FREQUENCY:5] on a creature that the local Elves could trade, and save scumming an incoming caravan. The rate of the creature appearing in the caravan dropped to 1/40 caravans (not truly 1/20 as it had to compete with roughly 100 other creatures with varying frequency settings). By setting it to [FREQUENCY:100] it now appears in roughly 1/6 caravans. (I'd test it more thoroughly if loading worlds took less time on my PC)

[COPY_TAGS_FROM] does not copy caste tags applied to a creature

Wanted to note this here, as I've seen Giant versions of pack animals without the [PACK_ANIMAL] flag set in creature_raws[creature_index].caste[caste_index].flags.PACK_ANIMAL as viewed through DFHack. As the [PACK_ANIMAL] flag CAN be set on the entire animal, and then pushed onto the male/female/whatever castes. It is still a caste flag, and does not get copied when using [COPY_TAGS_FROM]. Which only appears to copy creature wide tags.