ID:161080
Jun 21 2008, 11:53 am (Edited on Jun 21 2008, 12:52 pm)
|
|
Hello, I am a novice coder and am having trouble implementing a type of code. What I am trying to do is make it so that the user/player, does not see a verb that an object has unless the object is in a certain state. I have tried using if statements and conditions, but it has not gone well for me. If anyone knows how to do this then I would greatly appreciate your advice. Also, I am looking for a mentor that can aid me with coding. I don't have anything to give to the person that accepts, but appreciation and promise to work hard. My MSN is [email protected]
|
In response to Android Data
|
|
Android Data wrote:
... Gah, I was speaking to Data on msn, I was supposed to answer this post. Android Datas a post stealer! |
In response to Hulio-G
|
|
Thank you very much. I finally got it to work. Thanks once again.
|
Take a chair, for example:
Also note that setting mob.buckled to an object is a good habit in this case. Most newbie programmers set this to a boolean variable (1 or 0) to show whether or not you are buckled into a chair or not, but this isn't good.
Since it's an object, it means that if the chair is somehow deleted, the player that was buckled into the chair will be unbuckled automatically.