Scripting Concept
- Last Known Hero
- Posts: 807
- Joined: Wed Aug 26, 2009 12:28 am
Scripting Concept
So i had an idea for my project of how to implement some things, lemme know if you think it'd be feasible.
Basically I want player owned land inside of unity.
To achieve this I was thinking of placing invisible boxes around the areas I want to be habitable, then naming each invisible box a unique number to correspond with a 'deed' item and with the building on the lot. This item would enable the user's interface to use the 'Place Item' command or be able to enter the building and place items, otherwise if the deed to the appropriate area is not in the user's inventory then it will remain as a blacked out option. Do you think this is a good way around a tonne of coding? Will it work in theory with a 3d game?
Lemme know what you think, I thought it was a nice idea around the seemingly over complicated idea of scripting owned land.
Basically I want player owned land inside of unity.
To achieve this I was thinking of placing invisible boxes around the areas I want to be habitable, then naming each invisible box a unique number to correspond with a 'deed' item and with the building on the lot. This item would enable the user's interface to use the 'Place Item' command or be able to enter the building and place items, otherwise if the deed to the appropriate area is not in the user's inventory then it will remain as a blacked out option. Do you think this is a good way around a tonne of coding? Will it work in theory with a 3d game?
Lemme know what you think, I thought it was a nice idea around the seemingly over complicated idea of scripting owned land.

Power3DArt
-Current Project: Fault [Pre-Alpha]
- hallsofvallhalla
- Site Admin
- Posts: 12026
- Joined: Wed Apr 22, 2009 11:29 pm
Re: Scripting Concept
yep it is feasible. Is this web?
I would make each house or land a separate map that instances. All of the data inside that instance is based off a character ID so the game populates the data based on the field where player = player.
I would make each house or land a separate map that instances. All of the data inside that instance is based off a character ID so the game populates the data based on the field where player = player.
- Last Known Hero
- Posts: 807
- Joined: Wed Aug 26, 2009 12:28 am
Re: Scripting Concept
Cool. I'm hoping to make it standalone rather than web deployment.
It's an open map so I don't think I can make them separate instances other than when entering the building, I'm making the interior of the buildings separate instances.
Also its going to be 3D, I figure you assumed that since its me
It's an open map so I don't think I can make them separate instances other than when entering the building, I'm making the interior of the buildings separate instances.
Also its going to be 3D, I figure you assumed that since its me


Power3DArt
-Current Project: Fault [Pre-Alpha]
- Last Known Hero
- Posts: 807
- Joined: Wed Aug 26, 2009 12:28 am
Re: Scripting Concept
Update*
I have been doing some digging into this theory and I'm getting happy results so far.
I'm no coder so this is preliminary research.
My information has set me onto the path of creating my box collider and using it as a trigger to enable the function of the 'Place Item' command, I know ill have to link it between the two and that itll be a handful to code but I'm happy to know that there IS a solution, just gotta think outside the box!
There is also a Collider.bounds command that might be useful
I have been doing some digging into this theory and I'm getting happy results so far.
I'm no coder so this is preliminary research.
My information has set me onto the path of creating my box collider and using it as a trigger to enable the function of the 'Place Item' command, I know ill have to link it between the two and that itll be a handful to code but I'm happy to know that there IS a solution, just gotta think outside the box!
There is also a Collider.bounds command that might be useful

Power3DArt
-Current Project: Fault [Pre-Alpha]
- hallsofvallhalla
- Site Admin
- Posts: 12026
- Joined: Wed Apr 22, 2009 11:29 pm
Re: Scripting Concept
there is also a mouse click function where once you click on the box the script runs. Questions is, is this going to be a MMO? Where are you going to store the data?
- Last Known Hero
- Posts: 807
- Joined: Wed Aug 26, 2009 12:28 am
Re: Scripting Concept
The whole concept of the game is based on it being online. Where do you think the data should be stored?
For development purposes now, it is going to start as a single player tech demo until I can prove to myself that it is ready for online play, then I can invest in servers and such if I get a nice following.


Power3DArt
-Current Project: Fault [Pre-Alpha]
- hallsofvallhalla
- Site Admin
- Posts: 12026
- Joined: Wed Apr 22, 2009 11:29 pm
Re: Scripting Concept
Well unity doesn't have a usable network built in. Especially for a MMO. You will have to use a third party tool like photon or smartfox.
- Last Known Hero
- Posts: 807
- Joined: Wed Aug 26, 2009 12:28 am
Re: Scripting Concept
Yeah I was aware that I'd have to get one, but before I invest in the price I'd rather get a lot of the game finished so I can justify spending it. I'm tight with my money.
I'm thinking for the time being with the alpha tech demo phase its just going to be stored inside the user's computer, its single player during this time anyways so cheating wont really do anything.. no?
I'm thinking for the time being with the alpha tech demo phase its just going to be stored inside the user's computer, its single player during this time anyways so cheating wont really do anything.. no?

Power3DArt
-Current Project: Fault [Pre-Alpha]
-
- Posts: 1
- Joined: Tue Jan 03, 2012 4:36 pm
Re: Scripting Concept
By the way if you didn't know; Smartfox offer 20 players online for free, but I don't know how long 

- SpiritWebb
- Posts: 3107
- Joined: Sun Jul 12, 2009 11:25 pm
Re: Scripting Concept
There are 2 versions of SmartFox. The SmartFoxServer Pro allows 20 free forever. The SmartFoxServer 2 allows 100 free forever...FYI...