Search found 4098 matches

by TMC
Wed Dec 14, 2016 3:11 am
Forum: Q&A Discussion
Topic: Caterpillar Party at Different Speeds?
Replies: 4
Views: 1113

My main motivation for overhaulling/rewriting the caterpillar party is support pixel based movement :)
by TMC
Tue Dec 13, 2016 12:18 pm
Forum: Q&A Discussion
Topic: 2 Possible Engine Bugs?
Replies: 20
Views: 3957

I assume this is from someone who doesn't (or hasn't) always experiencde the bug, because g_debug_archive.txt shows that the r2teleporter and battle scripts are run, which I guess means they got through character selection. (Have you seen the "battle: division by zero: 1200/0" error before...
by TMC
Tue Dec 13, 2016 12:05 pm
Forum: Q&A Discussion
Topic: Timer script triggers w/ arguments?
Replies: 14
Views: 3001

I was thinking of lambda expressions. Except I don't like the name "lambda", because it comes from lambda calculus and almost noone knows lambda calculus. It looks like your closure() syntax is just a lambda expression with no arguments? Here's something I wrote up a while back about possi...
by TMC
Mon Dec 12, 2016 9:05 pm
Forum: Q&A Discussion
Topic: Timer script triggers w/ arguments?
Replies: 14
Views: 3001

Funnily enough, "why not use runscriptbyid with settimer" was also my first thought for a second. I am working on something called closures in the new script interpreter that will actually let you write subscript, temp, begin hurt flash(ref, i) end set timer (i, 0, ...
by TMC
Mon Dec 12, 2016 8:49 pm
Forum: Q&A Discussion
Topic: 2 Possible Engine Bugs?
Replies: 20
Views: 3957

Yes, g_debug.txt should be in there. I think we really need an option to automatically prompt the user to email their g_debug.txt when an error occurs. Note that you can script it with the "send email" command, but you can't know when an engine error occurred, and I was working towards the...
by TMC
Mon Dec 12, 2016 9:45 am
Forum: Q&A Discussion
Topic: Timer script triggers w/ arguments?
Replies: 14
Views: 3001

runscriptbyid and settimer are the two most common commands that take script IDs as arguments, but the difference is only runscriptbyid lets you pass some extra arguments along to the script. You can't use the two commands together in any way, if that's what you mean. If the question is "why ca...
by TMC
Mon Dec 12, 2016 9:35 am
Forum: Q&A Discussion
Topic: trouble with crafting script
Replies: 3
Views: 1335

(Sorry for the slow response; I've been in Mexico for nearly 2 weeks.) I'm not sure why this is happening. Maybe it's because you held down the use key, and something from the menu is selected as soon as it's opened, and then it's reopened again immediately? I think if that happens, you won't even s...
by TMC
Mon Dec 12, 2016 9:27 am
Forum: Q&A Discussion
Topic: Test combat
Replies: 5
Views: 1268

Not quite what you were asking for, but here's something related: In-game, press F8 to bring up the debug menu. Near the bottom is "Show/test battle formations", which shows which formations are part of the formation set assigned to the tile that the hero is currently standing on, and you ...
by TMC
Mon Dec 12, 2016 4:59 am
Forum: Q&A Discussion
Topic: NPC reference is invalid error
Replies: 1
Views: 646

You can either use "npc is disabled" which returns true either if the npc doesn't exist or if it is hidden due to a tag condition, or you can use "get npc id", which returns -1 if the NPC doesn't exist. Strangely, "get npc id" even works if you give it an NPC ID, testin...
by TMC
Mon Dec 12, 2016 4:34 am
Forum: Q&A Discussion
Topic: Cant import bmp files to game?
Replies: 7
Views: 1705

I use Grafx2 with the OHR and have no problems with the .bmp files it produces. You can actually import any 1-bit, 4-bit, 8-bit, 24-bit or 32-bit bmp files as sprites as long as they only use 16 colours and regardless of the image size; 16-bit bmps and some other very rare types of .bmp file are not...
by TMC
Mon Dec 12, 2016 4:18 am
Forum: Q&A Discussion
Topic: 2 Possible Engine Bugs?
Replies: 20
Views: 3957

Ouch! I tried reproducing this on my phone and couldn't either. Have you heard from anyone whether it occurs consistently? I don't think it is possible for a script to be killed due to a serious error without an error message being shown to the player, but I'm not 100% sure about that. In the video ...
by TMC
Mon Dec 12, 2016 1:48 am
Forum: Q&A Discussion
Topic: How to show string-var in textbox?
Replies: 5
Views: 1413

"string sprint" doesn't allow you to use the same string ID for both the destination string I'd and the format string ID Not true, they can be the same. The main reason that your script didn't show anything at all is that 200 isn't a valid string ID. Strings have IDs from 0 to 99. Apparen...
by TMC
Mon Nov 28, 2016 9:22 pm
Forum: Game Discussion
Topic: Official MEGA-THREAD for "Finish Your Damn Game" Contest
Replies: 44
Views: 14795

OK. $0="Sword (blade + handle)" gives the name (caption) of the menu item). A little known feature is that $X="..." to set string number X also returns the value X, which is very handy when you want to pass a string to a command or script. @craft sword is equal to the ID number o...
by TMC
Mon Nov 28, 2016 9:41 am
Forum: Q&A Discussion
Topic: just wanna make an infinite textbox
Replies: 2
Views: 1000

Well, the flicker is not entirely bad, it indicates your keypress was seen and is being ignored!

But of course if the textbox says END OF DEMO and you can't advance, it's pretty obvious why not.
by TMC
Mon Nov 28, 2016 2:19 am
Forum: Game Discussion
Topic: OHR Multicart Compilation
Replies: 418
Views: 64364

That one blue pixel makes a big difference (a big improvement)! I think the blade did look somewhat 'wonky' to begin with, although it does seem a bit worse now.

I don't think the change to the foot is very significant; I can't decide whether it's better or worse.