Let's say I had buildings on my map, and I wanted to make it so you could walk up to the door, and it would let you 'enter' the building by displaying a different map with different NPC's and all.
I know this sounds like an noobish question, well that's because I am a noob.
Anyways, please give a link or display some kind of code,
Thanks!
ID:155018
![]() Oct 9 2011, 8:09 am
|
|
Uhhh... what? lol
I'm really new to this Byond stuff and the entire code, so this really confuses me. |
I've tried to find some tutorials, but most tutorials I find are really outdated.
And I'm kind of building the game as I go along, and learning some things. |
You could post a link to a tutorial for him at the very least... You don't have to harass newbs, this is a How-To forum.
Anyways, ZBT is the best DM tutorial out there. Read it through and you shouldn't have any trouble with transitions. http://www.byond.com/members/ DreamMakers?command=view_post&post=36143 |
Robertbanks2 wasn't harassing him/her. He was simply stating a fact and telling him a very useful hint/tip.
|
One of the first things on the Developers page is a list of tutorials and resources for learning, they aren't hard to find.
|
obj |
Dr.DraX wrote:
obj That would have to be a turf. Entering a obj does not involve being in the same location on it, unlike turfs. You also wouldn't use usr. turf |
Thanks a bit, this kind of helps. But, as I stated in my first post, I want to use the door as an obj, not a mob
Also, I've read through the ZBT tutorial. He doesn't really state anything about transitioning maps and the such. I've also used most of the code within the Testworld code in my game that I am currently building. |
You can do that by creating an action procedure which is called everytime you enter a new turf.
The turf then checks all it's contents, and if one of the contents has a functioning action procedure, then you can run it as you wish: atom I know it can be complicated at first, I remember years ago trying to grasp this myself. Just keep programming and enjoying yourself, it will come. Just stick with it. :) |
Speedro wrote:
You can do that by creating an action procedure which is called everytime you enter a new turf. atom I know it can be complicated at first, I remember years ago trying to grasp this myself. Just keep programming and enjoying yourself, it will come. Just stick with it. :) Thank you so much! |
You also might need to use Bump() proc if you want them to enter the building by bumping on the door.
On the other hand, if you want to create buildings during runtime and their interiors as well, then you can use this.
Regards,