What exactly doesn't work?
You can't enter any text into the text field "Milo URL:"?
Or it doesn't import the tease after hitting save?
@PlayfulGuy
is there a specific example why you need the possibity to check "test for the existence" of an preference? What do you mean with "existence"? You define every possible guide preference at the beginning of your script (<pref key="difficulty" ...>). You can't add or delete preferences while running the script in GuideMe. Same goes for user preferences. In result you always know which preferences exist. Or do you meen checking the "value" of an preference? I recommend importing their values at the start of your guide into variables and use these instead for the running time. "Gotta Edge'em All!" by Baron Hardpenis von Steele uses user and guide preferences a lot. Maybe there you can find some answers.
examples:
Code: Select all
var chastity = userSettings.isPref("chastity").toString() if (chastity == "true") {} var rarity = guideSettings.getPrefNumber("rarity");if (rarity < 5) {} var hostess = guideSettings.getPref("hostess").toString();if (hostess == "Angela") {}Hi there
i'm working at the moment on a bigger script for GuideMe. Javascript and variables opens so many new possibilites :) I tested a lot global javascript functions and parameters in my script. My previous test scripts (Hearts Club, Skirmish) are nothing in comparison. I also studied closely "Gotta Edge'em All!" by Baron Hardpenis von Steele (amazing script for guideme!) and got so many new ideas.
Here are the two problems for which i didn't find any solution so far:
(1) Is there any way do import and parse txt or xml-files? Could be great to save lists of "instructions", "models" (for example: Angelica, Tiffany, Michelle) or something similar in separate files.
(2) Is there any way to scan a folder for subfolders, choose randomly one subfolder and return the subfolder path? Same question goes for scanning a folder for files and return a file list. For example you could have own folders for models (Angelica, Tiffany...) and in each subfolders with different picture sets (set1, set2 ...) to select randomly from while playing.
Maybe somebody here can me help with that?





