mstdn.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
A general-purpose Mastodon server with a 500 character limit. All languages are welcome.

Administered by:

Server stats:

16K
active users

#crpg

10 posts8 participants0 posts today

I have been restructuring Richard Garriott's DND1 code that was written in BASIC. The old kind of BASIC where you had line numbers and did a lot of GOTO a line number.

It is fascinating trying to move it around with more modern eyes and years of programming dogma.

The code only has the concept of global variables. Every variable you make is then in the global space.

You can reuse a bit of code anywhere by just doing a GOTO line number. But it makes it very difficult to reason about because you might think of a stack of lines as a function and want to group them together, but some code somewhere else might just jump right into the middle of it!

Some bit of code might rely on some variable from somwhere else but it is difficult to know if some other bit of code is clobbering it.

Anyhow, this is the restructured version I put together.

codeberg.org/random-wizard/dnd

I moved things into GOSUB sections. Each GOSUB gets 1000 lines (usually it goes by 10s so only 100 lines) and the last line always ends in 999 and is a RETURN. A REM SUBROUTINE means nothing will GOTO in the middle of it.

This way it sort of acts like a traditional function. Still does not have arguments though.

I wonder if there are any companies out there looking for BASIC programmers.

#crpg#ultima#basic
Continued thread

If I fake pre-rendered sprites by using 3D characters on a 2D background, and I also fake 2D backgrounds by pointing an orthographic camera at a 3D environment to get sick real-time shadow effects, what would actually be the point of making the game isometric in the first place?

It already is a fully 3D game.

🤔

OpenMW is the absolute definitive way to play Morrowind today. Far more stable, loads of engine tweaks, better mod support, bug fixes, native applications on both Windows AND Linux...

It's just the perfect way to play today. There's virtually no reason to use the vanilla version anymore.

youtu.be/bR-WZ8NOG_k

youtu.be- YouTubeEnjoy the videos and music you love, upload original content, and share it all with friends, family, and the world on YouTube.

In Richard Garriott's DND1, written in 1977, he is using ascending AC.

The monster attack against the character is as follows.

Use the following number for the character's armor.
None = 6
Leather = 12
Chain = 16
Plate = 20

Add that to the character's dexterity score (which will be between 3-18)

The monster then rolls a 1d40

The monster needs to get above the characters armor + dexterity.

#dnd#crpg#rpg

Was reading Richard Garriott talking about writing code and porting it to different systems and how porting to the PC was harder than other systems, because most computers in the early 80s used the same cpu, the MOS Technology 6501 and 6502.

It is not too far fetched to imagine a world where Intel did not become the dominate cpu.

In Richard Garriott's DND1 written in BASIC in 1977, I thought this bit of code was interesting.

It would be Death Saves for HP in more modern discourse.

If the characters's HP are 0, the character survives if their CONSTITUTION is 9 or above.

If the characters' HP are below 0, the character survives if their CONSTITUTION is 9 or above, but they lose 2 points of CONSTITUTION and gain 1 hit point.

This was only 3 or 4 years after D&D had been introduced to the world.

#dnd#crpg#rpg

I think I have found a programming language that hurts my brain more than Perl.

codeberg.org/random-wizard/dnd

I took Richard Garriott's BASIC code from 1977 and did as little to it as I could to get it to work with Applesoft BASIC. You can copy the above code and paste into the Applesoft BASIC in Javascript emulator.

inexorabletash.github.io/jsbas

Do not ask for instructions!
And you have to name your character
SHAVS

Speaking of BASIC. Someone should write a code linter for BASIC. It could check for errant GOTOs and the like.

#dnd#rpg#osr

Has anyone had the chance to try the Bard's Tale Trilogy remaster? I have it on GOG and I've been meaning to play it but haven't had the chance to really sit down and learn how it plays.

What little time I did spend playing it, though, I really enjoyed. The remastered graphics look fantastic, the UI is great, and it still FEELS like an 80s CRPG/dungeon crawler.

Any tips for me for when I finally try it?