Jump to content
New account registrations are disabed. This website is now an archive. Read more here.
Hamburglerbun

In game town builder like assassins creed

Recommended Posts

I want to make a game where I gather money and resources an give them to a crafter he crafts let's say bricks give them to builder and he makes u a house or castle if u have enough stuff also a script for runescape stat lvl system where u attack so many time it lvls up..... Ty and if u help I really appreciate it.

Share this post


Link to post
Share on other sites

If you set specific locations that buildings will always be, as in the player will have no choice on the location of the "armor shop" or no choice on the style the building is made in, then yes you could totally use event scripting.

 

For the Crafter you could easily just open a shop. Bricks being one of the items he sells. 

 

The Builder could then ask what building you want built.

Then  he asks if the player wants to spend X amount of bricks/wood/resource you have.

Conditional branch - yes or no.

if yes, then conditional branch if player has X of items in their inventory.

If they have the items, set switch/variable to 1 

 

then at the building location, you have all the events setup looking like the house, and active on the switch or variable you designated.

door event leads to map interior.

 

If you have a day system or time system you could even have it take X amount of days to build.

Edited by dolarmak

Share this post


Link to post
Share on other sites

there are 2 methods you can use. If the house tiles you want are in the tile set you are using or not.

if they are in the tile set it's pretty easy. 

You'll want you events to be in the shape of the house (might be easier to make the house with the tile set and set the house events after so you sort of have a template)

so example: Xs are house 0 is the door event 

XXXXX

XXXXX
XX0XX

 

on the X events you have 2 pages. Page 1 is a blank event so the player can't interact with it.

the page 2 has the event image set to the tile you want, with a "fixed direction", "same level as hero" and on switch/variable that activates when the player purchases the house. Once they give the resource you want to the builder it will activate the switch/variable, then the house will appear (if builder is close to the house you may want to transition so it doesn't look like magic just poofed the house into existence.  

 

If the player touches it or presses action on it it won't do anything, unless it's the door. On the door event's page 2 you will need the teleport command and however you want the door to open (there are tutorials for that)

 

 

Method 2 is just you have to cut up the house image into a character sheet, once that is done it's the same except selecting the cut up character set for page 2.

 

Hope that helps. If you're still having trouble i'm sure there is a quick tutorial online for this.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...