Welcome to the Builder Academy

Question Timed DT

More
02 Apr 2025 21:42 - 02 Apr 2025 21:45 #10641 by JTP
Replied by JTP on topic Timed DT
Ok cool I Can change the randum number 2, 5. Thanks!


My coding skills are limited. I’m just a teacher that plays game master for some young kids.

I can sometimes tweak a spell/skill and make a new one from copying things that I find other places in the code.

But other times I run into a wall and I have no idea how to fix something and often end up having to scratch what I work on because I don’t know what to do.

I would never be able to create something from scratch.

But I’m trying. The going_to thing in the log might take me ages trying to figure out. And maybe I won’t 
Last edit: 02 Apr 2025 21:45 by JTP.

Please Log in or Create an account to join the conversation.

More
03 Apr 2025 18:06 - 03 Apr 2025 20:56 #10642 by JTP
Replied by JTP on topic Timed DT
ohh well I have been looking since yesterday, at how to make the log with going_to in order to add where the player hit the timed DT

I only got it to work showing the name

But no luck haha


On a side note... what would happen if a room has both a DT and also a Timed DT and someone walked in ?
Last edit: 03 Apr 2025 20:56 by JTP.

Please Log in or Create an account to join the conversation.

More
08 Apr 2025 20:20 #10653 by cunning
Replied by cunning on topic Timed DT
DT will always win because its instant.

IN act.movement.c
/* Good times, timed dt, let them catch this one */
if (ROOM_FLAGGED(IN_ROOM(ch), ROOM_TIMED_DT)) {
log("TIMED_DT: Char %s, Room To = %d", GET_NAME(ch), GET_ROOM_VNUM(going_to));
timed_dt(NULL);
}

Please Log in or Create an account to join the conversation.

Time to create page: 0.215 seconds