HTML Coding test Help

AJLee7385

Well-Known Member
Game Developer
Jun 25, 2019
1,412
778
Hello fellow devs and testsers. I am hoping you can do me a solid I've been working really hard trying to make my game good. But players keep telling me i dont give them enough choices.
I need some of you or any of you if the have the time to test my first attempt at trying to code choices for my game. It is not my main game i didnt wanna risk breaking it so i made a smaller one starting with single path to start.

if you test you will see the areas where i need help and i would appreciate any of you give if any of you have the time. i really wanna make my game great for people.

here's the mega link for my code test version mind you its very limited but it took me all day yesterday just to figure out to code what i did code

 

AJLee7385

Well-Known Member
Game Developer
Jun 25, 2019
1,412
778
if it helps guys here's the twine 1.4 version i just made any help would be appreciated
 

Deimacos

Member
Apr 5, 2018
367
728
What do you, or rather they mean by not enough choices?

Regardless, for the comments that you have in your game:

You don't have permission to view the spoiler content. Log in or register now.

"I cant figure out how to renter story stuff without breaking game"
I can't figure out what do you mean with this one, care to explain?

Now, forgive if I'm wrong but it looks like you don't have that much experience in coding yet? as in this is your first attempt to it? if that's the case it will do you well to learn the basics, like variables, functions, all that stuff, is pretty much the same for any programing language so there's a lot of resources on that, you just need to find the stuff that applies to HTML, wich is the one you are using.

Regarding your orthograpy and grammar, it may not be your first language, but you should put at least some effort into it, a simple trick you can do is to download an add-on on your browser called Grammarly, is free, and write your dialoge in google docs, the add-on will show you what mistakes you may have and help you correct them, then you can copy paste it on your editor for the game, just remember that it ain't flawless, some mistakes may still sneak past.

Lastly, If you want an example to go by, I suggest looking at the game , is also done in twine I believe, and it covers pretty much all of what you wan't to know.
 
  • Like
Reactions: Abhai

AJLee7385

Well-Known Member
Game Developer
Jun 25, 2019
1,412
778
ive gotten some help from a twine sugercube coder on discord but i wanted things like money wood energy exp. i just hadnt updated this post yet my bad.

i dont completly know what im doing yet but i can allso noww add affection and corruptiion stats to npcs
 

AJLee7385

Well-Known Member
Game Developer
Jun 25, 2019
1,412
778
hey guys if theres any testers or coders around i need a favor just added some new stuff but i think my coding friend left for night.





my current problem is in my bedroom


this is what supposed to happen

Casey Kisses Perfect Walkthrough

1.Hidden Door
2.Lobby
3.Bedroom
4.Bathroom
5.Bedroom

All Content as of 0.09

when i get to bedroom

default plays and both bedroom scenes play can anyone please take a look and let me know how to fix it


i keep trying to tinker and figure it out myself but im just making it worse please please please someone take a look.

all im trying to do i get the bedroom scenes to play the way there supposed two

ie i enter bedroom first scene plays not default scene and then both bedroom scenes.
 
Last edited:

Deimacos

Member
Apr 5, 2018
367
728
The game itself tells you the problem:
Code:
Error: cannot find a closing tag for macro <<if>>
<<if $Player.Name is "Casey" and $Player.Alignment is "Perfect" and visited() is 2>>…
Basically, you forgot to close your if block by putting
Code:
<</if>>\
at the end of your scenes or sequences, is what I get from it anyways.
 

AJLee7385

Well-Known Member
Game Developer
Jun 25, 2019
1,412
778
yeah but that wast prob i started with. i was trying to make it just the first bedroom scene played.

everything i do seems to make it worse

i started out with a scene where i go into room and three scens would play now everything plays im scared to mess with it break it even more.
 

AJLee7385

Well-Known Member
Game Developer
Jun 25, 2019
1,412
778
ok guys really need some help last game version was really messed up im trying to spell check and fix everything thats broken right now need some help with resource gathering and work locations.

current set up people can still gather resources after the game reads the dpnt have the energy to do so

so any help would be appreciated.

one of twine suger cube friends thinks i should use a widigit gave me code to to try but never tpld me how to make a widit but personally id rather use this kinds setup

<center>
<<if $Player.Energy gte 10>>\

[[Search For Resources]]
[[Resume Training->Training Grounds]]

<<else>>\

You are too exhausted to train or search for resources.

<</if>>\ [[Back Home->Outside]] </center>

it worked here but cant it to work in the two rooms i need it two

@@.Elizabeth; "This isn't over Casey. You need to learn control. We will just have to train longer tomorrow."@@

Then everyone rushes back to the house.

End of Content as of Version 0.08

<center>

[[Head back Home|Outside]]

</center>

<center>

<<else>>\

<img class="centered" src="media\images\Misc\Thunderstorm.gif">

As you enter the Forest you realise a very large thunder storm is headed your way you best best is to head home like right now.

<center>[[Back Home->Outside]]</center>

<</if>> <</switch>> <center> <<if $Player.Energy gte 10>>\

<img class="centered" src="media\images\Misc\Forest 1.jpg">

As you enter the Forest you realise how calm and quiet it is. You can now begin traning yourself in the use of magic at the train grounds as well as search for resources. If you dont feel like it you could also just go home.


[[Search For Resources]]
[[Resume Training->Training Grounds]]

<<else>>\

You are too exhausted to train or search for resources.

<</if>>\ [[Back Home->Outside]] </center>
 

AJLee7385

Well-Known Member
Game Developer
Jun 25, 2019
1,412
778
i cant post the room codes where i need to get them to work but i relly could use some help guys