Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Topics - GregHayes

Pages: [1]
1
DF Modding / Secrets and the 0.42 Knowledge System
« on: December 10, 2015, 09:16:31 pm »
Unfortunately, the "secrets" system used for necromancers isn't very extendable. The only motive for learning a secret that the game recognizes as valid is immortality, which only applies to historical figures in their extreme old age, and never to goblins or elves. Additionally, historical figures looking to learn a secret only seem to bother searching necromancer towers for potential mentors. So secrets that aren't about necromancy are pretty much doomed to never spread out beyond the first person to discover them.

The new knowledge system changes everything.

Inspired by thriggle's discoveries here, I created the following secret:

Code: [Select]
[INTERACTION:SECRET_FIRE]
[I_SOURCE:SECRET]
[IS_NAME:the secrets of fire]
[IS_SPHERE:FIRE]
[IS_SECRET_GOAL:IMMORTALITY]
[IS_SECRET:SUPERNATURAL_LEARNING_POSSIBLE]
[IS_SECRET:MUNDANE_RESEARCH_POSSIBLE]
[IS_SECRET:MUNDANE_TEACHING_POSSIBLE]
[IS_SECRET:MUNDANE_RECORDING_POSSIBLE:objects/text/book_instruction.txt:objects/text/secret_fire.txt]
[I_TARGET:A:CREATURE]
[IT_LOCATION:CONTEXT_CREATURE]
[IT_REQUIRES:CAN_LEARN]
[IT_REQUIRES:CAN_SPEAK]
[I_EFFECT:ADD_SYNDROME]
[IE_TARGET:A]
[IE_IMMEDIATE]
[IE_ARENA_NAME:fire mage]
[SYNDROME]
[CE_DISPLAY_NAME:NAME:fire mage:fire mages:fire magic:START:0]
[CE_CAN_DO_INTERACTION:START:0]
[CDI:ADV_NAME:Hurl fireball]
[CDI:INTERACTION:MATERIAL_EMISSION]
[CDI:USAGE_HINT:ATTACK]
[CDI:BP_REQUIRED:BY_CATEGORY:HAND]
[CDI:FLOW:FIREBALL]
[CDI:TARGET:C:LINE_OF_SIGHT]
[CDI:TARGET_RANGE:C:15]
[CDI:MAX_TARGET_NUMBER:C:1]
[CDI:WAIT_PERIOD:30]
[CE_CAN_DO_INTERACTION:START:0]
[CDI:ADV_NAME:Spray jet of fire]
[CDI:INTERACTION:MATERIAL_EMISSION]
[CDI:USAGE_HINT:ATTACK]
[CDI:BP_REQUIRED:BY_CATEGORY:HAND]
[CDI:FLOW:FIREJET]
[CDI:TARGET:C:LINE_OF_SIGHT]
[CDI:TARGET_RANGE:C:5]
[CDI:MAX_TARGET_NUMBER:C:1]
[CDI:WAIT_PERIOD:30]

The result? Over the course of a two-hundred and fifty year worldgen, an elderly dwarf uncovered the secrets of fire, wrote them down, and stored the resulting slab... in an ordinary library in the dwarven fortress of Hammerlearned, open to anyone to come visit. Over the years, numerous scholars have visited the library of Hammerlearned, and some of them have happened to come across the peculiar bronze slab Gravelglow:



In short, if you mod in a secret that does not grant the animate dead ability (and thus send the historical figure off to build a tower) there is a possibility that they will store the slab in their local library. Scholars who visit the library during worldgen may then learn the secret, causing it to spread. Presumably they will eventually write spellbooks of their own and store them at their own local libraries, but 250 years apparently isn't long enough for that to happen.

This opens up a lot of potential for modding in new magic systems.

2
DF Modding / Replacing CUSTOM_CASTLE_HOLDER?
« on: February 09, 2011, 02:39:31 pm »
So, I'm back at my age-old hobby of attempting to mod DF to create an interesting medieval human civ. My current stumbling block is castles - no matter what I do, I can't stop the game creating a whole bunch of "lord" and "lady" positions to rule over the new castles. This is clearly unacceptable. I'd like to have some control over what shows up at those locations. Does anybody know what I can do to create a new position that would replace CUSTOM_CASTLE_HOLDER? Even knowing what tokens the position has would probably help a little - I tried looking into world.dat, but even decompressed the section on positions is totally unreadable.

3
DF Modding / The REPLACED_BY tag
« on: April 29, 2010, 11:10:16 am »
So my attempts at entity modding have been stymied by some trouble with the REPLACED_BY tag. For some reason, positions with this tag have a stubborn tendency to refuse to appear. For example:

Code: [Select]
[POSITION:CHAMBERLAIN]
[NAME:chamberlain:chamberlain]
[SITE]
[NUMBER:1]
[RESPONSIBILITY:ACCOUNTING]
[RESPONSIBILITY:MANAGE_PRODUCTION]
[RESPONSIBILITY:TRADE]
[APPOINTED_BY:KNIGHT_LEADER]
[REPLACED_BY:STEWARD]
[PRECEDENCE:180]
[EXPORTED_IN_LEGENDS]
[DO_NOT_CULL]
[COLOR:5:0:0]
[DUTY_BOUND]
[REQUIRED_OFFICE:1]

Does not appear, even though

