Page 1 of 1

Help! Sandbox coding!!

Posted: June 9th, 2010, 8:52 am
by davidjanet73
May I ask some about coding in sandbox because I doing my own game. Can I have these in my games:
1. When you've picked up a wood or whatever, is it possible to convert it into another things? (Let's say if you've picked up a iron, and you need to have 2 irons to make a sword.) "I'll make a button at the inventory page."
2. And coding for characters or NPC to walk away or disappears.

Could you experts teach me all of the codings about these? Your reply is appreciated.

Re: Help! Sandbox coding!!

Posted: June 9th, 2010, 8:57 am
by arcones
1. Yes it is possible. It would require something similar to this script here: Shop Script

2. NPC' can disappear. However, you wouldn't be able to talk with them again unless you had multiple copies around the map.

Hope that helps!

Arc :geek:

Re: Help! Sandbox coding!!

Posted: June 14th, 2010, 3:50 pm
by chocolatepie33
Walking away... I don't think so. To make them disappear, you set their trigger type to 12. If you had the right coding (I don't), you could make them wait, then disappear. Otherwise, they'd disappear after about 3 seconds.