查看: 1095|回复: 0

[已经过期] xas系统究竟如何增加敌人?

[复制链接]
梦石
0
星屑
50
在线时间
66 小时
注册时间
2015-4-1
回帖
8
发表于 2016-1-1 20:31:31 | 显示全部楼层 |阅读模式

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

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

×
我怎么看,怎么设置事件,还是设置不出敌人,这是XAS系统的BATTLER脚本:
  1. #==============================================================================#
  2. #...........................[BATTLER CONFIGURATION]............................#
  3. #==============================================================================#
  4. # Translated by Calvin624                                                      #
  5. # [url]http://www.xasabs.wordpress.com[/url]                                              #
  6. #==============================================================================#

  7. module XAS_ABS_SETUP

  8. # Damage taken/given popup?.........................................[TRUE/FALSE]
  9.   DAMAGE_POP = true
  10. # Set the maximum amount of damage......................................[DAMAGE]
  11.   DAMAGE_LIMIT = 9999

  12. #==============================================================================#
  13. #..................................[DEFENSE]...................................#
  14. #==============================================================================#
  15.   
  16. # Knockback enemies when using shield?..............................[TRUE/FALSE]
  17.   SHIELD_BLOW =  false
  18. # Sound Effect played when you successfully defend................[SOUND_EFFECT]
  19.   SHIELD_SE = RPG::AudioFile.new("097-Attack09", 80, 150)
  20. # Animation played when you successfully defend......................[ANIMATION]
  21.   SHIELD_ANIMATION = 242
  22. # Message shown when you successfully defend (directly)...................[TEXT]
  23.   SHIELD_TEXT = "Guard"
  24. # Message shown when your defense is broken...............................[TEXT]
  25.   GUARD_BREAK_TEXT = "Guard Break"  
  26. # Sound Effect played when your defense is broken.................[SOUND_EFFECT]
  27.   GUARD_BREAK_SE = RPG::AudioFile.new("158-Skill02", 80, 150)
  28. # Defense system?...................................................[TRUE/FALSE]
  29.   DEFENSE_SYSTEM_ACTIVE = true
  30. # Message shown when you successfully defend (sides)......................[TEXT]
  31.   DEFENSE_TEXT = "Defense"

  32. #==============================================================================#
  33. # Type of Defense system                                                       #
  34. # 0 = Reduces CT as you hold defense button                                    #
  35. # 1 = Reduces CT as you take hits                                              #
  36. # 2 = Normal                                                                   #
  37. #==============================================================================#
  38.   
  39.   DEFENSE_COST_TYPE = 1

  40. # Reduce damage taken from the side when using the shield...............[DAMAGE]
  41.   SIDE_DEFENSE_PERC = 50  
  42. # Reduce damage taken from the back when using the shield...............[DAMAGE]  
  43.   BACK_DEFENSE_PERC = 0  

  44. #==============================================================================#

  45. # Message shown when an enemy flees.......................................[TEXT]
  46.   ESCAPE_TEXT = "Escape"
  47. # Tremor effect when taking/giving damage?..........................[TRUE/FALSE]   
  48.   BATTLER_SHAKE_EFFECT = true

  49. end

  50. #==============================================================================#
  51. #..................................[ENEMIES]...................................#
  52. #==============================================================================#
  53. # FORMAT: A=>B                                                                 #
  54. #                                                                              #
  55. # A = ENEMY ID (as listed in the ENEMIES tab in the DATABASE)                  #
  56. # B = SWITCH ID                                                                #
  57. #==============================================================================#
  58. # For more information visit: [url]http://xasabs.wordpress.com/battler-script/[/url]      #
  59. #==============================================================================#

  60. module XAS_BA_ENEMY

  61.   DEFEAT_SWITCH_IDS = {
  62. }      

  63. # Variable ID used to store an enemy's sensor.........................[VARIABLE]
  64.   DEFAULT_ENEMY_SENSOR_VARIABLE_ID = 10  

  65. #==============================================================================#
  66. #...............................[ENEMY SENSOR].................................#
  67. #==============================================================================#
  68. # FORMAT: A=>B                                                                 #
  69. #                                                                              #
  70. # A = ENEMY ID (as listed in the ENEMIES tab in the DATABASE)                  #
  71. # B = Sensor                                                                   #
  72. #==============================================================================#
  73. # For more information visit: [url]http://xasabs.wordpress.com/the-sensor/[/url]          #
  74. #==============================================================================#

  75.   ENEMY_SENSOR = {
  76.   }     

  77. #==============================================================================#

  78. # Percentage at which your HP is deemed low.............................[DAMAGE]
  79.   LOWHP = 30
  80.   
  81. #==============================================================================#
  82. #..............................[ENEMY DEFENSES]................................#
  83. #==============================================================================#
  84. # FORMAT: A=>B                                                                 #
  85. #                                                                              #
  86. # A = ENEMY ID (as listed in the ENEMIES tab in the DATABASE)                  #
  87. # B = Directional invulnerability:                                             #
  88. # 2 = Frontal Defence                                                          #
  89. # 4 = Left Defence                                                             #
  90. # 6 = Right Defence                                                            #
  91. # 8 = Back Defence                                                             #
  92. #==============================================================================#
  93. # For more information visit: [url]http://xasabs.wordpress.com/battler-script/[/url]      #
  94. #==============================================================================#

  95.   SHILED_DIRECTIONS = {
  96.   }
  97.   
  98. #==============================================================================#
  99. # FORMAT: A=>[B,B,B,B,B...]                                                    #
  100. #                                                                              #
  101. # A = ENEMY ID (as listed in the ENEMIES tab in the DATABASE)                  #
  102. # B = TOOL ID that doesn't effect the enemy                                    #
  103. #==============================================================================#
  104. # For more information visit: [url]http://xasabs.wordpress.com/battler-script/[/url]      #
  105. #==============================================================================#

  106.    SHILED_ACTIONS = {
  107.    }
  108.    
  109. #==============================================================================#
  110. #.............................[COUNTER ATTACKS]................................#
  111. #==============================================================================#
  112. # FORMAT: A=>B                                                                 #
  113. #                                                                              #
  114. # A = ENEMY ID (as listed in the ENEMIES tab in the DATABASE)                  #
  115. # B = TOOL ID                                                                  #
  116. #==============================================================================#
  117. # For more information visit: [url]http://xasabs.wordpress.com/battler-script/[/url]      #
  118. #==============================================================================#

  119.   COUNTER_ACTION = {
  120.   }

  121. # Enemies that counter using the same tool used against them.
  122.   COUNTER_SAME_ACTION = [
  123.   ]
  124. # Message shown when an action is countered...............................[TEXT]
  125.   COUNTER_TEXT = "Counter"
  126. # Tools that cannot be countered.  
  127.   NO_COUNTER_ACTION_SKILL = [
  128.   ]      
  129. # Tools that cannot be replicated by enemies.
  130.   NO_COUNTER_SAME_ACTION_SKILL = [
  131.   ]

  132. #==============================================================================#
  133. #..............................[FINAL ATTACKS].................................#
  134. #==============================================================================#
  135. # FORMAT: A=>B                                                                 #
  136. #                                                                              #
  137. # A = ENEMY ID (as listed in the ENEMIES tab in the DATABASE)                  #
  138. # B = TOOL ID                                                                  #
  139. #==============================================================================#
  140. # For more information visit: [url]http://xasabs.wordpress.com/battler-script/[/url]      #
  141. #==============================================================================#

  142. # Enemies and the tools they activate when they die.
  143.   ENEMY_FINAL_ATTACK = {
  144.   }     
  145.   
  146. # Message shown when an enemy uses a final attack.........................[TEXT]  
  147.   FINAL_ATTACK_TEXT = "Final Attack"

  148. #==============================================================================#
  149. #...........................[ENEMY INVINCIBILITY]..............................#
  150. #==============================================================================#
  151. # FORMAT: A=>B                                                                 #
  152. #                                                                              #
  153. # A = ENEMY ID (as listed in the ENEMIES tab in the DATABASE)                  #
  154. # B = Time (in frames) that the enemy is invincible for after receiving damage #
  155. #==============================================================================#
  156.   
  157.   INVICIBLE_DURATION_ENEMY = {
  158.   }     
  159.   
  160. # Default time that the enemy is invincible for after receiving damage....[TIME]
  161.   DEFAULT_INVICIBLE_DURATION_ENEMY = 45   
  162. # Animation when the enemy is awakened...............................[ANIMATION]  
  163.   PASSIVE_AWAKE_ANIMATION_ID = 98
  164. #==============================================================================#

  165. #==============================================================================#
  166. #................................[BODY SQUARE].................................#
  167. #==============================================================================#
  168. # FORMAT: A=>B                                                                 #
  169. #                                                                              #
  170. # A = ENEMY ID (as listed in the ENEMIES tab in the DATABASE)                  #
  171. # B = Body Square                                                              #
  172. #==============================================================================#
  173. # For more information visit: [url]http://xasabs.wordpress.com/battler-script/[/url]      #
  174. #==============================================================================#
  175.   
  176.   BODY_SQUARE = {
  177.   }
  178.   
  179. #==============================================================================#
  180. #............................[MULTIPLE TREASURES]..............................#
  181. #==============================================================================#
  182. # FORMAT: A=>[B,C,D]                                                           #
  183. #                                                                              #
  184. # A = ENEMY ID (as listed in the ENEMIES tab in the DATABASE)                  #
  185. # B = Type of Treasure:                                                        #
  186. # 0 = Item                                                                     #
  187. # 1 = Weapon                                                                   #
  188. # 2 = Armor                                                                    #
  189. # C = Item ID, Weapon ID or Armor ID                                           #
  190. # D = Probability of dropping that treasure                                    #
  191. #==============================================================================#
  192. # For more information visit: [url]http://xasabs.wordpress.com/items/[/url]               #
  193. #==============================================================================#

  194.   ENEMY_MULTI_TREASURE = {
  195.   }

  196. # Limit the amount of damage you can cause to an enemy
  197. # FORMAT: A=>B                                                                 
  198. # A = ENEMY ID (as listed in the ENEMIES tab in the DATABASE)                  
  199. # B = Maximum damage that can be done in one hit                                                              
  200.   ENEMY_DAMAGE_LIMIT = {
  201.   60=>1   #Object
  202.   }   
  203.   
  204. #==============================================================================#
  205. #.............................[ATTACK_ON SETUP]................................#
  206. #==============================================================================#
  207. # FORMAT: A=>B                                                                 #
  208. #                                                                              #
  209. # A = ENEMY ID (as listed in the ENEMIES tab in the DATABASE)                  #
  210. # B = Damage as a percentage                                                   #
  211. #==============================================================================#

  212. # Enemies that cause damage based on the hero's …

  213. # … current HP
  214.   ATTACK_HP_PERC = {
  215.   }   
  216.   
  217. # … MAX HP
  218.   ATTACK_MAXHP_PERC = {
  219.   }  
  220.   
  221. # … current SP
  222.   ATTACK_SP_PERC = {
  223.   }   
  224.   
  225. # … MAX SP
  226.   ATTACK_MAXSP_PERC = {
  227.   }   

  228. #==============================================================================#
  229. #.............................[SPECIAL ENEMY ATTACKS]..........................#
  230. #==============================================================================#
  231. # FORMAT: A=>B                                                                 #
  232. #                                                                              #
  233. # A = ENEMY ID (as listed in the ENEMIES tab in the DATABASE)                  #
  234. # B = VARIOUS (see below)                                                      #
  235. #==============================================================================#

  236. # B = STATE ID (as listed in the STATES tab in the DATABASE)

  237.   ATTACK_ADD_STATES = {
  238.   }   
  239.   
  240. # B = Amount of tiles an enemy throws you back when they hit you

  241.   ATTACK_BLOW_POWER = {
  242.   }
  243.   
  244. # B = Damage caused when you attack listed enemy with short range tools
  245. # For more information visit: [url]http://xasabs.wordpress.com/battler-script/[/url]
  246.   ENEMY_HIT_DAMAGE_REACTION = {
  247.   }  

  248. # B = State added when you attack listed enemy with short range tools
  249. # For more information visit: [url]http://xasabs.wordpress.com/battler-script/[/url]
  250.   ENEMY_HIT_ADDSTATES_REACTION = {
  251.   }
  252.   
  253. end

  254. #==============================================================================#

  255. module XAS_BA

  256. # Jump when you receive damage?.....................................[TRUE/FALSE]  
  257.   JUMP_HIT_HERO = true
  258. # Initiate gameover when your HP reaches zero?......................[TRUE/FALSE]
  259.   AUTOGAMEOVER = true
  260. # Switch ID to activate gameover........................................[SWITCH]  
  261.   GAMEOVER_SWITCH_ID = 4
  262. # Flash when you receive damage?....................................[TRUE/FALSE]
  263.   BLINK_ON = false
  264. # The amount of time (in frames) you are ...
  265. # ... invincible for after receiving damage........................[TIME_FRAMES]
  266.   INVICIBLE_DURATION_HERO = 40
  267. # ... paralyzed for after receiving damage.........................[TIME_FRAMES]
  268.   KNOCK_BACK_DURATION_HERO = 30  
  269. # Speed at which you and the enemy are knocked back.
  270.   KNOCK_BACK_SPEED = 3  
  271. # Message shown when you level up.........................................[TEXT]
  272.   LEVEL_UP_TEXT = "Level up!"
  273. # Animation played when you level up.................................[ANIMATION]
  274.   LEVEL_ANIMATION_ID = 229
  275. # Sound Effect played when you level up...........................[SOUND_EFFECT]
  276.   LEVEL_UP_SE = RPG::AudioFile.new("Level_UP", 130, 100)
  277. # Recover HP & SP when you level up?................................[TRUE/FALSE]
  278.   LEVELUP_RECOVER = true
  279. # Enable slow motion when you level up?.............................[TRUE/FALSE]
  280.   LEVEL_SLOW_MOTION = false

  281. end

  282. #==============================================================================#
  283. #.............................[DEFEAT ANIMATION]...............................#
  284. #==============================================================================#
  285. # FORMAT: A=>B                                                                 #
  286. #                                                                              #
  287. # A = ENEMY ID (as listed in the ENEMIES tab in the DATABASE)                  #
  288. # B = ANIMATION ID (as listed in the ANIMATIONS tab in the DATABASE)           #
  289. #==============================================================================#

  290. module XAS_BA_ENEMY

  291. # Animation played when an enemy dies................................[ANIMATION]
  292.   DEF_ANI = {
  293.   }  

  294. # Enemies that collapse and zoom vertically when they die.
  295.   COLLAPSE_ZOOM_A = [
  296.   ]  

  297. # Enemies that collapse and zoom horizontally when they die.
  298.   COLLAPSE_ZOOM_B = [

  299.   ]  

  300. # Enemies that collapse and zoom vertically and horizontally when they die.
  301.   COLLAPSE_ZOOM_C = [

  302.   ]

  303. # Enemies that collapse and zoom negatively when they die.
  304.   COLLAPSE_ZOOM_D = [

  305.   ]  

  306. # Enemies that alternate the way they collapse and zoom.
  307.   COLLAPSE_ZOOM_E = [

  308.   ]  

  309. # Enemies jump then collapse?.......................................[TRUE/FALSE]
  310.   COLLAPSE_JUMP = false

  311. # Enable Collapse Slow Motion
  312.   COLLAPSE_SLOW_MOTION = [
  313.   ]

  314. end

  315. #==============================================================================#
  316. #..................................[XAS_VOICE].................................#
  317. #==============================================================================#
  318. # FORMAT: A=>["B","B","B","B"]                                                 #
  319. #                                                                              #
  320. # A = TOOL ID                                                                  #
  321. # B = Sound Effect played when actor uses that tool                            #
  322. #==============================================================================#

  323. module XAS_VOICE

  324.   ACTOR_SKILL_VOICE = [
  325.   ]
  326.   
  327.   ACTOR_SKILL_VOICE[1] = {

  328.   }

  329. # ALICE VOICES
  330.   ACTOR_SKILL_VOICE[2] = {

  331.   }

  332.   ACTOR_SKILL_VOICE[3] = {}
  333.   ACTOR_SKILL_VOICE[4] = {}
  334.   
  335. #==============================================================================#
  336. #............................[ACTOR SOUND EFFECTS].............................#
  337. #==============================================================================#
  338. # FORMAT: A=>["B","B","B","B"]                                                 #
  339. #                                                                              #
  340. # A = ACTOR ID (as listed in the ACTORS tab in the DATABASE)                   #
  341. # B = Sound Effect played when actors …                                        #
  342. #==============================================================================#
  343.   
  344. # … are injured
  345.   ACTOR_DAMAGE = {

  346.   }
  347. # … evade an attack
  348.   ACTOR_MISS = {

  349.   }
  350. # … die
  351.   ACTOR_DEFEAT = {

  352.   }
  353. # … receive critical damage
  354.   ACTOR_CRITICAL = {

  355.   }
  356. # … deal critical damage to an enemy
  357.   ENEMY_CRITICAL = {

  358.   }
  359. # … level up
  360.   ACTOR_LEVEL_UP = {
  361.   #1 =>["V_Level_UP1"]
  362.   }

  363. #==============================================================================#
  364. #............................[ENEMY SOUND EFFECTS].............................#
  365. #==============================================================================#
  366. # FORMAT: A=>["B","B","B","B"]                                                 #
  367. #                                                                              #
  368. # A = ENEMY ID (as listed in the ENEMIES tab in the DATABASE)                  #
  369. # B = Sound Effect played when enemy is injured                                #
  370. #==============================================================================#
  371.   
  372.   ENEMY_DAMAGE = {

  373.   }  

  374. end

  375. #==============================================================================#
  376. #...................................[DETAILS]..................................#
  377. #==============================================================================#

  378. module XAS

  379. # Influence of the CT conditions......................................[CT_OTHER]
  380.   CT_POWER = 3
  381. # Damage HP based on MaxHP for Drain state.....................[DAMAGE_%_MAX_HP]
  382.   DRAIN_RECOVER_PERC = 10
  383. # Recover HP based on MaxHP for Life state....................[RECOVER_%_MAX_HP]
  384.   LIFE_RECOVER_PER = 25
  385. # The amount of time (in seconds) the Death Count lasts for.......[TIME_SECONDS]
  386.   DEATHCOUNT_TIME = 10
  387. # Message shown when you use the Death Count condition....................[TEXT]
  388.   DEATHCOUNT_TEXT_COUNT = "Time"
  389.   DEATHCOUNT_TEXT_DEATH = "Death"
  390. # Message shown when an action is sealed..................................[TEXT]
  391.   SEALED_TEXT = "Sealed"
  392. # Sound Effect played when an action is sealed....................[SOUND_EFFECT]
  393.   SEALED_SE = RPG::AudioFile.new("004-System04", 100, 100)
  394. # Sound Effect played when you have reflected a state.............[SOUND_EFFECT]
  395.   REFLECT_SE = RPG::AudioFile.new("087-Action02", 100, 150)
  396. # Animation played when you use the Reflect condition................[ANIMATION]
  397.   REFLECT_ANIMATION_ID= 179
  398. # Animation played when you use the Life condition...................[ANIMATION]
  399.   RELIFE_ANIMATION_ID = 26

  400. end
复制代码

我看设置敌人应该是写上数据库的敌人编号与开关编号就行了,但是并不是这样的,请求脚本大神们告诉我如何设置敌人……
您需要登录后才可以回帖 登录 | 注册会员

本版积分规则

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

在本版发帖返回顶部