Coming Soon: Text-Based Adventure tutorial for Dungeons & Dragons: Honor Among Thieves!

Yep. It looks like it was double-markdowned. I’ve fixed it, but here’s the link.

2 Likes

@KIKIvsIT Anyway we could get some sort of block that can easily make variables similar to the coins/potions/tickets so we can put up counters for our own variables. Workin on making a decent sized game and wanted to make a keys variable/edit potions to be health potions etc. I havent found any good way to change the sprites of the built in adventure variables/make other like variables pop up.

I’m adding this ability to Carnival very soon (for multiplayer) but I have a couple of sticky UI things to work through related to overwriting the score. In the meantime, you should be able to add the arcade-text extension and put these in custom.ts:

namespace custom {

    let scoreText = textsprite.create("")

    //% blockId=set_score_override_any
    //% block="set $thisImg to $thisScore"
    //% thisScore.defl=0
    //% thisImg.shadow=screen_image_picker
    export function setScoreOverrideAny(thisImg: Image, thisScore: number) {
        info.setScore(thisScore)
        scoreText.setText("x" + convertToText(info.score()))
        scoreText.setIcon(thisImg)
        scoreText.setBorder(1, 3, 1)
        scoreText.setMaxFontHeight(9)
        scoreText.right = 160
        scoreText.top = 0
        scoreText.update()
        info.showScore(false)
    }


    /**
    * Changes the score and overrides the traditional UI
    * with an iconified version
    */
    //% blockId=change_score_override
    //% block="change $thisImg by $thisScore"
    //% thisScore.defl=1
    //% thisImg.shadow=screen_image_picker
    export function changeScoreOverrideAny(thisImg: Image, thisScore: number) {
        info.changeScoreBy(thisScore)
        setScoreOverrideAny(thisImg, info.score())
    }
}
1 Like

@KIKIvsIT The above “changeScoreOverrideAny” block only gives the same thing thats already in the adventure extension. It only allows you to select the same adventure variables of (candy, coins, tickets, potions) Dont know if its meant to allow you to change any variable or not. Curious if theres a way to just add to the “adventure variables” list somewhere and change the icons so you can use the built ins to change/display them.

Also the setScoreOverrideAny block only allows for a singular icon variable in the TR of the screen. Because any others will just overlap one another.

Figured out which file the adventure extension stores the variables in however the file is read only. Is there a way to get a writable file of the dnd adventure extension.

The code above will actually let you choose your own image, it just shows up under “Custom” in the toolbox, instead of adventure.

Extensions will be read only, but you can copy the contents to custom.ts if you want to edit…

the mimic looks a lot like that one character from prodigy

are u guys planning to copy that?

2 Likes

The term ‘Mimic’ / concept of the ‘treasure chest that bites back’ creature is actually from the first edition of Dungeons and Dragons back in 1974 / in printed form in 1977 – since then it has become a fantasy story / game staple, though, so you’ll see it around in all sorts of places!

2 Likes

Only one more week to play the Adventure skillmap with the Honor Among Thieves inspired assets! If you want the sprites and music from this map make sure to play by EoD 4/28.

As of May 1st, this will become a generic “Adventure” themed map with all new art and music.

1 Like