ID:149609
 
How would I goesabout doing that? And another question, if you get the object item and it goes into your inventory, how would I make it so the Item vanishes;(The Item you picked up, not the new/obj/object in usr.contents)then after 10 seconds it respawns?
Look up:

&& for AND
|| for OR

Example:
if(var && var2)
blah


Regards,
BlackDeath
FireEmblem wrote:
How would I goesabout doing that?

BlackDeath had the answer for you. Don't forget the difference between a single-equals "=", which is used to set a variable, and the double-equals "==", which is used to compare two variables/numbers. BYOND will give you an error called "missing condition" if you use "=" instead of "==" in your if statement, and it even confuses me.


And another question, if you get the object item and it goes into your inventory, how would I make it so the Item vanishes;(The Item you picked up, not the new/obj/object in usr.contents)then after 10 seconds it respawns?

Check back in the forums for some respawn code -- most specifically, look for a post about respawning that Shadowdarke made; it contains an excellent example.