ThunderSOS

Another week so it’s time for another release.

I haven’t thoroughly tested the task trigger support for this but it adds support for default items - basically items you can add to every room (depending on the room tag of course).

See:

for more details.
You can do this in a few ways (like most things actually now the system is getting quite mature), see the previous section on friend rooms too, They may or may not be more appropriate for your specific scenario.It depends on how often you want to use them.

OK, release v0.34 has landed. This is mostly a maintenance release, in particular when a direction is also an adverb needed a little attention - so you can now HANG UP CLOAK as well as PUT CLOAK ON HOOK and HANG CLOAK ON HOOK.
You can also lose Cloak of Darkness if you blunder around in the dark too much.

But the main news this week is I’ve finally decided on a name for the thing that isn’t X-TADS or anything TADS-like.
So from now on I think I’ll call it TagForge if that’s OK with everyone?

Tag works because of the XML but also because you specify tags to define behaviour when developing your game - e.g. darkness is controlled by giving the room a ‘dark’ tag and declaring a DarkRoomRenderer that matches the ‘dark’ tag as well.

To this end I’ve shifted the documentation here:

1 Like

I haven’t made a release this week - I’m working on quite a big update. Finally I’m getting around to supporting:
SAY TO <npc> “command”
where command is actually another full input sentence.

It understands a lot but there’s a lot that needs tidying up - not least the ability for an NPC to refuse commands but also making output work for the NPC point of view.

You can currently move NPCs around using SAY TO <npc> “NORTH” for example and also get them GET|TAKE and DROP an object. Full task support is… not quite but sort of there in principle (there’s a slightly different task trigger set up for NPC oriented tasks and I’ve not documented this yet - or even tested it!)… and the feedback messages are a bit rough and ready come what may. I’m also working on how to template messages so they can work for any gender - an extension to the AuxiliaryMessage system (or probably something that sits on top of it).
Download the latest snapshot from the repo if you want to play, I’ve not made a proper release.

Continuing the rebrand mentioned last week the main repository for the library and the game is now here:

The 1984 game lives in the 1984.dat file and so to run it you need to type run 1984.dat similarly to run the Cloak of Darkness demo it’s run cloak_of_darkness.dat.
Previously the game was in the generic gamedata.dat file but let’s move away from that now the engine has a distinct identity away from the game.

The latest library does include the NPC command updates so you can have fun pushing PCs all around the map - they won’t complain (yet). Making them grumble is the next thing on the list.

It also includes better support for ME (and synonyms) and so the Cloak of Darkness demo has also been updated.

This hasn’t been formally released, it’s just in the latest build.

Oh and for those that are worried the system.properties file in the main directory allows you to turn off the auto-caps lock if you don’t want it.

NPC interaction is coming along:

We can talk to Npcs now!

What next?
s
You are in Mrs Parsons kitchen
The smell of boiled cabbage is almost overpowering.

Exits are:
North to Mrs Parsons flat.

You can see: THE BLOCKED SINK

You can also see: Mrs Parsons

What next?
give plunger to mrs parsons
Mrs Parsons says “Thanks comrade. What do I do with it?”.

What next?
say to mrs parsons “unblock sink with plunger”
Mrs Parsons unblocks her sink and hands the plunger back to you.
“Thanks for the lend comrade. She turns and moves to the living room.”

What next?
inv
You are carrying:
YOUR MINITRUE PASS

Your current balance is $0.00

So, I’ve not got the plunger back in my inventory so that needs sorting but it basically works!
The next release shouldn’t be too long.

Yep, that’s all sorted.
The task to handle the sink unblock action looks like this:

<task id="500500" name="Get Mrs Parsons to Unblock Sink">
    <trigger action="UNBLOCK" actionObject="SINK" targetObject="PLUNGER" npcIds="#{npcId}" roomId="7"/>
    <conditions>
        <condition type="checkCarrying" npcId="#{npcId}" itemId="11">:subject: does not have the plunger.</condition>
    </conditions>
    <onSuccess>
        <consequence type="updateRoomDescription" roomId="7">The smell of cabbage is somewhat reduced.</consequence>
        <consequence type="addItemsToRoom" itemIds="10"/>
        <consequence type="removeItemsFromRoom" itemIds="9"/>
        <consequence type="message">:Subject: unblocks :possessive: sink and hands the plunger back to you. </consequence>
        <consequence type="addItemsToInventory" itemIds="11"/>
        <consequence type="removeItemsFromInventory" npcId="500" itemIds="11"/>
        <consequence type="setNpcState" npcId="#{npcId}" nextState="3"/>
        <consequence type="timeCost" timeCost="10"/>
        <consequence type="moveActor" npcId="#{npcId}" roomId="6"/>
        <consequence type="message">"Thanks for the lend comrade." :Pronoun: turns and moves back to the trampled living room.</consequence>
    </onSuccess>
</task>

This is more or less a standard task that you’d author for the player but the presence of npcIds=“#{npcId}” makes it an NPC task instead. All the consequences then run from the NPC point of view.
Note also that the message substitutions look at the character (or player) and find what grammar parts to use in the messages.
Oh, and there’s only one condition (well, two if you include the implicit must be in room 7) - it’s hardly a rules system.