Jump to content

DeadlyAzn

Members
  • Posts

    14
  • Joined

  • Last visited

    Never

Everything posted by DeadlyAzn

  1. Thanks. Do you guys have any way of sending variables from one file to another? Like if I press a button, it opens up a file and also sends a variable along with it that can be used in the file just opened.
  2. Wow lol thanks you guys! Also, you can make a 2d array? With like $world[0][0] as something an then $world[1][0] as something?
  3. Thank you! I will carefully analyze your informatino since I don't understand it completely, and I'll do more tutorials now!
  4. Can you please just help me figure out how to check for which words are entered? D:
  5. I told you, I already read through a lot of tutorials, i was thinking about doing an array to store items for the player.
  6. Alright so right now I'm just thinking about making 100 files, each name 1, 2, 3, 4, 5 etc and so forth, and giving each file code to move to which file depending on which action. This is lots of manual work but only way I can think of doing it. Also, is there some way I can check for what I entered in a text box and then run a code with an if statement depending on what word was inside it?
  7. Well right now I just want to know how to make a database or coordinate system. I have everything else read, I have a method of entering text and going to different files, right now I'm just very confused on how to do location.
  8. Did I do something wrong? Hello? Is this not specific enough?
  9. Oh man. How does that work? I was thinking about giving variables to every room and assigning values to them, and those variables would be items or people or bits of string that contain the story. For example, the "inspect" button would echo out "The surrounds are dim and gloomy." And the "take items" button would be "You take $string and $paper." And the attack button would check if the value of the npc in the area was 1 or 0, 1 for alive and 0 for dead, and would be like if $life = 1 then echo "You attack the dogs, and they run away." If 0, then "You don't see anyone to attack!". And if $life was still 1, then it would echo "You can't move in any direction, you are trapped here!". Also, do you guys have any idea on how you can have the player variable or something contain variables within itself? Like items, etc. Like, maybe contain $string, and the value of $string would be either "working" or "broken". Wow ok, this went really detailed, but its pretty specific, could you respond to these things? Thanks!
  10. I'm confused. How do you do this? huh? mysql? not sure i understand the question How do I make db tables? Or what you mentioned?
  11. Oh my god yes! Do you have any more information on these tables? Thank you!
  12. Very good point. I am truly sorry. I meant, is there any way to create a system of coordinate points or rooms and access them and place things in them?
  13. Bump please, urgent help needed :'(
  14. Is this possible? I have around 2 weeks for a computer science project and I want to do this in PHP. However, I have just started learning PHP, and since I'm so short on time I'm going to see if I can learn how to code this while learning basics of PHP. So basically, can anyone give me a simple and good way of starting this? I have no idea where to begin. I was thinking of doing rooms in a coordinate system with North, South, East, West buttons and a pick up item button and an attack button. So can you guys help? I would also like to know how to make buttons in HTML or anything that goes with Apache 2, I have no idea how that works. Right now I have PHP set up with Apache 2, so I can navigate to the file with the code in the browser and run the code.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.