Project1

标题: 如何定义男女性别啊? [打印本页]

作者: jccg1000466    时间: 2011-3-11 22:48
标题: 如何定义男女性别啊?
本帖最后由 jccg1000466 于 2011-3-11 23:05 编辑

#==============================================================================
# ■ Game_Actor_Properties
#------------------------------------------------------------------------------
# DQ用アクター情報
# Copyright (C) 2005 fukuyama
#==============================================================================

module Game_Actor_Properties
  def setup_all_actor(key,vals)
    $data_actors.each_index do |i|
      if (not $game_actors.nil?) and
         (not vals.nil?)
        $game_actors.properties[key] = vals
      end
    end
  end
  module_function :setup_all_actor

  module Game_Actor_Module
    PROPERTY_JOB = 'job'
    PROPERTY_SEX = 'sex'
    def default_properties
      properties = super
      properties[PROPERTY_JOB] = $data_classes[@class_id].name     
      properties[PROPERTY_SEX] = '???'     
      return properties
    end
  end
end # module Game_Actor_Properties

class Game_Actor
  include Properties_Interface_Module
  include Game_Actor_Properties::Game_Actor_Module
end




这是一份DQ的脚本,应该是显示职业和性别的,???上面的是显示职业的,????号部分应该写啥才能显示出男女性别之分,我不懂脚本,谁能帮下忙啊
dsu_plus_rewardpost_czw
作者: 魔修    时间: 2011-3-12 02:26
男女性别只要是人都能认出来吧。。。职业的默认菜单有显示。
作者: 步兵中尉    时间: 2011-3-12 13:00
建议参考 oz大乱斗 ,里面有这套系统




欢迎光临 Project1 (https://rpg.blue/) Powered by Discuz! X3.1