设为首页收藏本站|繁體中文

Project1

 找回密码
 注册会员
搜索
查看: 32746|回复: 95
打印 上一主题 下一主题

[RMVX发布] [vx] 多货币的银行和仓库

 关闭 [复制链接]

Lv2.观梦者

神隐的主犯

梦石
0
星屑
263
在线时间
271 小时
注册时间
2008-2-22
帖子
7691

贵宾

跳转到指定楼层
1
发表于 2008-9-27 21:22:31 | 显示全部楼层 回帖奖励 |倒序浏览 |阅读模式

加入我们,或者,欢迎回来。

您需要 登录 才可以下载或查看,没有帐号?注册会员

x
不知道 VX 有没有银行和仓库系统,其实有没有也无所谓了。

本来这个是为我的游戏专门写的。想了想,还是发布出来供大家使用好了。

PS:发现 BUG ,或者是 有什么更好的建议的话,请跟帖指出。

PS2:版权声明
    本脚本中的 多货币系统 是整合 蓝雪(6RID:sunnyboy8888 or conanfans or 蓝雪)  )的《多货币脚本》, 对于物品说明窗口是搬《LOLI商店》的(不知道作者是谁,请作者看到后PM我)。


PS4:嘛,先放在 提问区 好了,人多一点。过几天我自己再转到技术区好了。{/hx}
先放出截图两张:

1. 银行


2. 仓库



最后是范例:

  http://rpg.blue/upload_program/d/火焰猫燐_[VX]银行和仓库_118934229.rar




脚本使用方法:

   一. 多货币:
      1. 在 93 行里定义货币的类型;
      2. 在 98 行里定义要显示的货币类型;

   二. 银行 和 仓库
      没什么好说的, 只是在脚本开头定义用语,还有一些文件名什么的。

   三. 图片
      图片尽量使用 160 * 304 ,大于也可以,脚本用自动截取这个部分。
      在游戏中替换图片的话,使用:
           $game_system.bank_loli_bitmap = "文件名"

      增加 远景图 :
           $game_system.back_bank_bitmap = "文件名"

   四. 脚本的调用
      1. 可以在事件里写上 :  $scene = Scene_Byz_Bank.new
         也可以在脚本里使用。
      2. 多货币的使用
         除了上面说的意外, 可以在游戏中使用:
           $game_system.currrncysize = 一个数组
         来改变货币的显示种类。
         
         默认的货币操作都是有一个当前活动的货币种类的,要改变的话,就使用:
           $game_system.nowcurrency = 货币种类的序号

         普通的加减金钱都是一样的,要增加其他种类的金钱的话,使用:
           $game_party.gain_gold(n, currency)
              n         数量
              currency  货币种类的序号,不填的话,就是默认对当前活动的货币
         减少的话,就是  $game_party.lose_gold(n, currency) , 参数意义同上
       3. 银行
         使用     $game_party.gain_bank_gold(数组) 来启动银行的利息计算。
         (注意,数组的长度就是 循环计算的次数,数组元素就是每次计算的利率)

     五 数字的移动速度

       脚本 42 行设定 速度,
       注意:这里设定的数值的整数倍最好是 数字图片高度,不然会有莫名其妙的事
情发生

评分

参与人数 1星屑 +2 收起 理由
574656549 + 2 要求更新

查看全部评分


《天空之城 —— 破碎的命运》

Lv2.观梦者

神隐的主犯

梦石
0
星屑
263
在线时间
271 小时
注册时间
2008-2-22
帖子
7691

贵宾

2
 楼主| 发表于 2008-9-27 21:42:21 | 显示全部楼层
本帖最后由 八云紫 于 2009-8-31 21:15 编辑

第一次(20080927) 更新 如下:

    1. 更改在取物品的时候出现显示错误,还有取不出物品的问题;
    2. 美化 银行 的设置输入窗口,使其不再单调。




第二次(20080927) 更新 如下:

   增加 银行 的利息计算。




第三个(20081003) 更新 如下:

   欢迎窗口文字坐标修正
   欢迎窗口文字返回修正
   输入数字时0与9之间的切换不流畅修正(少写一个 “=”,{/gg})
   增加 远景图 显示功能
   数字输入窗口增加 汇率 显示
   修正 银行 - 取消 后,不刷新的BUG
   修正存物品的BUG ,少打了一个 “S”




