幻想森林

 找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 1533|回复: 6

[RM2K&2K3] 麻烦大家帮忙解决一下~关于金钱……

[复制链接]

2

主题

11

帖子

123

积分

③业余

积分
123
QQ
发表于 2008-2-5 17:23:11 | 显示全部楼层 |阅读模式
请问如何在人物得到金钱后,游戏会自动在画面中央显示得到的金钱数目?
(不用直接显示文章的那种方法~!)
请多多指教……>///<
回复

使用道具 举报

3

主题

11

帖子

123

积分

③业余

积分
123
发表于 2008-2-5 18:54:56 | 显示全部楼层
我也不知道.........
凑数来问一下各位大大......
我...是.... 电脑小白.........
回复 支持 反对

使用道具 举报

550

主题

9116

帖子

214748万

积分

超级版主

如同神一般的存在,腿神!拖后腿的神~~

Rank: 8Rank: 8

积分
2147483647
发表于 2008-2-5 20:46:01 | 显示全部楼层
好像有一个什么自动提示的脚本把。。。。记不清名字了。。。反正是什么自动提示的
我就是你们的神,庶民们,追随我吧!跟着我一起拖后腿!
回复 支持 反对

使用道具 举报

2

主题

11

帖子

123

积分

③业余

积分
123
QQ
 楼主| 发表于 2008-2-5 20:52:55 | 显示全部楼层
哦,原来是自动提示啊~

那么请问一下那个自动提示的脚本…………………………是什么意思?
请多多指教……>///<
回复 支持 反对

使用道具 举报

330

主题

3719

帖子

5万

积分

⑧专业

霄月破苍穹

积分
58690
QQ
发表于 2008-2-7 13:01:23 | 显示全部楼层
有类似的RGSS脚本..自己找下好了..
噩梦刃化
回复 支持 反对

使用道具 举报

2

主题

11

帖子

123

积分

③业余

积分
123
QQ
 楼主| 发表于 2008-2-7 14:17:44 | 显示全部楼层
哦,还是先学习一下脚本~
请多多指教……>///<
回复 支持 反对

使用道具 举报

2

主题

7

帖子

79

积分

②入门

积分
79
发表于 2008-2-8 17:02:21 | 显示全部楼层
#==============================================================================
# 本脚本来自www.66RPG.com,使用和转载请保留此信息
#==============================================================================

# 注意!!!在对话后得到物品,请在对话后先用事件等待3帧,否则对话框来不及消失。

# 开关定义:

$不显示金钱窗口 = 41

$不显示物品窗口 = 42

$不显示武器窗口 = 43

$不显示防具窗口 = 44

# 以上开关,当打开的时候,获得物品将不会提示,比如默认打开41号开关,获得金钱不再提示

# ————————————————————————————————————

