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 - artbypostman

#1
So I tried and Im still having problems.  When I enter the room it still wont display the text I want it to. 
I created the Global Var.  Failure as an int and set it to 0

Button Script:
function altercation_OnClick(GUIControl *control, MouseButton button)
{
  gBlackdog.Visible = false;
  Wait (10);
  Failure=1;
  cHawkins.ChangeRoom (6, 1222, 1648); 
}


Then my room script:

function room_AfterFadeIn(){
if (Failure == 1) { 
  Display (" Black Dog runs Captain Billy Bones through with his blade and runs out of the Admiral Benbow off down the road.  Your journey never had a chance to even start.  With the death of your father you end up working the rest of your life at the Admiral Benbow.");
  Failure=0;
}
}

Its not displaying anything.  I even tried to make it a textural overlay but still nothing appears on the screen.
#2
Thanks!  I dont know why I didnt think of that.  I for some reason was thinking I had to use the if to state that if the button was pushed. >.< the global variable makes total sense.  I appreciate it
#3
I am working on a game for my class Art for games.  And this is my first try at scripting and the video tutorials were a GREAT help!  In fact I hope more come along. 
But I have become stuck on execution of one idea.
I tried going through the tutorials and what not but I couldnt find help

So as the game is played you have options to choose through GUI buttons.
Now I have set up a Game over room for the wrong answer. 
I have no problem with the changing of rooms to the game over room.
But I wanted to use a "display" thread stating what happened to get the game over due to your decision.
So I tried using this;

function altercation_OnClick(GUIControl *control, MouseButton button)
{
  gBlackdog.Visible = false;
  Wait (10);
  cHawkins.ChangeRoom (6, 1222, 1648);
  Display (" Black Dog runs Captain Billy Bones through with his blade and runs out of the Admiral Benbow off down the road.  Your journey never had a chance to even start.  With the death of your father you end up working the rest of your life at the Admiral Benbow.");

the problem as you can imagine is the display text happens before the change room.

So I  figured I had to create an If statement inside of the Game Over room for each button that will take you there.
How would I go about scripting the if statement for the click of a gui button so when it changes to the Game Over screen  It displays the text I want?  Because I will be using this screen throughout the whole game I dont want to just use a Display command as you enter the room cause the display will be different depending on which path the player takes to get there.
 
       
SMF spam blocked by CleanTalk