eidolon 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (103) hide show
  1. checksums.yaml +15 -0
  2. data/LICENSE +19 -0
  3. data/README.md +76 -0
  4. data/lib/eidolon.rb +129 -0
  5. data/lib/eidolon/rgss.rb +2 -0
  6. data/lib/eidolon/rgss/loader.rb +24 -0
  7. data/lib/eidolon/rgss/rpg.rb +18 -0
  8. data/lib/eidolon/rgss/rpg/actor.rb +31 -0
  9. data/lib/eidolon/rgss/rpg/armor.rb +25 -0
  10. data/lib/eidolon/rgss/rpg/class.rb +17 -0
  11. data/lib/eidolon/rgss/rpg/class/learning.rb +15 -0
  12. data/lib/eidolon/rgss/rpg/enemy.rb +34 -0
  13. data/lib/eidolon/rgss/rpg/enemy/action.rb +22 -0
  14. data/lib/eidolon/rgss/rpg/item.rb +34 -0
  15. data/lib/eidolon/rgss/rpg/skill.rb +34 -0
  16. data/lib/eidolon/rgss/rpg/state.rb +37 -0
  17. data/lib/eidolon/rgss/rpg/system.rb +44 -0
  18. data/lib/eidolon/rgss/rpg/system/test_battler.rb +20 -0
  19. data/lib/eidolon/rgss/rpg/system/words.rb +33 -0
  20. data/lib/eidolon/rgss/rpg/tileset.rb +26 -0
  21. data/lib/eidolon/rgss/rpg/weapon.rb +26 -0
  22. data/lib/eidolon/rgss2.rb +2 -0
  23. data/lib/eidolon/rgss2/loader.rb +39 -0
  24. data/lib/eidolon/rgss2/rpg.rb +26 -0
  25. data/lib/eidolon/rgss2/rpg/actor.rb +31 -0
  26. data/lib/eidolon/rgss2/rpg/area.rb +15 -0
  27. data/lib/eidolon/rgss2/rpg/armor.rb +24 -0
  28. data/lib/eidolon/rgss2/rpg/base_item.rb +14 -0
  29. data/lib/eidolon/rgss2/rpg/bgm.rb +11 -0
  30. data/lib/eidolon/rgss2/rpg/bgs.rb +11 -0
  31. data/lib/eidolon/rgss2/rpg/class.rb +19 -0
  32. data/lib/eidolon/rgss2/rpg/class/learning.rb +15 -0
  33. data/lib/eidolon/rgss2/rpg/enemy.rb +31 -0
  34. data/lib/eidolon/rgss2/rpg/enemy/action.rb +20 -0
  35. data/lib/eidolon/rgss2/rpg/enemy/drop_item.rb +18 -0
  36. data/lib/eidolon/rgss2/rpg/item.rb +19 -0
  37. data/lib/eidolon/rgss2/rpg/me.rb +11 -0
  38. data/lib/eidolon/rgss2/rpg/se.rb +11 -0
  39. data/lib/eidolon/rgss2/rpg/skill.rb +15 -0
  40. data/lib/eidolon/rgss2/rpg/state.rb +33 -0
  41. data/lib/eidolon/rgss2/rpg/system.rb +33 -0
  42. data/lib/eidolon/rgss2/rpg/system/terms.rb +46 -0
  43. data/lib/eidolon/rgss2/rpg/system/test_battler.rb +20 -0
  44. data/lib/eidolon/rgss2/rpg/system/vehicle.rb +19 -0
  45. data/lib/eidolon/rgss2/rpg/troop.rb +13 -0
  46. data/lib/eidolon/rgss2/rpg/usable_item.rb +27 -0
  47. data/lib/eidolon/rgss2/rpg/weapon.rb +24 -0
  48. data/lib/eidolon/rgss3.rb +2 -0
  49. data/lib/eidolon/rgss3/loader.rb +44 -0
  50. data/lib/eidolon/rgss3/rpg.rb +31 -0
  51. data/lib/eidolon/rgss3/rpg/actor.rb +20 -0
  52. data/lib/eidolon/rgss3/rpg/armor.rb +12 -0
  53. data/lib/eidolon/rgss3/rpg/base_item.rb +18 -0
  54. data/lib/eidolon/rgss3/rpg/base_item/feature.rb +16 -0
  55. data/lib/eidolon/rgss3/rpg/bgm.rb +12 -0
  56. data/lib/eidolon/rgss3/rpg/bgs.rb +12 -0
  57. data/lib/eidolon/rgss3/rpg/class.rb +14 -0
  58. data/lib/eidolon/rgss3/rpg/class/learning.rb +16 -0
  59. data/lib/eidolon/rgss3/rpg/enemy.rb +18 -0
  60. data/lib/eidolon/rgss3/rpg/enemy/action.rb +18 -0
  61. data/lib/eidolon/rgss3/rpg/enemy/drop_item.rb +16 -0
  62. data/lib/eidolon/rgss3/rpg/equip_item.rb +14 -0
  63. data/lib/eidolon/rgss3/rpg/item.rb +14 -0
  64. data/lib/eidolon/rgss3/rpg/map/encounter.rb +16 -0
  65. data/lib/eidolon/rgss3/rpg/me.rb +11 -0
  66. data/lib/eidolon/rgss3/rpg/se.rb +11 -0
  67. data/lib/eidolon/rgss3/rpg/skill.rb +18 -0
  68. data/lib/eidolon/rgss3/rpg/state.rb +26 -0
  69. data/lib/eidolon/rgss3/rpg/system.rb +50 -0
  70. data/lib/eidolon/rgss3/rpg/system/terms.rb +17 -0
  71. data/lib/eidolon/rgss3/rpg/system/test_battler.rb +16 -0
  72. data/lib/eidolon/rgss3/rpg/system/vehicle.rb +19 -0
  73. data/lib/eidolon/rgss3/rpg/tileset.rb +15 -0
  74. data/lib/eidolon/rgss3/rpg/usable_item.rb +21 -0
  75. data/lib/eidolon/rgss3/rpg/usable_item/damage.rb +18 -0
  76. data/lib/eidolon/rgss3/rpg/usable_item/effect.rb +17 -0
  77. data/lib/eidolon/rgss3/rpg/weapon.rb +13 -0
  78. data/lib/eidolon/rgssx.rb +4 -0
  79. data/lib/eidolon/rgssx/color.rb +27 -0
  80. data/lib/eidolon/rgssx/loader.rb +27 -0
  81. data/lib/eidolon/rgssx/rpg.rb +36 -0
  82. data/lib/eidolon/rgssx/rpg/animation.rb +21 -0
  83. data/lib/eidolon/rgssx/rpg/animation/frame.rb +15 -0
  84. data/lib/eidolon/rgssx/rpg/animation/timing.rb +19 -0
  85. data/lib/eidolon/rgssx/rpg/audio_file.rb +13 -0
  86. data/lib/eidolon/rgssx/rpg/common_event.rb +14 -0
  87. data/lib/eidolon/rgssx/rpg/event.rb +14 -0
  88. data/lib/eidolon/rgssx/rpg/event/page.rb +27 -0
  89. data/lib/eidolon/rgssx/rpg/event/page/condition.rb +29 -0
  90. data/lib/eidolon/rgssx/rpg/event/page/graphic.rb +24 -0
  91. data/lib/eidolon/rgssx/rpg/event_command.rb +12 -0
  92. data/lib/eidolon/rgssx/rpg/map.rb +33 -0
  93. data/lib/eidolon/rgssx/rpg/map_info.rb +15 -0
  94. data/lib/eidolon/rgssx/rpg/move_command.rb +11 -0
  95. data/lib/eidolon/rgssx/rpg/move_route.rb +13 -0
  96. data/lib/eidolon/rgssx/rpg/troop.rb +13 -0
  97. data/lib/eidolon/rgssx/rpg/troop/member.rb +18 -0
  98. data/lib/eidolon/rgssx/rpg/troop/page.rb +16 -0
  99. data/lib/eidolon/rgssx/rpg/troop/page/condition.rb +28 -0
  100. data/lib/eidolon/rgssx/table.rb +24 -0
  101. data/lib/eidolon/rgssx/tone.rb +27 -0
  102. data/lib/eidolon/version.rb +10 -0
  103. metadata +189 -0
