Home    LittleBigPlanet 2 - 3 - Vita - Karting    LittleBigPlanet 2    [LBP2] Tutorials
#1

How to Create a Custom Money System

Archive: 4 posts


Sometimes we don't wanna use the general level points. It's nice and sometimes beneficial to make your own. Whatever the reason is, there are a couple ways to do this. A method with counters, a method with timers and percentages. The following is a method with selectors. It works pretty well and is fairly easy, rather than having to add and subtract multiple complex calculations with a timer.

http://i7.api.vita.lbp.me/img/ft/1973a500d1bf7d65d54ad449a671c4e3a3da1344.jpg
This picture shows one of the ways using selectors. It uses selectors each for ones, tens, hundreds, thousands etc. Put a 12 port selector on a microchip to start our first unit (the ones unit). We're going to use ports 3-11 for the following. Connect port 3 to a microchip with a battery at 10%, connected to a tag labeled "Ones". Connect port 4 to a microchip with a battery at 20%, connected to a tag labeled "Ones" etc. Do this up to port 11 with 90%. This will be for detecting values. Also connect port 12 to port 2 and port 1 to port 11.

Now put a microchip below and have two OR gates connected to the directional combiner. Connect the directional combiner to the selector's toggle port. You can connect a tag sensor labeled "Ones+" to the OR gate (connected to the positive input of the directional combiner). And a tag sensor labeled "Ones-" to the other OR gate (connected to the negative input of the direction combiner).

http://i1.api.vita.lbp.me/img/ft/b611ce1cf1401f86b74e613425292850a6591ce8.jpg
Now just copy this whole unit according to the amount of money values. One unit will represent Ones, the next will represent Tens, the next will represent Hundreds etc. Connect port 1 of the selector to the next unit's OR gate input, and port 12 of the selector to the other next unit's OR gate input as shown in the picture. So for example, if we have 9 and add 1, it will reset to 0 and add 10. So we would then have 10. Then vise versa for subtracting.

All you have to do now is change the tag sensor names according to the values. So for the second unit (the tens unit), change the sensor name from "Ones" to "Tens" and "Ones+" to "Tens+" and "Ones-" to "Hundreds-". Then do the same for the third unit (the hundreds unit), change the sensor names from "Ones" to "Hundreds" and "Ones+"
To "Hundreds+" etc.

http://i7.api.vita.lbp.me/img/ft/e1769f309ae5efebc16ed0044186cc40f09277f5.jpg
So now if you want to add or subtract an amount of money, connect a percentage to the corresponding tag. For example, if I wanted to add 120, I could just activate a "Hundreds+" tag. This would add the hundred. As for the the 20 we would have to add 10 twice so we'd probably have to use a sequencer to add it twice. You would activate two "tens+" tags (on the sequencer with a space in between). This would add 10 twice. That's how it would work.

http://ia.api.vita.lbp.me/img/ft/10a7967b06b4c42c69cc4f7d0bb5246ee53dc97d.jpg
You can also detect values by using a signal strength tag sensor for the corresponding amount. So if Something required at least 500, you would use a signal strength tag sensor for "Hundreds". Connect that sensor to a positional sequencer and put a battery in the middle. So when it detects a 50% signal for the "Hundreds" tag (which would be 500), it will activate the battery on the positional sequencer. So the battery would be your output for detecting 500.

I hope that all made sense! And I hope it helped. Let me know if you have any questions, thanks.
2014-03-10 21:53:00

Author:
airide101
Posts: 141


You could achieve instantaneous addition and subtraction by assigning a percent to each digit of tags, like 1% for 1$ (or if you want more money, .001% for 1$) and use your selector idea.

To make addition and subtraction with this method, you just take the value you have now (lets say you have $52) and you want to add $21

You just add up the numbers and end up with 73, you then convert your new percent into selector changes, so the tens place switches from 50 to 70 and the ones place from 2 to 3

I will update with pics later when I get on LBP
2014-03-11 08:23:00

Author:
amiel445566
Posts: 664


Right, doing that however I believe you
would have to use a seperate method using timers considering that times can read those specific percentages. It's beneficial and useful, but just would involve a bit more. But yes, that is very true!
2014-03-11 20:01:00

Author:
airide101
Posts: 141


You can recreate the same system almost entirely with a single OR gate by setting it to 'add' and summing up positive and negative analog values. It would require less tags and the calculations would be instantaneous, rather than requiring tags to be sequentially turned on multiple times (like if you wanted to add $20, for example). Overall it uses much less thermo and is very simple to add/subtract money, check if the player has enough money to buy an item and visually display the players current wealth.2014-03-23 06:56:00

Author:
Seku
Posts: 65


LBPCentral Archive Statistics
Posts: 1077139    Threads: 69970    Members: 9661    Archive-Date: 2019-01-19

Datenschutz
Aus dem Archiv wurden alle persönlichen Daten wie Name, Anschrift, Email etc. - aber auch sämtliche Inhalte wie z.B. persönliche Nachrichten - entfernt.
Die Nutzung dieser Webseite erfolgt ohne Speicherung personenbezogener Daten. Es werden keinerlei Cookies, Logs, 3rd-Party-Plugins etc. verwendet.