第四次(20081011) 更新:

   分离仓库脚本,脚本如下:

       http://rpg.blue/UP_PIC/200801/� ... �(仓库部分).txt

   用法和以上关于仓库的用法是一样的。




第五次(20081012)更新:

    更新兑换货币的时候, 一个致命BUG。(变量名打错了。>_<)




第六次(20081024)更新:

    更新取物品的时候,会出现的错误。 (数字写错了。>_<)

N久之后的一个更新,

2009-8-31

忘记把兑换类型数组清空了.
--------------------------------------------

由于 6R FTP 上传貌似很慢的样子, 所以请大小到这里面来下载吧.

http://yoyoku.ys168.com/ ...
八云紫 发表于 2009-8-31 21:13

《天空之城 —— 破碎的命运》
回复 支持 反对

使用道具 举报

Lv2.观梦者

神隐的主犯

梦石
0
星屑
263
在线时间
271 小时
注册时间
2008-2-22
帖子
7691

贵宾

3
 楼主| 发表于 2008-9-28 00:15:24 | 显示全部楼层
所用到的 方法与类:
  1. class Item < UsableItem
  2.    def price
  3.    def price=(value)
  4. class Weapon < BaseItem
  5.    def price
  6.    def price=(value)
  7. class Armor < BaseItem
  8.    def price
  9.    def price=(value)
  10.    def self.gold
  11. class Bitmap
  12.    def drawline(x1, y1, x2, y2, width, color)
  13.    def drawline_x(x1, y1, x2, y2, width, color)
  14.    def drawline_y(x1, y1, x2, y2, width, color)
  15. class Game_System
  16.    def initialize
  17.    def convert_currency(source, dest, value)
  18. class Game_Party < Game_Unit
  19.    def initialize
  20.    def gain_gold(n, currency = -1)
  21.    def lose_gold(n, currency = -1)
  22.    def gold(currency = -1)
  23. class Game_Interpreter
  24.    def choose_currency
  25. class Window_Gold < Window_Base
  26.    def initialize(x, y)
  27.    def refresh
  28.    def draw_currency_item(value, x, y, width, currency)
  29. class Window_Bank_Gold < Window_Selectable
  30.    def initialize
  31.    def refresh
  32.    def draw_currency_item(value, x, y, width, currency)
  33.    def item_rect(index)
  34. class Window_Warehouse < Window_Selectable
  35.    def initialize(kind, bool)
  36.    def kind=(index)
  37.    def check
  38.    def refresh_bool
  39.    def refresh
  40.    def update
  41.    def dispose
  42.    def draw_item(index)
  43. class Window_Byz_Help < Window_Base
  44.    def initialize
  45.    def clear
  46.    def set_item(item)
  47. class Window_Byz_Name < Window_Base
  48.    def initialize
  49.    def set(string)
  50. class Window_Byz_NumberInput < Window_Base
  51.    def initialize(x, y, w, h)
  52.    def digits_max
  53.    def digits_max=(digits_max)
  54.    def number
  55.    def number=(number)
  56.    def index=(number)
  57.    def cursor_right(wrap)
  58.    def cursor_left(wrap)
  59.    def update
  60.    def refresh
  61.    def update_cursor
  62.    def show_sprite(numbers, sprite, x, y)
  63.    def move_sprite(sprite, bool)
  64.    def dew(x)
  65.    def dispose_sprite
  66. class Window_ByzNumber < Window_Base
  67.    def initialize(x, y)
  68.    def set(item, max, price)
  69.    def number
  70.    def price
  71.    def refresh
  72.    def update
  73. class Scene_Byz_Bank < Scene_Base
  74.    def initialize
  75.    def start
  76.    def terminate
  77.    def update
  78.    def create_menu_command
  79.    def create_bank_command
  80.    def create_warehouse_command
  81.    def create_warehouse_type
  82.    def create_name
  83.    def create_currency_command_first
  84.    def create_currency_command_second
  85.    def create_inputnumber_window
  86.    def draw_loli_bitmap
  87.    def show_arrow
  88.    def show_arrow_two
  89.    def show_window(string)
  90.    def update_menu_command
  91.    def update_bank_command
  92.    def update_currency_command_first(type)
  93.    def update_currency_command_second
  94.    def input_number(type)
  95.    def update_bank_gold_window
  96.    def update_warehouse_command
  97.    def update_warehouse_window
  98.    def update_warehouse_input(type)
  99.    def menu_to_bank
  100.    def menu_to_warehouse
  101.    def bank_command_to_currency_command
  102.    def currency_command_to_bank_command
  103.    def inputnumber_to_command(type)
  104.    def input_to_command
  105.    def dispose_loli_bitmap