Code: [Select]
[POSITION:KNIGHT_LEADER]
[NAME:knight:knights]
[GENDER:MALE]
[SITE]
[LAND_HOLDER:1]
[LAND_NAME:a manor]
[NUMBER:1]
[SUCCESSION:BY_HEIR]
[RULES_FROM_LOCATION]
[REPLACED_BY:BARON]
[RESPONSIBILITY:LAW_MAKING]
[RESPONSIBILITY:MILITARY_GOALS]
[RESPONSIBILITY:MILITARY_STRATEGY]
[RESPONSIBILITY:RECEIVE_DIPLOMATS]
[RESPONSIBILITY:ATTACK_ENEMIES]
[RESPONSIBILITY:PATROL_TERRITORY]
[RESPONSIBILITY:LAW_ENFORCEMENT]
[RESPONSIBILITY:EXECUTIONS]
[SQUAD:10:soldier:soldiers]
[PRECEDENCE:130]
[FLASHES]
[BRAG_ON_KILL]
[CHAT_WORTHY]
[DO_NOT_CULL]
[KILL_QUEST]
[EXPORTED_IN_LEGENDS]
[ACCOUNT_EXEMPT]
[PUNISHMENT_EXEMPTION]
[COLOR:4:0:1]
[REQUIRED_CABINETS:1]
[REQUIRED_RACKS:1]
[REQUIRED_STANDS:1]
[REQUIRED_BEDROOM:100]
[REQUIRED_DINING:100]
[REQUIRED_OFFICE:100]
[DUTY_BOUND]

does.

Any chance someone could give me a hand with this?

4
So, long-time player, first time poster. In honor of the recently concluded Megabeast week, I decided it was high time to begin advancing the little understood science of Applied Biology. The results follow.

quote:

DODOK ARCETH, OFFICIAL NOTICE OF RECOMMENDATION
FROM: Reg Kandomas, Royal Advisor
TO: His Majesty Deduk Sarveshgurded, King of Dodok Arceth
RE: The Umbral Organization

Following the events of 5th Hematite, 1049, I have determined that the experiments in lava flow carried out by the Umbral Organization are too dangerous for practice within inhabited areas. After meeting with high-ranking Umbral representatives, we have signed a deal allowing Umbral to establish their research projects on the condition that they do so as far from the Mountainhomes as dwarvenly possible.

To that end, we have selected a site in the uncivilized mountain ranges west of the Scintillating Sea. The site has been chosen due to the close proximity of an active magma vent and a nearby river. Any accusations that it was chosen due to the close proximity of several goblin towers are, of course, complete fabrications.

Within the next few months, Umbral will be dispatching a team of six dwarves to establish a small settlement on this site. Official documents currently refer to this site as "Wrackedmoon." These dwarves will be under the guidance of a representative of the Crown. I respectfully submit that Catten Keskaltunom be chosen for this duty. I will, of course, be happy to take up his duties as Mayor following his embarkation.

- Reg Kandomas

Additional Note: Our first reports concerning the mountains surrounding Wrackedmoon claim that they are haunted. This is clearly ridiculous, as our secondary surveyors have found no evidence of undead in the surrounding regions, but a close examination of Umbral records found that the latter survey was not on their files. This concerns me.


Expedition Leader's Report, 1st Granite, 1050
I would like to humbly submit that His Majesty has a very warped sense of humor.

Our team of seven arrived at the site today, only to discover that our preliminary surveys seem to have made a grave error. Not only is the magma vent... er... not here (we believe it may be underground), but the river seems to have been frozen completely prior to our arrival. Fortunately, we have an adequate supply of alcohol, and our scouts have located what appears to be an underground river on the other side of the mountain. Unfortunately, it appears to be infested with lizardmen. We have also located two chasms, a larger one at the western edge of the mountain and a smaller one on the eastern edge.

We've begun constructing an initial settlement, with an entrance within one of the peaks. There is a thick layer of silt just below the plateau west of the peak that we believe will be suitable for farming. We've also begun collecting wood from the surface of the plateau, and have tore down our wagon for additional wood. I guess we're in for the duration.

I don't trust our Umbral friends, I'm afraid. Most of them seem to be deliberately avoiding me. The only one who has approached me directly is one of the miners. Hopefully I can work my way into the others' confidence.

- Your Loyal Servant, Reg Kandomas, Expedition Leader, Outpost of Wrackedmoon

Okay, what exactly is going on here, newbie?
Wrackedmoon is an attempt to pioneer dwarven advancements in Applied Biology. Specifically, by creating an elaborate secret underground research facility where the relative strengths of goblins, megabeasts, and various kinds of local monsters can be assessed, thus allowing us to create the perfect biological weapon.

You DO realize what usually happens to secret underground research facilities, right?
I'm counting on it.

"Umbral Organization?" What the hell is wrong with you?
It was easier to get an Umbrella Corporation pun out of the name generator than it was to get an Aperture Science one.

How are you going to do this?
I'm playing v0.27.176.38c, unmodified except for giving dragons, bronze colossi, and hydras the [CANLEARN] tag.

Dwarf me?
Sure, why not?

Note that all weapons-carrying migrants, animal caretakers/traders, and mechanics, along with all the initial dwarves save Reg are Umbral employees (security, scientists, and technicians, respectively). The Dungeon Master, when he arrives, will be the chief researcher. If you want to be an Umbral Security/Researcher/Tech/Whatever and I run out of appropriate migrants, I'll give a peasant the appropriate labors and hand you over.

Your first post is a community/story fort? Are you sure you know what you're doing?
At the very least, I will fail gloriously.

When can we expect the first update?
In about a week or so. Exams.


Pages: [1]