Using If Seen to go to another section (and resizing images)

So progress on my new game save is going swimmingly but I found myself stuck at one part of my code where I used an "If seen" to indicate that if the player opened a cabinet or not and if they can progress depending on what they did. The code was supposed to be if the player did not get the suit from the cabinet then they can not leave the room but if they do then they can leave the room. But when I put a story.go code within the If seen, it comes up as null and remains there instead of moving to the next section. I tried looking for other discussions to help and came up with a new code that also doesn't work.

Here's the code that I have now:

[two open doors]:
if seen:SuitUp {
squiffy.story.go("Training");
}

Drake leaves through the two open doors, exiting the van and entering into the bright, yellow light from the outside world.}
{else: <p style = "color:orange";><.b>Drake:</.b> I should get my suit on before leaving the van.}


The else part works just fine, by the way, and the message after the story.go part comes up as well. But the story won't progress to the "Training" section.

Another small issue I have is, I don't know how to resize images. I changed the width and height (like another discussion said to do) but it either remains as small or remains as too large for the screen.

(Using this image as an example)

<.center><. img src="https://vignette4.wikia.nocookie.net/batman/images/4/4b/Batman-the-telltale-series-logo-white.png/revision/latest?cb=20160920222933""width:800px;height:300px;"></.center>

For both issues, I'm making this game through the online site and not the download version. Thanks!


Hello Brandon, can you post all the implicated code here? For test purpose.

For images, the line looks that this:

<center><img src="https://vignette4.wikia.nocookie.net/batman/images/4/4b/Batman-the-telltale-series-logo-white.png/revision/latest?cb=20160920222933" style="width:800px;height:300px;"></center>

Yeah, sure I'll post it now. And thank you, the code for the images worked just fine.
Below is the section for the scene I'm writing. I will take out some code but only the ones that have nothing to do with the if seen stuff. There is another if seen which works but it's only the one at the beginning, that involves the story.go script, that doesn't seem to work. I also put some periods and extra end brackets in there to stop the code from functioning in here. If something doesn't work right, I can double check and edit this post to see if I missed something although it looks all good for me, at the moment.

EDIT: Nevermind, learned how to do that code box which apparently cancels out coding. Nice!


[[Van]]:
@clear

Drake looks around the van. Inside the van, there are [two open doors], leading outside, towards the left of him, a [computer station] with a desk, in front of him, a [metallic cabinet], next to the computer desk, [the slot] that separates the front and back of the van, [a chair] in the corner and the [bench], behind him.

[two open doors]:
if seen:SuitUp {
        squiffy.story.go("Training");
    }

Drake leaves through the two open doors, exiting the van and entering into the bright, yellow light from the outside world.}
{else: <p style = "color:orange";><b>Drake:</b> I should get my suit on before leaving the van.}

[computer station]:

[metallic cabinet]]:
[Examine](ExamineSuitCabient)
<br>
[Open](OpenSuitCabient)

[ExamineSuitCabient]:

<p style = "color:orange";><b>Drake:</b> This is where I usually keep my suit. John designed it and added it to the van. Now I can get my suit on wherever we go.

[OpenSuitCabient]:

{if seen SuitUp: <p style = "color:orange";><b>Drake:</b> I already got my suit on.}
{else:Drake grabs the door handles and opens the doors, revealing an [armored suit] on a display within.}

[armored suit]:
[Examine].(ExamineVigilanteSuit)
<br>
[Put On](SuitUp)

[ExamineVigilanteSuit]:

<p style = "color:orange";><b>Drake:</b> This is the suit. I use it when I go out to fight for the city and the people beyond it. It protects me from a lot of different attacks but it still doesn't feel like the old one.

[SuitUp]:
@clear
    setTimeout(function(){squiffy.story.go("Van");}, 8000)

Drake takes on the suit off of the display and brings it forwards, blocking the view. The darkness then fades, a while later, showing off Drake's boots and moving upwards towards his armored legs then his armored torso until his head is put into view. He is seen adjusting his goggles, which are resting on his forehead.

<p style = "color:orange";><b>Drake</b>, <i>after suiting up</i><b> :</b> Now I'm ready.


[the slot]:


[a chair]:

[bench]:


[[Training]]:
Drake closes the doors of the van behind him and turns around, seeing the various trees around him.

I don't mean to sound impatient or anything but it's been nearly a month since my last post and I really want to continue working on my game project. Does anyone have a solution that could help me with my issue?


Sorry for delay, Try this:

[two open doors]:
    if (squiffy.story.seen("SuitUp"))
        squiffy.story.go("Training");
{if seen SuitUp:Drake leaves through the two open doors, exiting the van and entering into the bright, yellow light from the outside world.}{else: <p style = "color:orange";><b>Drake:</b> I should get my suit on before leaving the van.}

Thank you so much! I did modify the script slightly by adding a timeout script to the squiffy.story.go("Training"); part because it had showed the "Training" text before the "if seen SuitUp" text but this really helped either way. Thanks again.


Log in to post a reply.

Support

Forums