复制代码

《天空之城 —— 破碎的命运》
回复 支持 反对

使用道具 举报

Lv2.观梦者

神隐的主犯

梦石
0
星屑
263
在线时间
271 小时
注册时间
2008-2-22
帖子
7691

贵宾

4
 楼主| 发表于 2008-9-28 00:54:28 | 显示全部楼层
以下引用塑望于2008-9-27 16:51:32的发言:

总感觉和亿万的某个脚本很像貌似他那个是商店..你这个是仓库


哪里像了??

那个,物品说明窗口是 直接搬一个商店脚本里的, 所以,不知道你说的是不是那个LOLI商店。

《天空之城 —— 破碎的命运》
回复 支持 反对

使用道具 举报

Lv2.观梦者

神隐的主犯

梦石
0
星屑
263
在线时间
271 小时
注册时间
2008-2-22
帖子
7691

贵宾

5
 楼主| 发表于 2008-9-28 00:57:04 | 显示全部楼层
以下引用偶尔杀人越货于2008-9-27 16:55:15的发言:

有bug.在存取東西的時候


请说明清楚嘛,什么BUG?

《天空之城 —— 破碎的命运》
回复 支持 反对

使用道具 举报

Lv2.观梦者

神隐的主犯

梦石
0
星屑
263
在线时间
271 小时
注册时间
2008-2-22
帖子
7691

贵宾

6
 楼主| 发表于 2008-9-28 02:07:31 | 显示全部楼层
以下引用約束于2008-9-27 18:02:16的发言:

站楼,看八云

银行的女孩应该换成八云紫-=

更符合制作者


[本贴由作者于 2008-9-27 18:02:37 最后编辑]


嘛,找不到好图片。

《天空之城 —— 破碎的命运》
回复 支持 反对

使用道具 举报

Lv2.观梦者

神隐的主犯

梦石
0
星屑
263
在线时间
271 小时
注册时间
2008-2-22
帖子
7691

贵宾

7
 楼主| 发表于 2008-9-28 02:29:02 | 显示全部楼层
以下引用ののののの于2008-9-27 18:27:54的发言:

八云,多货币系统是不是用的我的?


哎呀呀,忘记说了,抱歉,马上更新到1楼。

《天空之城 —— 破碎的命运》
回复 支持 反对

使用道具 举报

Lv2.观梦者

神隐的主犯

梦石
0
星屑
263
在线时间
271 小时
注册时间
2008-2-22
帖子
7691

贵宾

8
 楼主| 发表于 2008-9-28 03:17:51 | 显示全部楼层
以下引用drgdrg于2008-9-27 19:17:01的发言:

很华丽的说


八云姐前一阵悬赏的就是这个脚本的问题吧,


支持~~


恩。

不过现在出现了一个很大的 BUG ,建议大家先不要使用。

《天空之城 —— 破碎的命运》
回复 支持 反对

使用道具 举报

Lv2.观梦者

神隐的主犯

梦石
0
星屑
263
在线时间
271 小时
注册时间
2008-2-22
帖子
7691

贵宾

9
 楼主| 发表于 2008-9-28 03:39:38 | 显示全部楼层
以下引用kissye于2008-9-27 19:38:43的发言:

什么bug@ @


取东西的时候,有点问题。

《天空之城 —— 破碎的命运》
回复 支持 反对

使用道具 举报

Lv2.观梦者

神隐的主犯

梦石
0
星屑
263
在线时间
271 小时
注册时间
2008-2-22
帖子
7691

贵宾

10
 楼主| 发表于 2008-9-28 05:25:11 | 显示全部楼层
最新的版本 和 脚本的用法 以更新到顶楼, 还发现什么错误请说明,谢谢。

《天空之城 —— 破碎的命运》
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册会员

本版积分规则

拿上你的纸笔,建造一个属于你的梦想世界,加入吧。
 注册会员
找回密码

站长信箱:[email protected]|手机版|小黑屋|无图版|Project1游戏制作

GMT+8, 2024-5-5 13:30

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表