Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: TOKEN that all creatures share.  (Read 649 times)

DizzyCrash

  • Bay Watcher
    • View Profile
TOKEN that all creatures share.
« on: February 06, 2013, 07:48:29 pm »

Hello! I was wondering I am tryiong to make all creatures in the game available for pet and taming so if i catch it i can tame it... but I dont feel like sifting threw the entire thing one at a time adding it so I was looking for a Token all creatures have that I can use to replace all mention of that token with the appropriot pet tokens and of course returning the token.

anyway I was thinking larg roaming can anyone garente for me all creatures have this? with exception of vermin
Logged

Grimlocke

  • Bay Watcher
  • *kobold noises*
    • View Profile
Re: TOKEN that all creatures share.
« Reply #1 on: February 06, 2013, 08:04:34 pm »

NAME I suppose? Maybe PREFSTRING and CREATURE_TILE also.
Logged
I make Grimlocke's History & Realism Mods. Its got poleaxes, sturdy joints and bloomeries. Now compatible with DF Revised!

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: TOKEN that all creatures share.
« Reply #2 on: February 06, 2013, 08:06:33 pm »

Use this regular expression to search:

(NAME:.*\])

And this to replace:

\1[PET][TRAINABLE]

Tevish Szat

  • Bay Watcher
  • [PREFSTRING:diabolical schemes]
    • View Profile
Re: TOKEN that all creatures share.
« Reply #3 on: February 06, 2013, 09:53:19 pm »

prefstring covers every likeable animal, if not literally every one.  finding '[PREFSTRING' and replacing with '[PET][TRAINABLE][PREFSTRING' should get the desired results.

Should.
Logged
A medium-sized humanoid fond of fantasy and science-fiction.

Tevish Szat likes books, computers, board games, and cats for their aloofness. When possible, he prefers to consume hamburgers and macaroni and cheese. He needs caffeine to get through the working day.