Microsoft VS is free atm for individual developers...
https://www.visualstudio.com/vs/
and notepad++ is a great free editor with very useful features (syntax highlighting etc.) and you can add some plugins if needed.
https://notepad-plus-plus.org/
function kreubicLandingDecide()
{
var par = ReadVar("partner");
if (par == 1)
{
GoToPage("KreubicLandingLuna");
}
else
{
GoToPage("intro0");
}
return false;
}
function CheckTin()
{
var tin = ReadVar("tin");
if (tin == 0)
{
GotoPage("date34");
}
else
{
GotoPage("date38");
}
return false;
}
Nope, they are not the same functions. In your code, you write GoToPage(), while it should be GotoPage() - javascript is case sensitive.Super wrote:I've doubled tripled and quadrupled checked and those are the exact same functions with variables and stats replaced.
tlaero wrote:Yeah, no problem at all. You just use the same GameDelim for all of the releases and your saves will automatically transfer from one to the next.
var gameVars = ["events0", "happy", "angry", "name", gInStats, gCssSize];
// Functions for getting, setting, and displaying the player's name.
// In your toptext write this [[GetName()]]
function GetName()
{
var str = "<input type='text' id='name' /><button onclick='SetName()'>Set</button>";
return str;
}
function SetName()
{
var name = document.getElementById("name").value;
if (name != "")
{
SetStorageString("name", name);
// This is the page to jump to when the user clicks the "Set" button
// Change "name1" to the page you want to use.
GotoPage("name1");
}
}
// This function lets you output the name the user selected. Use it like this [[Name()]]
// For instance, you might have text that says:
// "Hello [[Name()]]. It's nice to meet you."
function Name()
{
var name = ReadStorageString("name");
return name;
}
if (typeof (imagePath) != "undefined" && imagePath != "") {
img = document.createElement("img");
img.src = imagePath;
img.style = style;
img.className = areaID + " " + gImageBorder2Class;
img.id = gImageId + globalAreaId;
img.style.opacity = "x";
Return to The workshop of creators
Users browsing this forum: No registered users and 7 guests