@@ -0,0 +1,34 @@
1
+ module RPG
2
+ # == RGSS
3
+ # This data structure is specific to RGSS (XP).
4
+ #
5
+ # == Skill
6
+ # Data class for skills.
7
+ class Skill
8
+ attr_accessor :id
9
+ attr_accessor :name
10
+ attr_accessor :icon_name
11
+ attr_accessor :description
12
+ attr_accessor :scope
13
+ attr_accessor :occasion
14
+ attr_accessor :animation1_id
15
+ attr_accessor :animation2_id
16
+ attr_accessor :menu_se
17
+ attr_accessor :common_event_id
18
+ attr_accessor :sp_cost
19
+ attr_accessor :power
20
+ attr_accessor :atk_f
21
+ attr_accessor :eva_f
22
+ attr_accessor :str_f
23
+ attr_accessor :dex_f
24
+ attr_accessor :agi_f
25
+ attr_accessor :int_f
26
+ attr_accessor :hit
27
+ attr_accessor :pdef_f
28
+ attr_accessor :mdef_f
29
+ attr_accessor :variance
30
+ attr_accessor :element_set
31
+ attr_accessor :plus_state_set
32
+ attr_accessor :minus_state_set
33
+ end
34
+ end
@@ -0,0 +1,37 @@
1
+ module RPG
2
+ # == RGSS
3
+ # This data structure is specific to RGSS (XP).
4
+ #
5
+ # == State
6
+ # Data class for states.
7
+ class State
8
+ attr_accessor :id
9
+ attr_accessor :name
10
+ attr_accessor :animation_id
11
+ attr_accessor :restriction
12
+ attr_accessor :nonresistance
13
+ attr_accessor :zero_hp
14
+ attr_accessor :cant_get_exp
15
+ attr_accessor :cant_evade
16
+ attr_accessor :slip_damage
17
+ attr_accessor :rating
18
+ attr_accessor :hit_rate
19
+ attr_accessor :maxhp_rate
20
+ attr_accessor :maxsp_rate
21
+ attr_accessor :str_rate
22
+ attr_accessor :dex_rate
23
+ attr_accessor :agi_rate
24
+ attr_accessor :int_rate
25
+ attr_accessor :atk_rate
26
+ attr_accessor :pdef_rate
27
+ attr_accessor :mdef_rate
28
+ attr_accessor :eva
29
+ attr_accessor :battle_only
30
+ attr_accessor :hold_turn
31
+ attr_accessor :auto_release_prob
32
+ attr_accessor :shock_release_prob
33
+ attr_accessor :guard_element_set
34
+ attr_accessor :plus_state_set
35
+ attr_accessor :minus_state_set
36
+ end
37
+ end
@@ -0,0 +1,44 @@
1
+ module RPG
2
+ # == RGSS
3
+ # This data structure is specific to RGSS (XP).
4
+ #
5
+ # == System
6
+ # Data class for the system (miscellaneous configuration options).
7
+ class System
8
+ attr_accessor :magic_number
9
+ attr_accessor :party_members
10
+ attr_accessor :elements
11
+ attr_accessor :switches
12
+ attr_accessor :variables
13
+ attr_accessor :windowskin_name
14
+ attr_accessor :title_name
15
+ attr_accessor :gameover_name
16
+ attr_accessor :battle_transition
17
+ attr_accessor :title_bgm
18
+ attr_accessor :battle_bgm
19
+ attr_accessor :battle_end_me
20
+ attr_accessor :gameover_me
21
+ attr_accessor :cursor_se
22
+ attr_accessor :decision_se
23
+ attr_accessor :cancel_se
24
+ attr_accessor :buzzer_se
25
+ attr_accessor :equip_se
26
+ attr_accessor :shop_se
27
+ attr_accessor :save_se
28
+ attr_accessor :load_se
29
+ attr_accessor :battle_start_se
30
+ attr_accessor :escape_se
31
+ attr_accessor :actor_collapse_se
32
+ attr_accessor :enemy_collapse_se
33
+ attr_accessor :words
34
+ attr_accessor :test_battlers
35
+ attr_accessor :test_troop_id
36
+ attr_accessor :start_map_id
37
+ attr_accessor :start_x
38
+ attr_accessor :start_y
39
+ attr_accessor :battleback_name
40
+ attr_accessor :battler_name
41
+ attr_accessor :battler_hue
42
+ attr_accessor :edit_map_id
43
+ end
44
+ end
@@ -0,0 +1,20 @@
1
+ require 'eidolon/rgss/rpg/system'
2
+
3
+ module RPG
4
+ class System
5
+ # == RGSS
6
+ # This data structure is specific to RGSS (XP).
7
+ #
8
+ # == TestBattler
9
+ # Data class for the battlers used in battle tests.
10
+ class TestBattler
11
+ attr_accessor :actor_id
12
+ attr_accessor :level
13
+ attr_accessor :weapon_id
14
+ attr_accessor :armor1_id
15
+ attr_accessor :armor2_id
16
+ attr_accessor :armor3_id
17
+ attr_accessor :armor4_id
18
+ end
19
+ end
20
+ end
@@ -0,0 +1,33 @@
1
+ require 'eidolon/rgss/rpg/system'
2
+
3
+ module RPG
4
+ class System
5
+ # == RGSS
6
+ # This data structure is specific to RGSS (XP).
7
+ #
8
+ # == Words
9
+ # Data class for terminology.
10
+ class Words
11
+ attr_accessor :gold
12
+ attr_accessor :hp
13
+ attr_accessor :sp
14
+ attr_accessor :str
15
+ attr_accessor :dex
16
+ attr_accessor :agi
17
+ attr_accessor :int
18
+ attr_accessor :atk
19
+ attr_accessor :pdef
20
+ attr_accessor :mdef
21
+ attr_accessor :weapon
22
+ attr_accessor :armor1
23
+ attr_accessor :armor2
24
+ attr_accessor :armor3
25
+ attr_accessor :armor4
26
+ attr_accessor :attack
27
+ attr_accessor :skill
28
+ attr_accessor :guard
29
+ attr_accessor :item
30
+ attr_accessor :equip
31
+ end
32
+ end
33
+ end
@@ -0,0 +1,26 @@
1
+ module RPG
2
+ # == RGSS
3
+ # This data structure is specific to RGSS (XP).
4
+ #
5
+ # == Tileset
6
+ # Data class for tilesets (as used by maps).
7
+ class Tileset
8
+ attr_accessor :id
9
+ attr_accessor :name
10
+ attr_accessor :tileset_name
11
+ attr_accessor :autotile_names
12
+ attr_accessor :panorama_name
13
+ attr_accessor :panorama_hue
14
+ attr_accessor :fog_name
15
+ attr_accessor :fog_hue
16
+ attr_accessor :fog_opacity
17
+ attr_accessor :fog_blend_type
18
+ attr_accessor :fog_zoom
19
+ attr_accessor :fog_sx
20
+ attr_accessor :fog_sy
21
+ attr_accessor :battleback_name
22
+ attr_accessor :passages
23
+ attr_accessor :priorities
24
+ attr_accessor :terrain_tags
25
+ end
26
+ end
@@ -0,0 +1,26 @@
1
+ module RPG
2
+ # == RGSS
3
+ # This data structure is specific to RGSS (XP).
4
+ #
5
+ # == Weapon
6
+ # Data class for weapons.
7
+ class Weapon
8
+ attr_accessor :id
9
+ attr_accessor :name
10
+ attr_accessor :icon_name
11
+ attr_accessor :description
12
+ attr_accessor :animation1_id
13
+ attr_accessor :animation2_id
14
+ attr_accessor :price
15
+ attr_accessor :atk
16
+ attr_accessor :pdef
17
+ attr_accessor :mdef
18
+ attr_accessor :str_plus
19
+ attr_accessor :dex_plus
20
+ attr_accessor :agi_plus
21
+ attr_accessor :int_plus
22
+ attr_accessor :element_set
23
+ attr_accessor :plus_state_set
24
+ attr_accessor :minus_state_set
25
+ end
26
+ end
@@ -0,0 +1,2 @@
1
+ require 'eidolon/rgssx'
2
+ require 'eidolon/rgss2/rpg'
@@ -0,0 +1,39 @@
1
+ # This file loads all of the internal data structures used by RPG Maker VX.
2
+ # Essentially, requiring this file will build a generic copy of the VX data
3
+ # structures for use in a Ruby installation outside of VX itself.
4
+
5
+ require 'eidolon/rgssx'
6
+
7
+ # Audio data structures.
8
+ load 'eidolon/rgss2/rpg/bgm.rb'
9
+ load 'eidolon/rgss2/rpg/bgs.rb'
10
+ load 'eidolon/rgss2/rpg/me.rb'
11
+ load 'eidolon/rgss2/rpg/se.rb'
12
+
13
+ # Files utilizing RPG::BaseItem.
14
+ load 'eidolon/rgss2/rpg/base_item.rb'
15
+ load 'eidolon/rgss2/rpg/usable_item.rb'
16
+ load 'eidolon/rgss2/rpg/armor.rb'
17
+ load 'eidolon/rgss2/rpg/weapon.rb'
18
+
19
+ # Files utilizing RPG::UsableItem.
20
+ load 'eidolon/rgss2/rpg/item.rb'
21
+ load 'eidolon/rgss2/rpg/skill.rb'
22
+
23
+ # Battler-related data structures.
24
+ load 'eidolon/rgss2/rpg/actor.rb'
25
+ load 'eidolon/rgss2/rpg/class.rb'
26
+ load 'eidolon/rgss2/rpg/class/learning.rb'
27
+ load 'eidolon/rgss2/rpg/enemy.rb'
28
+ load 'eidolon/rgss2/rpg/enemy/action.rb'
29
+ load 'eidolon/rgss2/rpg/enemy/drop_item.rb'
30
+ load 'eidolon/rgss2/rpg/state.rb'
31
+
32
+ # Map-related data structures.
33
+ load 'eidolon/rgss2/rpg/area.rb'
34
+
35
+ # The System data structures.
36
+ load 'eidolon/rgss2/rpg/system.rb'
37
+ load 'eidolon/rgss2/rpg/system/terms.rb'
38
+ load 'eidolon/rgss2/rpg/system/test_battler.rb'
39
+ load 'eidolon/rgss2/rpg/system/vehicle.rb'
@@ -0,0 +1,26 @@
1
+ # Require all of the generic RGSSx data structures.
2
+ require 'eidolon/rgssx/rpg'
3
+
4
+ # Require the VX-specific RGSS2 data structures.
5
+ require 'eidolon/rgss2/rpg/bgm'
6
+ require 'eidolon/rgss2/rpg/bgs'
7
+ require 'eidolon/rgss2/rpg/me'
8
+ require 'eidolon/rgss2/rpg/se'
9
+ require 'eidolon/rgss2/rpg/base_item'
10
+ require 'eidolon/rgss2/rpg/usable_item'
11
+ require 'eidolon/rgss2/rpg/armor'
12
+ require 'eidolon/rgss2/rpg/weapon'
13
+ require 'eidolon/rgss2/rpg/item'
14
+ require 'eidolon/rgss2/rpg/skill'
15
+ require 'eidolon/rgss2/rpg/actor'
16
+ require 'eidolon/rgss2/rpg/class'
17
+ require 'eidolon/rgss2/rpg/class/learning'
18
+ require 'eidolon/rgss2/rpg/enemy'
19
+ require 'eidolon/rgss2/rpg/enemy/action'
20
+ require 'eidolon/rgss2/rpg/enemy/drop_item'
21
+ require 'eidolon/rgss2/rpg/state'
22
+ require 'eidolon/rgss2/rpg/area'
23
+ require 'eidolon/rgss2/rpg/system'
24
+ require 'eidolon/rgss2/rpg/system/terms'
25
+ require 'eidolon/rgss2/rpg/system/test_battler'
26
+ require 'eidolon/rgss2/rpg/system/vehicle'
@@ -0,0 +1,31 @@
1
+ module RPG
2
+ # == RGSS2
3
+ # This data structure is specific to RGSS2 (VX).
4
+ #
5
+ # == Actor
6
+ # Data class for actors.
7
+ class Actor
8
+ attr_accessor :id
9
+ attr_accessor :name
10
+ attr_accessor :class_id
11
+ attr_accessor :initial_level
12
+ attr_accessor :exp_basis
13
+ attr_accessor :exp_inflation
14
+ attr_accessor :character_name
15
+ attr_accessor :character_index
16
+ attr_accessor :face_name
17
+ attr_accessor :face_index
18
+ attr_accessor :parameters
19
+ attr_accessor :weapon_id
20
+ attr_accessor :armor1_id
21
+ attr_accessor :armor2_id
22
+ attr_accessor :armor3_id
23
+ attr_accessor :armor4_id
24
+ attr_accessor :two_swords_style
25
+ attr_accessor :fix_equipment
26
+ attr_accessor :auto_battle
27
+ attr_accessor :super_guard
28
+ attr_accessor :pharmacology
29
+ attr_accessor :critical_bonus
30
+ end
31
+ end
@@ -0,0 +1,15 @@
1
+ module RPG
2
+ # == RGSS2
3
+ # This data structure is specific to RGSS2 (VX).
4
+ #
5
+ # == Area
6
+ # Data class for areas (as used by maps).
7
+ class Area
8
+ attr_accessor :id
9
+ attr_accessor :name
10
+ attr_accessor :map_id
11
+ attr_accessor :rect
12
+ attr_accessor :encounter_list
13
+ attr_accessor :order
14
+ end
15
+ end
@@ -0,0 +1,24 @@
1
+ require 'eidolon/rgss2/rpg/base_item'
2
+
3
+ module RPG
4
+ # == RGSS2
5
+ # This data structure is specific to RGSS2 (VX).
6
+ #
7
+ # == Armor
8
+ # Data class for armor.
9
+ class Armor < BaseItem
10
+ attr_accessor :kind
11
+ attr_accessor :price
12
+ attr_accessor :eva
13
+ attr_accessor :atk
14
+ attr_accessor :def
15
+ attr_accessor :spi
16
+ attr_accessor :agi
17
+ attr_accessor :prevent_critical
18
+ attr_accessor :half_mp_cost
19
+ attr_accessor :double_exp_gain
20
+ attr_accessor :auto_hp_recover
21
+ attr_accessor :element_set
22
+ attr_accessor :state_set
23
+ end
24
+ end
@@ -0,0 +1,14 @@
1
+ module RPG
2
+ # == RGSS2
3
+ # This data structure is specific to RGSS2 (VX).
4
+ #
5
+ # == BaseItem
6
+ # Superclass of Skill, Item, Weapon, and Armor.
7
+ class BaseItem
8
+ attr_accessor :id
9
+ attr_accessor :name
10
+ attr_accessor :icon_index
11
+ attr_accessor :description
12
+ attr_accessor :note
13
+ end
14
+ end
@@ -0,0 +1,11 @@
1
+ require 'eidolon/rgssx/rpg/audio_file'
2
+
3
+ module RPG
4
+ # == RGSS2
5
+ # This data structure is specific to RGSS2 (VX).
6
+ #
7
+ # == BGM
8
+ # Data class for background music.
9
+ class BGM < AudioFile
10
+ end
11
+ end
@@ -0,0 +1,11 @@
1
+ require 'eidolon/rgssx/rpg/audio_file'
2
+
3
+ module RPG
4
+ # == RGSS2
5
+ # This data structure is specific to RGSS2 (VX).
6
+ #
7
+ # == BGS
8
+ # Data class for a background sound.
9
+ class BGS < AudioFile
10
+ end
11
+ end
@@ -0,0 +1,19 @@
1
+ module RPG
2
+ # == RGSS2
3
+ # This data structure is specific to RGSS2 (VX).
4
+ #
5
+ # == Class
6
+ # Data class for a class (as used by actors).
7
+ class Class
8
+ attr_accessor :id
9
+ attr_accessor :name
10
+ attr_accessor :position
11
+ attr_accessor :weapon_set
12
+ attr_accessor :armor_set
13
+ attr_accessor :element_ranks
14
+ attr_accessor :state_ranks
15
+ attr_accessor :learnings
16
+ attr_accessor :skill_name_valid
17
+ attr_accessor :skill_name
18
+ end
19
+ end
@@ -0,0 +1,15 @@
1
+ require 'eidolon/rgss2/rpg/class'
2
+
3
+ module RPG
4
+ class Class
5
+ # == RGSS2
6
+ # This data structure is specific to RGSS2 (VX).
7
+ #
8
+ # == Learning
9
+ # Data class for the learned skills of a class (as used by actors).
10
+ class Learning
11
+ attr_accessor :level
12
+ attr_accessor :skill_id
13
+ end
14
+ end
15
+ end