Search found 4098 matches

by TMC
Fri Feb 16, 2018 9:23 am
Forum: Q&A Discussion
Topic: How to prevent NPCs from overlapping?
Replies: 15
Views: 3711

That's a new command in Etheldreme. You're behind the times!
by TMC
Fri Feb 16, 2018 7:53 am
Forum: Q&A Discussion
Topic: How to prevent NPCs from overlapping?
Replies: 15
Views: 3711

To iterate NPCs with directional preference, just use the "sort children" script command. It doesn't matter that you're changing the order of the slices, because the engine will re-sort them when they're drawn. In the following, I'm assuming you have NPC/Hero layering set to "together...
by TMC
Fri Feb 16, 2018 7:35 am
Forum: Q&A Discussion
Topic: Sound effects volume control in plotscripting?
Replies: 7
Views: 1770

Currently, there's no such option. It's very much planned. Also fades, and panning, which can be combined for crappy "3D" (actually 2D) audio, and seeking within a sound effect or piece of music. I consider these fairly high priority features. It won't even be all that much work to impleme...
by TMC
Fri Feb 16, 2018 4:52 am
Forum: Q&A Discussion
Topic: How to prevent NPCs from overlapping?
Replies: 15
Views: 3711

Oh wow, this is a real can of worms. This is going to be a very difficult bug to fix 100% properly! In fact I definitely wouldn't prioritise it. (I mean, we haven't even fixed that MIDI crash bug yet after a decade) Because in your case the NPCs all move in the same direction it is actually feasible...
by TMC
Thu Feb 15, 2018 2:24 pm
Forum: Q&A Discussion
Topic: How to prevent NPCs from overlapping?
Replies: 15
Views: 3711

I'm guessing you run the "suspend obstruction" command somewhere, such as the new game script. That allows NPCs to walk through each other. Alternatively, maybe you use "set npc obstructs"? Note that "check NPC wall" only checks for possible collision with walls, not ot...
by TMC
Thu Feb 15, 2018 8:17 am
Forum: General Discussion
Topic: Trying to recover some old music
Replies: 7
Views: 1741

I see that Bloodlust has a tiny silent BAM file. I'm guessing you encountered the infamous MIDI looping crash bug, often triggered by very short MIDI tracks (and BAMs autoconverted to MIDI). That's valuable information; I haven't been able to reproduce that crash myself in a while, so I thought it h...
by TMC
Wed Feb 14, 2018 1:15 pm
Forum: Game Discussion
Topic: Looking for puzzle scripts
Replies: 23
Views: 9391

Yes, it's a common problem. One way around it is to use a timer instead of a while loop, that way the script will run every tick but won't suspend other scripts.

If you just search the wiki for "timer" you will find a bunch of example scripts, and How do I add a timer?
by TMC
Wed Feb 14, 2018 11:20 am
Forum: Q&A Discussion
Topic: Complete list of ${X} style strings?
Replies: 2
Views: 767

(That's weird, it seems I never hit the Submit button! Sorry for the slow response) I was going to say that the list of embed codes shown in the textbox editor is complete, but there is actually one missing (I'll add it now): ${B#} for the name of a button (from the Platform-specific Options menu). ...
by TMC
Sun Feb 11, 2018 10:36 pm
Forum: Q&A Discussion
Topic: How to linebreak a textstring in a plotscript?
Replies: 2
Views: 770

HSpeak supports \n in strings

Also, string sprintf is redundant there, you can just directly put the text in string 1:

Code: Select all

$1="You have nothing to put into the recycler.\nGather some organic waste to recycle." 
But to get automatic line breaks you should use a text slice set to Wrap.
by TMC
Sun Feb 11, 2018 7:33 am
Forum: General Discussion
Topic: Trying to recover some old music
Replies: 7
Views: 1741

The easiest way to find the path to the temporary directory is to look in g_debug.txt.
Also, BAM music will have names like bloodlust.## where ## is a number. They get converted to MIDI tracks with file extension .bmd (actually midi) the first time they're played.
by TMC
Sat Feb 10, 2018 3:19 am
Forum: Q&A Discussion
Topic: Slice alignment question
Replies: 2
Views: 885

Anchor and align points set where a slice's X,Y coordinates are measured from: where the child will be when its X,Y are set to 0,0. I can't quite tell what you're trying to do. But I guess you want to get the coordinate of the top left of the child slice relative to the top left of the parent slice?...
by TMC
Sat Feb 10, 2018 3:13 am
Forum: Q&A Discussion
Topic: How to start the fuction to take a video (gif?)
Replies: 5
Views: 1030

You can press F1 on the Debug Menu too.

Actually, in Custom I'd like to add a help page with general controls, and link to it from every other F1 help page. (We need links!)
by TMC
Fri Feb 09, 2018 8:35 am
Forum: Q&A Discussion
Topic: dribs and drabs
Replies: 11
Views: 2870

There could be something helpful in your c_debug_archive.txt file, if it hasn't been filled with lots of other stuff (it has a maximum size). But even if that were the case, the other error messages might be interesting! c_debug_archive.txt gets appended to either if Custom crashed last time it ran ...
by TMC
Fri Feb 09, 2018 8:32 am
Forum: Q&A Discussion
Topic: How to start the fuction to take a video (gif?)
Replies: 5
Views: 1030

All available keys in-game are documented in the F8 Debug Menu.

Unfortunately not all keys available in Custom, like F12/Ctrl+F12, are documented in the F9 Global Editor Options menu. I should probably add them.
by TMC
Tue Feb 06, 2018 3:47 pm
Forum: Game Discussion
Topic: Some Useful Functions
Replies: 6
Views: 2624

Cool, I've added a link to these from Script dump (I regret using such an unflattering name for that article!) Creating wrapper scripts which run some command and then wait is extremely common. Probably we should just add include lots commands like that, such as "walk hero wait", "pan...