Another problem

retroPacifist
07 Nov 2016, 07:42firsttime {
msg ("This is your planet. You look around, taking in the scenery. What things do you see?")
ShowMenu ("What do you see?", Split ("pranks;education;gods;knowledge;music;beats;cows;explosions;music;clocks;cats;wisdom;perfection;hands;spheres;fun;water;murder;mysteries;magnifying Glasses;darkness;books;mouths;moons;jokes;fire;gold;riches;wind;shade;light;rain;heat;clockwork;frost;crypts;helium;tombs;gemstones;pyramids;neon;mounds;mail;quartz;melody;sand;clouds;brains;technology;pulse;haze;little Cubes;Tea;rays;thought;flow;maps;treasure;caves;silence;tents;mirth;wrath;angels;dew;glass;colours;mayhem;trees;dice;souls;olives;Ice;swords;Lawns;crevices;", ";"), false) {
The Medium.first = result
msg ("What else is in your land?")
if (Toothfairysprite UNUSED.aspect = "space") {
The Medium.last = frogs
SetFontSize (36)
SetWebFontName ("Calligraffitti")
PrintCentered ("THE LAND OF " + Ucase (The Medium.first) + " AND FROGS")
SetFontName ("Georgia, serif")
SetFontSize (12)
}
if (Toothfairysprite UNUSED.aspect = Split ("Rogue;Thief;Heir;Maid;Page;Knight;Seer;Mage;Sylph;Witch;Bard;Prince", ";")) {
msg ("What else do you see on this new planet?")
ShowMenu ("What do you see?", Split ("pranks;education;gods;knowledge;music;beats;cows;explosions;music;clocks;cats;wisdom;perfection;hands;spheres;fun;water;murder;mysteries;magnifying Glasses;darkness;books;mouths;moons;jokes;fire;gold;riches;wind;shade;light;rain;heat;clockwork;frost;crypts;helium;tombs;gemstones;pyramids;neon;mounds;mail;quartz;melody;sand;clouds;brains;technology;pulse;haze;little Cubes;Tea;rays;thought;flow;maps;treasure;caves;silence;tents;mirth;wrath;angels;dew;glass;colours;mayhem;trees;dice;souls;olives;Ice;swords;Lawns;crevices;", ";"), false) {
The Medium.last = result
SetWebFontName ("Calligraffitti")
SetFontSize (36)
PrintCentered ("THE LAND OF " + Ucase (The Medium.first) + " AND " + Ucase (The Medium.last))
SetFontName ("Georgia, serif")
SetFontSize (12)
}
}
}
}
otherwise {
SetWebFontName ("Calligraffitti")
SetFontSize (36)
PrintCentered ("THE LAND OF " + Ucase (The Medium.first) + " AND " + Ucase (The Medium.last))
SetFontName ("Georgia, serif")
SetFontSize (12)
}
That's the script for a specific part of my game, and everything runs smoothly until "if (Toothfairysprite UNUSED.aspect = "space") {". It puts out the message "What else in in your land?" but then nothing else happens?
Please help me solve this problem. Thankyou!
The Pixie
07 Nov 2016, 08:27What is supposed to happen? After that line, you have two if
blocks, the first will fire if Toothfairysprite UNUSED.aspect
is "space" and the second will fire if it is equal to a list of professions. I would guess it is neither of those, so nothing happens.
Are you wanting the second block to fire if Toothfairysprite UNUSED.aspect
is any one of the professions?
if (ListContains(Split ("Rogue;Thief;Heir;Maid;Page;Knight;Seer;Mage;Sylph;Witch;Bard;Prince", ";"), Toothfairysprite UNUSED.aspect )) {

retroPacifist
07 Nov 2016, 10:37I've implemented the code you provided above, and tested my game two times:
- With the aspect as Space
- With the aspect as Time
Both times, the same thing happens. It says 'You can go south', then 'What else do you see?' and then nothing happens.

retroPacifist
07 Nov 2016, 11:28I've fixed half of the problem, everything works unless your aspect is Space. in which case it just says 'You can go out'. I'm rather confused. How do I fix the problem?