if player has talked to all three crystal gems

if player has talked to all three crystal gems {
  MoveObject (Aventurine, Beach City 9)
}

Something like that.
How do I do this in real code?


I assume you're setting a flag or something when the player talks to each gem?

So in each gem's "speak to" verb (or whatever library you're using for conversation) you would put:

this.talkedto = true

and then you'd have something like:

if (firstgem.talkedto and secondgem.talkedto and thirdgem.talkedto) {

Okay, I put this.talkedto = true In there, so now the code looks like this:

if (game.Holopearldefeat = true) {
  msg ("\"Wow! Steven! You defeated the Holo Pearl! I'm so proud of you, I could just hit you!\"")
  this.talkedto = true
}
else {
  msg ("\"Steven! The sun is amazing today! Care to join us out in the sun?")
}

Now I just need to figure out how to lure the player to Aventurine!
Edit 4: Nevermind, it's not fixed.
Game link here.
http://textadventures.co.uk/games/view/tu-ceu4k5eqd0m0ztu7zya/steven-universe-new-beginnings


This topic is now closed. Topics are closed after 60 days of inactivity.

Support

Forums