Changing POV

TheMangaGod
So I am creating a html game where changing the point of view(changing character's) is extremely common. The problem I am having is that when I try and connect that to certain "ask" topic with an NPC I get an error, the player's POV changes successfully but that big error message is ugly and will obviously not appeal to player's all that much. Am I doing something wrong? If anyone knows please contact me. Maybe I can have you play the part where it happens so you can get another POV in....

jaynabonne
Given that we don't know what you're doing or what "that big error message" is, we can't really do much.

If you could post what you have so we can try it out and see both, then I'm sure we could find you a solution.

TheMangaGod
Here you go, basically to get to the part where the issue is you have to go to the shop, take the torch, then go to the forest, approach the bright light, ask Lilith about submitting, then the issue with the POV will put out a big error code.

jaynabonne
The problem is that your new POV (Demon Tesla) is not in a room anywhere. It's just floating about with no parent, and when Quest tries to deal with that, it gives all sorts of errors about "room" and the like.

Keep in mind that each POV has its own location. If you want to transform the player from one character to another in the same room (e.g. if you had Joe Blow who becomes a werewolf), then do this:

1) Move the new POV character into the current room.
2) Switch the POV to the new character.
3) Move the old POV charecter out of the current room to some other place, perhaps a holding room that the player can't normally get to.

If I've misunderstood what you're doing or if you have any questions, let me know.

TheMangaGod
Holy crap! I can't believe I missed something like that! Thanks! That really helps me! Oh I've also had issue's closing off the exit behind the character so that they can't go back to the village... Do I just make it invisible or lock it?

jaynabonne
You should be able to do it either way. Just keep in mind that when you have an exit, it's actually two different exits, one going each way. You'll need to be dealing with the one leaving the new room and coming back to the old room. :)

In fact, if you don't want them to be able to go back, you can simply delete the exit pointing back to the old room. You'll still have one pointing forward, but not one pointing back. Then you won't need to code anything.

TheMangaGod
Thanks for the help, I think I've got it down now! I shouldn't need anymore advice but is it alright if I ask for your help again if I need to? From what I can tell I should be fine though cause I think I've basically gotten the different tools down but you never know.

jaynabonne
You can ask as many questions as you like. :) That's what we're here for.

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

Support

Forums