RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
Buying a house in the game Script

0 Members and 1 Guest are viewing this topic.

***
Rep: +0/-0Level 89
I want to make it so that in certain towns you can buy houses to live in. I was wondering if anyone could make me a script.

Lol, why?
Just use events, I'm using events to do that on my game Shigo.
Scripts doesn't neccessarly half to solve every problem.
On top of that note, it's not always that good to stuff your game w/ alot of scripts 'cause it makes it'll make it lag.

***
Rep:
Level 90
~
Quote from: ArkBennett
Lol, why?
Just use events, I'm using events to do that on my game Shigo.
Scripts doesn't neccessarly half to solve every problem.
On top of that note, it's not always that good to stuff your game w/ alot of scripts 'cause it makes it'll make it lag.


Nice talking like me you pulled off there.

Anyway...

Ark is right, events will be useful.  Although if you have too many in the map it'll lag it up, but there is a script that lowers event lag!  Fear not!... Well I forget what it is, but what you want to do is easy with events, takes 5 minutes to start it up, an extra for each house.  Probably have hours of creation time on a script... maybe like 20~30.

******
Rep:
Level 91
lol but you guys didn't explain him how to make it..
here is a short example:

using door events do:

if switch(owned) = off then
-message: would you like to buy the house for 5k?
-show choices: yes/no
-if yes
--if money >= 5000 then
---change money: -5000
---switch(owned) = on
--else
---message: bah you don't have enough :(
-if no
--message: maybe later?
else
-teleport (house)
holy shit my sig was big!

Yeah I should've... My bad.
But Blue pretty much has it all.
See? That was so much more simpler than making a script.

**
Rep:
Level 88
but what about making furntiture items to put in and move around house
kinda like in animal crossing

*
Rep:
Level 97
2014 Most Unsung Member2014 Best RPG Maker User - Engine2013 Best RPG Maker User (Scripting)2012 Most Mature Member2012 Favorite Staff Member2012 Best RPG Maker User (Scripting)2012 Best MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Use of Avatar and Signature Space2011 Best RPG Maker User (Scripting)2011 Most Mature Member2011 Favourite Staff Member2011 Best Veteran2010 Most Mature Member2010 Favourite Staff Member
You'd have to create furniture items first, and this might not be most efficient, but my initial thought would be to make a common event for each item, and have the item call its corresponding common event. Example: If you want a stool, then in the item tab on database, have a non-consumable item called "stool" which calls common event 'stool'. Now, make a switch "in house" which is turned on every time you enter house and turned off when you exit, as well make a switch called "stool drop". In the house, create an event called stool. Make it transparent, and check the box that says through. As well, make it's speed "Fastest" and it's Frequency "highest". Now, make a custom Move Route which is Repeat Action Move towards Player. Make a new event page in the same event. Have this one called by the switch: [Stool Drop], and make it's image a stool. Change it's speed to fast and it's frequency to high. Input this:
Code: [Select]
Text: Do you want to push it, pull it, pick it up, or leave it?
Show Choices: Push, Pull, Pick Up, Leave
When Push:
  Set Move Route Player (Ignore if Can't Move)
                 1 Step Forward
  Set Move Route [Stool] (Ignore if Can't Move)
                 Move toward Player
When Pull:
  Set Move Route Player (Ignore If Can't Move)
                 1 Step Back
  Set Move Route [Stool] (Ignore if Can't Move)
                 Move toward Player
When Pick Up:
  Control Switch: [Stool Drop] = OFF
  Change Items: [Stool] + 1
When Leave:
Branch End
Now, go to common events in the database, and define 'stool' to have a process similar to this:
Code: [Select]
Conditional Branch: Switch[in house] = ON
  Set Move Route [Stool]
                  Move Up
  Control Switch [Stool Drop] = ON
  Change Items [Stool], - 1
  Else
  Text: You cannot drop that here
Branch End

I haven't tested it, but it ought to work. Just post if you are having trouble. Note: If the item is not passable (a stool is), you will have to change the When [Push] to: Move Event: [Stool] move away from player, and put it before the Player Move.

pokeball :)OfflineMale
********
Cheese
Rep:
Level 95
?
    
Buying a house in the game Script
« on: January 04, 2006, 06:32:02 PM »

^^^^^^^^^^
January....06....lol
Watch out for: HaloOfTheSun

***
Rep:
Level 87
¥¥Death is Peace, and it is your friend¥¥
Guys, i think i have this home thing settled, ill be making a housing system, where as you could buy a home, then purchase furniture to go along with it. It'll be a good profit maker, sorta like real estate. Every piece of furniture you buy, the home's value will go up. I'll post a tutorial on how to make this housing system, so if you're interested, then let me know.

****
Rep:
Level 88
Back with RMVX!
Near Fantasica's Test Bed has a script in it that allows you to decorate a house. Check Creation Asylum if you want to check it out. It's a little buggy, though.
PROPERTY OF TEABAG!!! ALL HAIL TEABAG!!!

*
A Random Custom Title
Rep:
Level 96
wah
   
Buying a house in the game Script
« on: January 04, 2006, 06:32:02 PM »

^^^^^^^^^^
January....06....lol

To simply say pretty much what Nouman said a while back,

Re: Buying a house in the game Script
« on: January 24, 2007, 12:22:14 AM »

^^^^^^^^^^
January....January....lol

Well, still nice to know.

pokeball sknOfflineMale
*
Rep: +0/-0Level 87
nvm self resolved
« Last Edit: May 31, 2007, 05:23:04 PM by skn »