Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - vision00

#1
Thanks for the quick reply. DoOnceOnly was what I needed. It was as simple as this:

if (Game.DoOnceOnly("player.ChangeRoom")) {
 PlayVideo("Video.mpg", 11,  1);
#2
I want to play a video upon entering a room for the first time, but then not have it play upon returning to the room again. Doing this with the "First Time Enters Room" event does so after the fade in and it doesn't look right. I need it before the fade in, but using "Enters Room Before Fade-In" event looks right but does it everytime.  I've tried my hand at a script under "Enters Room Before Fade-In" that doesn't contain errors, but the video still plays every time.

function room_Load()
{
int intro; {
if (intro < 1)
PlayVideo("Video.mpg", 11,  1);
}
{
intro = 1;
}
}

I would think that setting Intro = 1, that upon returning it wouldn't play the video again. I guess the question is, when I leave the room and come back is intro being reset to 0, and that causes the video to play again? I've also tried the if statement: if (intro == 0) but get the same thing.
SMF spam blocked by CleanTalk