The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
how do I use global variables concept? [Solved]
jssjr90 Offline
Member

Posts: 169
Threads: 39
Joined: Jun 2011
Reputation: 0
#1
Question  how do I use global variables concept? [Solved]

Im realy stuck in this concept of Global Variables. This is what I want to get done in my map, I know how to do the functions and stuff, its just I need to let the last function only happen if the player did this function and this one, ect. in a global stance, becouse the functions will happen though multiple maps. Heres the lay out of the draft of tasks. So in essence, only activate the last function IF the player did all the other functions. And the tasks are though out multiple levels.


1.Talk to "Martin Smith" - Henry's freind over the phone about his loss and other things.
2.Get the "letter" and combine it with the "pen father" = singed letter
2a Get "singed letter" and combine it with envelope = envelope with the bill.

3.Mail the letter in the mail box in the front yard.
4.You observe other places around the house. Such as the pile of wood that is blocking a path to a secret crypt, and the basement door that is locked from the inside that is on the side of the house.
5.You observe the fireplace that you feel a faint draft comming from down below.
6.Go upstairs to oberve a wall that has a strange feel to it. (Antic room is sealed off with bricks.)
7.With in upstairs, oberve the ceiling, the atic door is ontop of the ceiling. ceild off as well.
8.Read Johnathen's Note
9.Go to the shed, but its locked. (the shed has rope to use to get in the attic.)
10.The shed key is hidden in between the vases by the stair case.
11.You can only get the key by opening the curtens to see the key.
12.Go back to the shed to get the rope.
13.Apply the rope to get into the atic's window.
14.Read John Marley's direy about his stay in the manor.
15.There is a cabonet in the attic, behind that cabonet is a secret room.
16.You observe a loose floor boared.
17.You will also find one small dose of oil for the lantern.
18.You find a small box that you will put on your desk in your room. The box is locked.
19.Go back down stairs 1F to talk to "Martin Smith" about your findings of the atic and the direy you found.
20.You find your self tired from the day and can go to bed. [IF the player did everything in the list, then activate this function of going to bed.]
(This post was last modified: 12-29-2011, 09:48 PM by jssjr90.)
12-04-2011, 10:00 PM
Find


Messages In This Thread
how do I use global variables concept? [Solved] - by jssjr90 - 12-04-2011, 10:00 PM



Users browsing this thread: 1 Guest(s)