Tristus
Full Member
I think I hurt my finger :'(
Posts: 204
|
Post by Tristus on Jan 11, 2005 22:15:57 GMT -8
Someone asked me to make this DS for them, Its so that a share furre can give money to a furre, and take money away from them. These furres would have a floor that shows them how much money they have in their account. For this DS to work with more than one account, you have to change the variable name of the accounts, ex. %account1, %account2, %account 253. Because of how this is set up, you can have only er... 498 accounts, and thats only if you have only accounts as your variables, that is, if you can only have 500 variables in your dream (I cant remember right now x.x sleepy I am) But umm. Heres the DS
New Dragonspeak Script Created by Tristus (0:0) When everything is starting up, (5:300) set variable %account1 to the value 0.
(0:32) When a furre says something with {account one +} in it, (1:11) and the triggering furre has got shared control (or is the dream owner), (5:314) set variable %add the number the triggering furre just said. (5:303) take variable %account1 and add variable %add to it.
(0:32) When a furre says something with {account one -} in it, (1:11) and the triggering furre has got shared control (or is the dream owner), (5:314) set variable %sub to the number the triggering furre just said. (5:305) take variable %account1 and subtract variable %sub from it.
(0:2) When somebody moves into floor type 143, (5:200) emit message {Account 1 is %account1 } to whoever set off the trigger.
If anyone can think of a better way to do this, please tell me. Enjoy.
|
|
|
Post by Deedlit79 on Jan 11, 2005 22:18:05 GMT -8
That's rather interesting! I like it. Might come in handy for those role playing dreams!
|
|
Tristus
Full Member
I think I hurt my finger :'(
Posts: 204
|
Post by Tristus on Jan 11, 2005 22:23:02 GMT -8
You will have to set it each time you upload this dream thought, So Its kinda a one day thing, unless you always have your dream uploaded?
|
|
|
Post by John Moore on Feb 19, 2005 15:34:02 GMT -8
The best way to implement a bank into a dream is to use a bot. That way, it could remember how much money people have and whatnot. The only downside to this is that if the bot isn't on, people wouldn't be able to withdraw/deposit anything.
Currently, I've made a bot that interacts with items in the dream. The only problem is that it seems to have a glitch where it doesn't seem to want to remember how much money people have.
|
|
Tristus
Full Member
I think I hurt my finger :'(
Posts: 204
|
Post by Tristus on Feb 19, 2005 23:50:48 GMT -8
Some people dont/cant use bots, I dont really like them, and someone asked me to make that DS for them. So er, use it if you want, or use a bot, ;D
|
|
Iced
New Member
Posts: 7
|
Post by Iced on Nov 30, 2005 16:30:33 GMT -8
I have another version so that when you drop an item on your bank tile, it adds and you can buy items as well. I also added some explanation to what the lines mean for those who want to use lines like this another time. NOTE: If you are going to use this DS, the numbers in front of the lines that AREN'T in ()'s can be deleted.
---------------------------------------------------------------------- DS
1. (0:0) When everything is starting up, (5:300) set variable %bank1 to the value 0.
2. (0:18) When somebody drops object type #, (1:19) and they (moved from/are standing at) position (#,#), (5:302) take variable %bank1 and add # to it.
3. (0:7) When somebody moves into position (#,#), (5:200) emit message {Your total is.... %bank1} to whoever set off the trigger.
4. (0:31) When a furre says {buytoy}, (1:19) and they (moved from/are standing at) position (#,#), (5:304) take variable %bank1 and subtract # from it.
5. (0:31) When a furre says {buytoy}, (3:7) where the triggering furre is currently at, (5:4) place object type #. ----------------------------------------------------------------------- EXPLANATION
1. - This means that the bank starts out with no money. Zip, natta.
2. - When a furre drops an object, like a pillow or something on your bank tile, the total will go up x amount depending on how much you choose the item to be worth.
3. - When someone moves into a sign, they can find out how much money they have.
4. - When a furre decides to buy something, the total automatically subtracts. The furre can only buy something when they are on their bank tile, so that the money subtracts from their bank and not someone else's.
5. - The item they purchased appears under them.
|
|
|
Post by BlackRain on Dec 2, 2005 7:50:52 GMT -8
Would there be a good modification to this DS so it could fit a farm dream? As I am in desperate need of a bank DS for my farm and I don't really have many items so, it should not be a great deal of ds. ;D Also, I have 15 farms.
|
|
Tristus
Full Member
I think I hurt my finger :'(
Posts: 204
|
Post by Tristus on Dec 2, 2005 19:40:27 GMT -8
Umm.. yes, you could change it so that you dont use items at all. You could make it a positional thing, or maybe an word command.
|
|
|
Post by BlackRain on Dec 3, 2005 8:25:15 GMT -8
I for some reason can not get Iced's version to work very well. The whole bumping into the sign and viewing what your account has and item dissapearing when dropped on a sertian tile works but, the main bank part such as deducting and adding does not work.
I have 37 items to sell and much more to buy and, I can not get anything to work. >_<
|
|