Another way to move Silver?

Another way to do this?

This is probably a quick fix, but this function won't work, and I will need another way to do it.
This:

if (Contains (Route 23,Silver)) {
  if (game.pov.parent = Route 23) {
    msg ("Silver speaks \"Professor Birch dropped Pokemon at Lake of Rage! This is our chance! Come on Slowpoke, follow me!\"")
    MoveObject (Silver, Lake of Rage)
  }
}

I'm trying to move 'Silver' after entering "Route 23".
I put in the "initialisation script" (The Pixie's newest addition to the online Quest, to provide objects with attributes). It didn't work.


K.V.
if (Silver.parent = Route 23) {

You can try that, but no promises. Didn't test it. (Let me know though. If that doesn't work, we'll MAKE it work!)


K.V.

After entering room

if (Silver.parent = Route 23) {
  msg ("Silver exits!")
  RemoveObject (Silver)
}

You are in a room.
You can go north.

> go north

You are in a Route 23.
You can see a Silver.
You can go south.
Silver exits!


if (game.pov.parent = Route 23) { would be pointless in this example, since I have it on the room enter script.


K.V.

This also works on the room enter script, if you just fancy using Contains:

if (Contains(Route 23, Silver)) {
  msg ("Silver exits!")
  RemoveObject (Silver)
}

Alright, I'll see what works.


I put in the "initialisation script" (The Pixie's newest addition to the online Quest, to provide objects with attributes). It didn't work.

The initialisation script only runs once, when the game starts. I would guess as KV says, you want this in the room enter script so Quest checks where the silver is every time the player goes to that location.


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

Support

Forums