Seas of Malice (Character Creation + 3 locations partially done, WIP)

I got a pending reply it seems for sharing a screenshot as i am a newbie :slight_smile:
When you visit Harakon and then ask to buy something then you need to remove the last sentence.
"Harakon himself stands at the desk. He greets you warmly. “Welcome! Come in, friend.”

That is a issue I noticed with almost every NPC possible who will say the same thing after going through every option. @Eos

You should change the “four differents jobs offers” because now it doesn’t work anymore.

As in the language doesn’t work, or the choice itself?

1 Like

My bad, the quote I used was wrong. My point is that there are more than 4 job offers.

So, I really don’t know what’s with the “set is not a variable” error. I’ve input the code myself. I can’t see the problem here with “set not being a variable,” since I’m not even trying to do anything with it. This has popped up before, when I tried to let the player change their profession, which is why I removed the feature. If anybody could help me with this, I’d be very grateful. My assumption is that I’m missing an asterisk somewhere but I can’t find where. BTW, I do have the indents correct.

“Race?”
*choice
#Human
*set race 1
*goto withdraw
#Elf
*set race 2
*goto withdraw
#Dwarf
*set race 3
*goto withdraw
#Orc
*set race 4
*goto withdraw
#Halfling
*set race 5
*goto withdraw

The error should tell you exactly what line it is on. Is this a copy direct from your code and which set is giving you trouble? I just copy/pasted that block into my game (and added indentation) and it works %100. :persevere:

No, since I’m using Chronicler as a tool, this is the code copypasted exactly from the file:


"Race?"
*choice
    #Human
        *set race 1
        *goto withdraw
    #Elf
        *set race 2
        *goto withdraw
    #Dwarf
        *set race 3
        *goto withdraw
    #Orc
        *set race 4
        *goto withdraw
    #Halfling
        *set race 5
        *goto withdraw
*goto withdraw


Weird… it’s the exact same

Line 359, in the html document. I’ll post the full doc below, but I’m not sure the character cap is that high. Let me try.

It doesn’t give you line numbers in Chronicler? Because if you can tell exactly which set is the issue it would help a lot.

Well, I’ve isolated the problem to that code bubble only since the error only shows up once I select the choice that brings me to that code block. So the problem has to be there.

Well, if one of those *set are the problem, I think they’d only actually throw up an error message if you select the option. You wouldn’t actually get an error message until you choose “Human” because the *set hasn’t triggered. So is it happening when you make a choice or before?

Sorry I’m cluttering your thread up with debugging. If you want, you could send the file to me to have a look at. I’m not a master at choice script but a second pair of eyes can’t hurt!

No, it’s fine. I’ll link the file here as well, once I find out how… the error triggers upon selecting any race, not just a single one. Also, the error triggers upon selecting any profession to switch to, in each scene.

Okay, those issues have finally been resolved. Many thanks to @Revache.
Link has been updated.

@Eos
I can confirm that you can actually choose a race now. ^.^

The error is still present when changing a profession though…
Of course, I could have and probably misunderstood what you meant in your previous posts. If you hadn’t gotten around to that yet ignore all but the first line >.<

Hopefully the changing profession issue should be fixed now; please use the updated link.

1 Like

Works perfectly! Time to venture into the unknown.

Try switching professions multiple times, somebody else had a problem with that.

1 Like

I changed three times, even going back to my first job and it worked.

HUEEEEE, It is time to test your code!