class Interpreter  
  #--------------------------------------------------------------------------
  # ● 增减金钱
  #--------------------------------------------------------------------------
  def command_125
    value = operate_value(@parameters[0], @parameters[1], @parameters[2])
    $game_party.gain_gold(value)
    if $game_switches[$不显示金钱窗口]==false
      carol3_66RPG = Window_Base.new((640-160)/2,128,180,100)
      carol3_66RPG.contents = Bitmap.new(carol3_66RPG.width - 32, carol3_66RPG.height - 32)
      if value &gt;= 0
        carol3_66RPG.contents.draw_text(0,0,240,32,&quot;获得金钱:&quot;)
        #——声效,可以自己改
        Audio.se_play(&quot;Audio/SE/&quot;+&quot;006-System06&quot;,80,100)
      else
        carol3_66RPG.contents.draw_text(0,0,240,32,&quot;失去金钱:&quot;)
        #——声效,可以自己改
        Audio.se_play(&quot;Audio/SE/&quot;+&quot;005-System05&quot;,80,100)
      end   
      carol3_66RPG.contents.draw_text(0,32,240,32,value.abs.to_s)
      carol3_66RPG.contents.draw_text(0,32,140,32, $data_system.words.gold,2)
      carol3_66RPG.opacity = 160
      for i in 0..30
        Graphics.update
      end
      for i in 0..10
        carol3_66RPG.opacity -= 30
        carol3_66RPG.contents_opacity -= 30
        Graphics.update
      end
      carol3_66RPG.dispose
    end
    return true
  end
  #--------------------------------------------------------------------------
  # ● 增减物品
  #--------------------------------------------------------------------------
  def command_126
    value = operate_value(@parameters[1], @parameters[2], @parameters[3])
    $game_party.gain_item(@parameters[0], value)
    if $game_switches[$不显示物品窗口]==false
      carol3_66RPG_item = $data_items[@parameters[0]]
      carol3_66RPG = Window_Base.new((640-300)/2,128,300,100)
      carol3_66RPG.contents = Bitmap.new(carol3_66RPG.width - 32, carol3_66RPG.height - 32)
      if value &gt;= 0
        carol3_66RPG.contents.draw_text(0,0,240,32,&quot;获得物品:&quot;)   
        #——声效,可以自己改
        Audio.se_play(&quot;Audio/SE/&quot;+&quot;006-System06&quot;,80,100)
      else
        carol3_66RPG.contents.draw_text(0,0,240,32,&quot;失去物品:&quot;)   
        #——声效,可以自己改
        Audio.se_play(&quot;Audio/SE/&quot;+&quot;005-System05&quot;,80,100)
      end
      carol3_66RPG_bitmap = RPG::Cache.icon(carol3_66RPG_item.icon_name)
      carol3_66RPG.contents.blt(0, 32, carol3_66RPG_bitmap, Rect.new(0, 0, 24, 24), 255)
      carol3_66RPG.contents.draw_text(0 + 28, 32, 212, 32, carol3_66RPG_item.name, 0)
      carol3_66RPG.contents.draw_text(0, 32, 268, 32, &quot;×&quot;+value.abs.to_s, 2)
      carol3_66RPG.opacity = 160
      for i in 0..30
        Graphics.update
      end
      for i in 0..10
        carol3_66RPG.opacity -= 30
        carol3_66RPG.contents_opacity -= 30
        Graphics.update
      end
      carol3_66RPG.dispose
    end
    return true
  end
  #--------------------------------------------------------------------------
  # ● 增减武器
  #--------------------------------------------------------------------------
  def command_127
    value = operate_value(@parameters[1], @parameters[2], @parameters[3])
    $game_party.gain_weapon(@parameters[0], value)
    if $game_switches[$不显示武器窗口]==false
      carol3_66RPG_item = $data_weapons[@parameters[0]]
      carol3_66RPG = Window_Base.new((640-300)/2,128,300,100)
      carol3_66RPG.contents = Bitmap.new(carol3_66RPG.width - 32, carol3_66RPG.height - 32)
      if value &gt;= 0
        carol3_66RPG.contents.draw_text(0,0,240,32,&quot;获得武器:&quot;)   
        #——声效,可以自己改
        Audio.se_play(&quot;Audio/SE/&quot;+&quot;006-System06&quot;,80,100)
      else
        carol3_66RPG.contents.draw_text(0,0,240,32,&quot;失去武器:&quot;)   
        #——声效,可以自己改
        Audio.se_play(&quot;Audio/SE/&quot;+&quot;005-System05&quot;,80,100)
      end
      carol3_66RPG_bitmap = RPG::Cache.icon(carol3_66RPG_item.icon_name)
      carol3_66RPG.contents.blt(0, 32, carol3_66RPG_bitmap, Rect.new(0, 0, 24, 24), 255)
      carol3_66RPG.contents.draw_text(0 + 28, 32, 212, 32, carol3_66RPG_item.name, 0)
      carol3_66RPG.contents.draw_text(0, 32, 268, 32, &quot;×&quot;+value.abs.to_s, 2)
      carol3_66RPG.opacity = 160
      for i in 0..30
        Graphics.update
      end
      for i in 0..10
        carol3_66RPG.opacity -= 30
        carol3_66RPG.contents_opacity -= 30
        Graphics.update
      end
      carol3_66RPG.dispose
    end
    return true
  end
  #--------------------------------------------------------------------------
  # ● 增减防具
  #--------------------------------------------------------------------------
  def command_128
    value = operate_value(@parameters[1], @parameters[2], @parameters[3])
    $game_party.gain_armor(@parameters[0], value)
    if $game_switches[$不显示防具窗口]==false
      carol3_66RPG_item = $data_armors[@parameters[0]]
      carol3_66RPG = Window_Base.new((640-300)/2,128,300,100)
      carol3_66RPG.contents = Bitmap.new(carol3_66RPG.width - 32, carol3_66RPG.height - 32)
      if value &gt;= 0
        carol3_66RPG.contents.draw_text(0,0,240,32,&quot;获得防具:&quot;)   
        #——声效,可以自己改
        Audio.se_play(&quot;Audio/SE/&quot;+&quot;006-System06&quot;,80,100)
      else
        carol3_66RPG.contents.draw_text(0,0,240,32,&quot;失去防具:&quot;)   
        #——声效,可以自己改
        Audio.se_play(&quot;Audio/SE/&quot;+&quot;005-System05&quot;,80,100)
      end
      carol3_66RPG_bitmap = RPG::Cache.icon(carol3_66RPG_item.icon_name)
      carol3_66RPG.contents.blt(0, 32, carol3_66RPG_bitmap, Rect.new(0, 0, 24, 24), 255)
      carol3_66RPG.contents.draw_text(0 + 28, 32, 212, 32, carol3_66RPG_item.name, 0)
      carol3_66RPG.contents.draw_text(0, 32, 268, 32, &quot;×&quot;+value.abs.to_s, 2)
      carol3_66RPG.opacity = 160
      for i in 0..30
        Graphics.update
      end
      for i in 0..10
        carol3_66RPG.opacity -= 30
        carol3_66RPG.contents_opacity -= 30
        Graphics.update
      end
      carol3_66RPG.dispose
    end
    return true
  end
end



#==============================================================================
# 本脚本来自www.66RPG.com,使用和转载请保留此信息
#==============================================================================


以上是得失物品脚本,得到金钱会自动提示
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|幻想森林

GMT+8, 2024-5-18 14:28 , Processed in 0.022509 second(s), 21 queries .

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

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