qq炫舞爱空间爱玩偶堆沙子任务怎么做?

qq炫舞爱空间

frankneit frankneit
回答
  • Ginger Ginger

    har-得失物品脚本(v1.01a)
    日期:2012/09/23
    作者:harinlen
    等级:普通级
    依赖关系:无
    适用范围:rpg maker vx ace
    不兼容脚本:暂无
    声明
    此脚本参考了[ps0]双默认脚本的长度测量函数。脚本使用说明
    此脚本无需额外代码即可使用,使用**调用增减金钱、增减武器、增减防具和增减物品的
    时候会显示一个对话框显示得失物品情况。脚本的启用
    修改对应等号后面对应的数值为对应的开关序号,在**中直接对开关进行判定即可:
    window_tips_gold=10#金钱窗口提示的开关
    window_tips_item=11#物品窗口提示的开关
    window_tips_weapon=12#武器窗口提示的开关
    window_tips_armor=13#防具窗口提示的开关
    脚本的自定义
    请修改下方的音效设定部分,将对应的音效更改成自己想要的音效即可。音效名的获取请使用媒体库进行查看。只能使用se中的音效。提示开关定义
    用于定义是否显示window
    window_tips_gold=10
    window_tips_item=11
    window_tips_weapon=12
    window_tips_armor=13
    音效设定
    设定对应的音效播放效果
    se_gold_gain="shop"#获得金钱声效
    se_gold_loss="blow2"#失去金钱声效
    se_item_gain="item1"#获得物品声效
    se_item_loss="blow2"#失去物品声效
    se_weapon_gain="item1"#获得武器声效
    se_weapon_loss="blow2"#失去武器声效
    se_armor_gain="item1"#获得防具声效
    se_armor_loss="blow2"#失去防具声效
    window_tips
    显示增减物品、金钱和装备的窗口
    class window_tips
    初始化对象
    def initialize(x=170,y=128,width=300,height=96)
    super
    end
    增强绘制物品名称
    def adv_draw_item_name(item,x,y)
    return unless item
    draw_icon(item.icon_index,x,y,true)
    change_color(normal_color,true)
    draw_text(x+24,y,width,line_height,item.name)
    end
    end
    class game_interpreter
    增减金钱
    def command_125
    value=operate_value(@params[0],@params[1],@params[2])
    game_party.gain_gold(value)
    if$game_switches[$window_tips_gold]=true
    show_tips_window(0,value)
    end
    return true
    end
    增减物品
    def command_126
    value=operate_value(@params[1],@params[2],@params[3])
    game_party.gain_item($data_items[@params[0]],value)
    if$game_switches[$window_tips_item]=true
    show_tips_window(1,value)
    end
    game_map.need_refresh=true
    return true
    end
    增减武器
    def command_127
    value=operate_value(@params[1],@params[2],@params[3])
    game_party.gain_item($data_weapons[@params[0]],value,@params[4])
    if$game_switches[$window_tips_weapon]=true
    show_tips_window(2,value)
    end
    return true
    end
    增减防具
    def command_128
    value=operate_value(@params[1],@params[2],@params[3])
    game_party.gain_item($data_armors[@params[0]],value,@params[4])
    if$game_switches[$window_tips_armor]=true
    end
    return true
    end
    显示增减提示窗口
    def show_tips_window(type,value)
    case type
    when 0
    item_type=vocab:currency_unit
    if value>=0
    audio.se_play("audio/se/"+$se_gold_gain,100,100)
    else
    audio.se_play("audio/se/"+"item1",100,100)
    end
    when 1
    item_type=vocab:item
    processed_items=$data_items[@params[0]]
    if value>=0
    audio.se_play("audio/se/"+$se_item_gain,100,100)
    else
    audio.se_play("audio/se/"+$se_item_loss,100,100)
    end
    when 2
    item_type=vocab:weapon
    processed_items=$data_weapons[@params[0]]
    if value>=0
    audio.se_play("audio/se/"+$se_weapon_gain,100,100)
    else
    audio.se_play("audio/se/"+$se_weapon_loss,100,100)
    end
    when 3
    item_type=vocab:armor
    processed_items=$data_armors[@params[0]]
    if value>=0
    audio.se_play("audio/se/"+$se_armor_gain,100,100)
    else
    audio.se_play("audio/se/"+$se_armor_loss,100,100)
    end
    end
    if value>=0
    tips_processed_text="获得
    else
    tips_processed_text="失去
    end
    if type!0
    text_value="×"+value.abs.to_s
    bitmap=bitmap.new(100,100)...

类似问答
精品推荐

友情链接

友链互换QQ:

谷财 备案编号:蜀ICP备11019336号-3商务合作:235-677-2621

Copyright 2009-2020 Chengdu Sanzilewan Technology Co.,Ltd all rights reserve

抵制不良游戏 拒绝盗版游戏 注意自我保护 谨防受骗上当 适度游戏益脑 沉迷游戏伤身 合理安排时间 享受健康生活