objectproblem

robertwriter
23 Apr 2011, 07:09
Having a problem with objects. When the item is taken it still allows the player to take it again. I forget how to solve this. It doesn't add another to inventory but still runs the other processes as if he took it again.

Alex
23 Apr 2011, 16:01
Are you running a script when the player takes the object?

If so, put the logic that runs when the player types "take object" into a conditional "if" script. If the player has the object, then print "You already have that", else run your existing custom object take logic.

robertwriter
23 Apr 2011, 21:35
Thank you. I had 5 things happening in that script and i didnt think about being able to put all that stuff into the else on conditional.