Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: How to remove castes?  (Read 1427 times)

Sallen

  • Bay Watcher
    • View Profile
How to remove castes?
« on: July 13, 2014, 11:05:19 am »

I have a creature defined with COPY_TAGS_FROM, but I want this creature to come only in female, no males. How can I undefine the male caste?
Also, can I use CV_REMOVE_TAG for something like ALL_ACTIVE ([CV_REMOVE_TAG:ALL_ACTIVE])?

I'll paste here some of the code I have. These are for my Samurai Mod.

Spoiler (click to show/hide)

Hugo_The_Dwarf

  • Bay Watcher
  • Modding Mentor
    • View Profile
    • Regeneration: Forced Evolution
Re: How to remove castes?
« Reply #1 on: July 13, 2014, 11:23:27 am »

I have a creature defined with COPY_TAGS_FROM, but I want this creature to come only in female, no males. How can I undefine the male caste?
Also, can I use CV_REMOVE_TAG for something like ALL_ACTIVE ([CV_REMOVE_TAG:ALL_ACTIVE])?

I'll paste here some of the code I have. These are for my Samurai Mod.

Spoiler (click to show/hide)

CV_REMOVE_TAG: only works in a creature variant (or at least use a APPLY_CURRENT_CREATURE_VARIATION to save the CV changes), also it might be easier to make a CV_ that adds pop ratios like:

[CV_NEW_TAG:SELECT_CASTE:MALE]
      [CV_NEW_TAG:POP_RATIO:1]
[CV_NEW_TAG:SELECT_CASTE:FEMALE]
      [CV_NEW_TAG:POP_RATIO:70000]

that way females are vastly more common then males, and they won't show.
Logged

zach123b

  • Bay Watcher
    • View Profile
Re: How to remove castes?
« Reply #2 on: July 13, 2014, 03:27:45 pm »

could you select the male caste and make it female? that way they're truly female only
Logged
"IT'S WORLDGEN TIME!"
"No, Meph, No!"

Sallen

  • Bay Watcher
    • View Profile
Re: How to remove castes?
« Reply #3 on: July 15, 2014, 05:32:08 am »

I'm a complete noob when it comes to modding this game. Is there anywhere I can read about creature variations? A quick search on the wiki turned up nothing, but I'm probably missing it.

Button

  • Bay Watcher
  • Plants Specialist
    • View Profile
Logged
I used to work on Modest Mod and Plant Fixes.

Always assume I'm not seriously back

scamtank

  • Bay Watcher
    • View Profile
Re: How to remove castes?
« Reply #5 on: July 15, 2014, 11:28:05 am »

We really should get rid of the useless modding tutorials in favor of an easily found token page listing.
Logged

Shadowclaimer

  • Bay Watcher
  • Looks like cat for dinner.
    • View Profile
Re: How to remove castes?
« Reply #6 on: July 15, 2014, 11:56:48 am »

We really should get rid of the useless modding tutorials in favor of an easily found token page listing.

Dear God yes.. the token pages on the wiki are a god-send and the vast majority of why the game is moddable to me lol
Logged
Advanced Civilizations (0.40.X+)

Former creator of Metallurgy, Atum, Aquaculture, and Agriculture for Minecraft and Toxic Worlds for Starbound.

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: How to remove castes?
« Reply #7 on: July 15, 2014, 08:57:14 pm »

We really should get rid of the useless modding tutorials in favor of an easily found token page listing.

http://dwarffortresswiki.org/index.php/Token

There's an entire section dedicated to that article in the modding tutorial... maybe I should just migrate the whole thing over.

ArKFallen

  • Bay Watcher
  • Bohandean Desserter
    • View Profile
Re: How to remove castes?
« Reply #8 on: July 21, 2014, 12:34:19 am »


http://dwarffortresswiki.org/index.php/Token

There's an entire section dedicated to that article in the modding tutorial... maybe I should just migrate the whole thing over.
Or make a reference link instead so those who Search for "Token" don't have to load the whole page if their internet is slow.
« Last Edit: July 21, 2014, 12:36:36 am by ArKFallen »
Logged
Hm, have you considered murder?  It's either that or letting it go.
SigText
I logged back on ;_;