HELP ME! MODERATE QUEST EXPERIENCE! MOVE OBJECT HELP! [Solved]

Hi

You may be getting a little annoyed with these posts by now LOL!
It's really the only way to get people's attention.

So, um, I'm building a battle royale game called Decimation.

I have four building materials, namely lattice, concrete, iron, and glass.
I added a command with the patternbuild glass wall.

There are over 50 rooms in the game.
There's no way I'm doing a script like this:

if (game.pov.parent = Some Room) {
  Do Something
}
else if (game.pov.parent = Some Other Room) {
  Do this other thing
}

you get the idea.

I tried this:

  msg ("You throw up a glass wall.")
  game.glass = game.glass - 10
  CloneObjectAndMove (GlassWall, this.parent.room)
}
else {
  msg ("You don't have enough materials for that.")
}

It doesn't work. I thought game.parent.room was a real delegate.
Can you tell me how to do this?

Also, I know it says game.glass instead of player.glass. This is because the player can use potions to change into different things.

Thanks.

P.S Whoever helps will get a special benefit when the game comes out sometime next month.


You may be getting a little annoyed with these posts by now LOL!
It's really the only way to get people's attention.

Since you brought it up, it's definitely not the only way to get people's attention. We (nearly) constantly check the forum to see if there are new posts. We are problem-solving junkies. If there's a new post (all-caps or not), we click on it.

I'm not knocking your methods, mind you. I believe we should all post whatever we want, whenever we want, however we like.

So, anyway...

If you just want to clone the GlassWall object and move the new clone to the current room, try:
CloneObjectAndMoveHere (GlassWall)


More cloning tricks:
http://docs.textadventures.co.uk/quest/clones.html


PS

You could also just replace game.parent.room with game.pov.parent.


Thanks so much.

It works

I recently started doing Quest games. I love the forums, so handy.
Thanks for the notification about the whole 'only way to get people's attention' thing.
You were incredibly helpful. It works perfectly.

Type this code when the game comes out:

BuildHelpCode1603

Thanks
Sh4dowGaming1234


we're a small community, but extremely friendly and helpful, though we're busy with real life and/or our own projects/games/etc, so might not be able to respond immediately, and you got to be willing to learn, as its required to do programming and thus game making. we'll be glad to help with learning, but you got to put the work in with our help. if you don't understand something, then ask us to explain it, line by line, part/segment by part/segment, if need be.

"give a man a fish, feed him for a day. teach a man to fish, feed him for life"


Thanks a lot.

I have been getting so much better at quest coding since I found out about the forums.


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

Support

Forums