查看: 1681|回复: 2

[已经过期] 如何定义男女性别啊?

  [复制链接]
梦石
0
星屑
55
在线时间
461 小时
注册时间
2008-2-19
回帖
79
发表于 2011-3-11 22:48:21 | 显示全部楼层 |阅读模式

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

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

×
本帖最后由 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的脚本,应该是显示职业和性别的,???上面的是显示职业的,????号部分应该写啥才能显示出男女性别之分,我不懂脚本,谁能帮下忙啊

点评

你这是什么东西?= =  发表于 2011-3-11 22:50
其实我是个菜鸟......
梦石
0
星屑
50
在线时间
153 小时
注册时间
2011-2-9
回帖
670
发表于 2011-3-12 02:26:57 | 显示全部楼层
男女性别只要是人都能认出来吧。。。职业的默认菜单有显示。
回复

使用道具 举报

梦石
0
星屑
3947
在线时间
1591 小时
注册时间
2006-5-5
回帖
2564
发表于 2011-3-12 13:00:53 | 显示全部楼层
建议参考 oz大乱斗 ,里面有这套系统
步兵中尉
回复

使用道具 举报

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

本版积分规则

Powered by Discuz! X5.0 © 2001-2026 Discuz! Team.

在本版发帖返回顶部