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,20 @@
1
+ require 'eidolon/rgss3/rpg/base_item'
2
+
3
+ module RPG
4
+ # == RGSS3
5
+ # This data structure is specific to RGSS3 (VX Ace).
6
+ #
7
+ # == Actor
8
+ # The data class for actors.
9
+ class Actor < BaseItem
10
+ attr_accessor :nickname
11
+ attr_accessor :class_id
12
+ attr_accessor :initial_level
13
+ attr_accessor :max_level
14
+ attr_accessor :equips
15
+ attr_accessor :character_name
16
+ attr_accessor :character_index
17
+ attr_accessor :face_name
18
+ attr_accessor :face_index
19
+ end
20
+ end
@@ -0,0 +1,12 @@
1
+ require 'eidolon/rgss3/rpg/equip_item'
2
+
3
+ module RPG
4
+ # == RGSS3
5
+ # This data structure is specific to RGSS3 (VX Ace).
6
+ #
7
+ # == Armor
8
+ # The data class for armors.
9
+ class Armor < EquipItem
10
+ attr_accessor :atype_id
11
+ end
12
+ end
@@ -0,0 +1,18 @@
1
+ module RPG
2
+ # == RGSS3
3
+ # This data structure is specific to RGSS3 (VX Ace).
4
+ #
5
+ # == BaseItem
6
+ # Superclass of actor, class, skill, item, weapon, armor, enemy, and state.
7
+ #
8
+ # Some items are unnecessary depending on the type of data, but they are
9
+ # included for the sake of convenience.
10
+ class BaseItem
11
+ attr_accessor :id
12
+ attr_accessor :name
13
+ attr_accessor :icon_index
14
+ attr_accessor :description
15
+ attr_accessor :features
16
+ attr_accessor :note
17
+ end
18
+ end
@@ -0,0 +1,16 @@
1
+ require 'eidolon/rgss3/rpg/base_item'
2
+
3
+ module RPG
4
+ class BaseItem
5
+ # == RGSS3
6
+ # This data structure is specific to RGSS3 (VX Ace).
7
+ #
8
+ # == Feature
9
+ # The data class for features.
10
+ class Feature
11
+ attr_accessor :code
12
+ attr_accessor :data_id
13
+ attr_accessor :value
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,12 @@
1
+ require 'eidolon/rgssx/rpg/audio_file'
2
+
3
+ module RPG
4
+ # == RGSS3
5
+ # This data structure is specific to RGSS3 (VX Ace).
6
+ #
7
+ # == BGM
8
+ # The data class for background music.
9
+ class BGM < AudioFile
10
+ attr_accessor :pos
11
+ end
12
+ end
@@ -0,0 +1,12 @@
1
+ require 'eidolon/rgssx/rpg/audio_file'
2
+
3
+ module RPG
4
+ # == RGSS3
5
+ # This data structure is specific to RGSS3 (VX Ace).
6
+ #
7
+ # == BGS
8
+ # The data class for background sounds.
9
+ class BGS < AudioFile
10
+ attr_accessor :pos
11
+ end
12
+ end
@@ -0,0 +1,14 @@
1
+ require 'eidolon/rgss3/rpg/base_item'
2
+
3
+ module RPG
4
+ # == RGSS3
5
+ # This data structure is specific to RGSS3 (VX Ace).
6
+ #
7
+ # == Class
8
+ # The data class for a class (as used by an actor).
9
+ class Class < BaseItem
10
+ attr_accessor :exp_params
11
+ attr_accessor :params
12
+ attr_accessor :learnings
13
+ end
14
+ end
@@ -0,0 +1,16 @@
1
+ require 'eidolon/rgss3/rpg/class'
2
+
3
+ module RPG
4
+ class Class < BaseItem
5
+ # == RGSS3
6
+ # This data structure is specific to RGSS3 (VX Ace).
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
+ attr_accessor :note
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,18 @@
1
+ require 'eidolon/rgss3/rpg/base_item'
2
+
3
+ module RPG
4
+ # == RGSS3
5
+ # This data structure is specific to RGSS3 (VX Ace).
6
+ #
7
+ # == Enemy
8
+ # The data class for enemies.
9
+ class Enemy < BaseItem
10
+ attr_accessor :battler_name
11
+ attr_accessor :battler_hue
12
+ attr_accessor :params
13
+ attr_accessor :exp
14
+ attr_accessor :gold
15
+ attr_accessor :actions
16
+ attr_accessor :drop_items
17
+ end
18
+ end
@@ -0,0 +1,18 @@
1
+ require 'eidolon/rgss3/rpg/enemy'
2
+
3
+ module RPG
4
+ class Enemy < BaseItem
5
+ # == RGSS3
6
+ # This data structure is specific to RGSS3 (VX Ace).
7
+ #
8
+ # == Action
9
+ # Data class for enemy battle actions.
10
+ class Action
11
+ attr_accessor :skill_id
12
+ attr_accessor :condition_type
13
+ attr_accessor :rating
14
+ attr_accessor :condition_param1
15
+ attr_accessor :condition_param2
16
+ end
17
+ end
18
+ end
@@ -0,0 +1,16 @@
1
+ require 'eidolon/rgss3/rpg/enemy'
2
+
3
+ module RPG
4
+ class Enemy < BaseItem
5
+ # == RGSS3
6
+ # This data structure is specific to RGSS3 (VX Ace).
7
+ #
8
+ # == DropItem
9
+ # Data class for an item dropped by an enemy at the end of battle.
10
+ class DropItem
11
+ attr_accessor :kind
12
+ attr_accessor :data_id
13
+ attr_accessor :denominator
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,14 @@
1
+ require 'eidolon/rgss3/rpg/base_item'
2
+
3
+ module RPG
4
+ # == RGSS3
5
+ # This data structure is specific to RGSS3 (VX Ace).
6
+ #
7
+ # == EquipItem
8
+ # The superclass of weapons and armor.
9
+ class EquipItem < BaseItem
10
+ attr_accessor :price
11
+ attr_accessor :etype_id
12
+ attr_accessor :params
13
+ end
14
+ end
@@ -0,0 +1,14 @@
1
+ require 'eidolon/rgss3/rpg/usable_item'
2
+
3
+ module RPG
4
+ # == RGSS3
5
+ # This data structure is specific to RGSS3 (VX Ace).
6
+ #
7
+ # == Item
8
+ # The data class for items.
9
+ class Item < UsableItem
10
+ attr_accessor :itype_id
11
+ attr_accessor :price
12
+ attr_accessor :consumable
13
+ end
14
+ end
@@ -0,0 +1,16 @@
1
+ require 'eidolon/rgssx/rpg/map'
2
+
3
+ module RPG
4
+ class Map
5
+ # == RGSS3
6
+ # This data structure is specific to RGSS3 (VX Ace).
7
+ #
8
+ # == Encounter
9
+ # The data class for encounter settings.
10
+ class Encounter
11
+ attr_accessor :troop_id
12
+ attr_accessor :weight
13
+ attr_accessor :region_set
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,11 @@
1
+ require 'eidolon/rgssx/rpg/audio_file'
2
+
3
+ module RPG
4
+ # == RGSS3
5
+ # This data structure is specific to RGSS3 (VX Ace).
6
+ #
7
+ # == ME
8
+ # The data class for musical effects.
9
+ class ME < AudioFile
10
+ end
11
+ end
@@ -0,0 +1,11 @@
1
+ require 'eidolon/rgssx/rpg/audio_file'
2
+
3
+ module RPG
4
+ # == RGSS3
5
+ # This data structure is specific to RGSS3 (VX Ace).
6
+ #
7
+ # == SE
8
+ # The data class for sound effects.
9
+ class SE < AudioFile
10
+ end
11
+ end
@@ -0,0 +1,18 @@
1
+ require 'eidolon/rgss3/rpg/usable_item'
2
+
3
+ module RPG
4
+ # == RGSS3
5
+ # This data structure is specific to RGSS3 (VX Ace).
6
+ #
7
+ # == Skill
8
+ # The data class for skills.
9
+ class Skill < UsableItem
10
+ attr_accessor :stype_id
11
+ attr_accessor :mp_cost
12
+ attr_accessor :tp_cost
13
+ attr_accessor :message1
14
+ attr_accessor :message2
15
+ attr_accessor :required_wtype_id1
16
+ attr_accessor :required_wtype_id2
17
+ end
18
+ end
@@ -0,0 +1,26 @@
1
+ require 'eidolon/rgss3/rpg/base_item'
2
+
3
+ module RPG
4
+ # == RGSS3
5
+ # This data structure is specific to RGSS3 (VX Ace).
6
+ #
7
+ # == State
8
+ # The data class for states.
9
+ class State < BaseItem
10
+ attr_accessor :restriction
11
+ attr_accessor :priority
12
+ attr_accessor :auto_removal_timing
13
+ attr_accessor :min_turns
14
+ attr_accessor :max_turns
15
+ attr_accessor :chance_by_damage
16
+ attr_accessor :remove_by_damage
17
+ attr_accessor :remove_at_battle_end
18
+ attr_accessor :remove_by_restriction
19
+ attr_accessor :remove_by_walking
20
+ attr_accessor :steps_to_remove
21
+ attr_accessor :message1
22
+ attr_accessor :message2
23
+ attr_accessor :message3
24
+ attr_accessor :message4
25
+ end
26
+ end
@@ -0,0 +1,50 @@
1
+ module RPG
2
+ # == RGSS3
3
+ # This data structure is specific to RGSS3 (VX Ace).
4
+ #
5
+ # == System
6
+ # Data class for the system (miscellaneous configuration options).
7
+ class System
8
+ attr_accessor :game_title
9
+ attr_accessor :version_id
10
+ attr_accessor :japanese
11
+ attr_accessor :party_members
12
+ attr_accessor :currency_unit
13
+ attr_accessor :skill_types
14
+ attr_accessor :weapon_types
15
+ attr_accessor :armor_types
16
+ attr_accessor :elements
17
+ attr_accessor :switches
18
+ attr_accessor :variables
19
+ attr_accessor :boat
20
+ attr_accessor :ship
21
+ attr_accessor :airship
22
+ attr_accessor :title1_name
23
+ attr_accessor :title2_name
24
+ attr_accessor :opt_draw_title
25
+ attr_accessor :opt_use_midi
26
+ attr_accessor :opt_transparent
27
+ attr_accessor :opt_followers
28
+ attr_accessor :opt_slip_death
29
+ attr_accessor :opt_floor_death
30
+ attr_accessor :opt_display_tp
31
+ attr_accessor :opt_extra_exp
32
+ attr_accessor :window_tone
33
+ attr_accessor :title_bgm
34
+ attr_accessor :battle_bgm
35
+ attr_accessor :battle_end_me
36
+ attr_accessor :gameover_me
37
+ attr_accessor :sounds
38
+ attr_accessor :test_battlers
39
+ attr_accessor :test_troop_id
40
+ attr_accessor :start_map_id
41
+ attr_accessor :start_x
42
+ attr_accessor :start_y
43
+ attr_accessor :terms
44
+ attr_accessor :battleback1_name
45
+ attr_accessor :battleback2_name
46
+ attr_accessor :battler_name
47
+ attr_accessor :battler_hue
48
+ attr_accessor :edit_map_id
49
+ end
50
+ end
@@ -0,0 +1,17 @@
1
+ require 'eidolon/rgss3/rpg/system'
2
+
3
+ module RPG
4
+ class System
5
+ # == RGSS3
6
+ # This data structure is specific to RGSS3 (VX Ace).
7
+ #
8
+ # == Terms
9
+ # Data class for terminology.
10
+ class Terms
11
+ attr_accessor :basic
12
+ attr_accessor :params
13
+ attr_accessor :etypes
14
+ attr_accessor :commands
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,16 @@
1
+ require 'eidolon/rgss3/rpg/system'
2
+
3
+ module RPG
4
+ class System
5
+ # == RGSS3
6
+ # This data structure is specific to RGSS3 (VX Ace).
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 :equips
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,19 @@
1
+ require 'eidolon/rgss3/rpg/system'
2
+
3
+ module RPG
4
+ class System
5
+ # == RGSS3
6
+ # This data structure is specific to RGSS3 (VX Ace).
7
+ #
8
+ # == Vehicle
9
+ # Data class for vehicles.
10
+ class Vehicle
11
+ attr_accessor :character_name
12
+ attr_accessor :character_index
13
+ attr_accessor :bgm
14
+ attr_accessor :start_map_id
15
+ attr_accessor :start_x
16
+ attr_accessor :start_y
17
+ end
18
+ end
19
+ end
@@ -0,0 +1,15 @@
1
+ module RPG
2
+ # == RGSS3
3
+ # This data structure is specific to RGSS3 (VX Ace).
4
+ #
5
+ # == Tileset
6
+ # The data class for tilesets (as used by maps).
7
+ class Tileset
8
+ attr_accessor :id
9
+ attr_accessor :mode
10
+ attr_accessor :name
11
+ attr_accessor :tileset_names
12
+ attr_accessor :flags
13
+ attr_accessor :note
14
+ end
15
+ end
@@ -0,0 +1,21 @@
1
+ require 'eidolon/rgss3/rpg/base_item'
2
+
3
+ module RPG
4
+ # == RGSS3
5
+ # This data structure is specific to RGSS3 (VX Ace).
6
+ #
7
+ # == UsableItem
8
+ # Superclass of Skill and Item.
9
+ class UsableItem < BaseItem
10
+ attr_accessor :scope
11
+ attr_accessor :occasion
12
+ attr_accessor :speed
13
+ attr_accessor :animation_id
14
+ attr_accessor :success_rate
15
+ attr_accessor :repeats
16
+ attr_accessor :tp_gain
17
+ attr_accessor :hit_type
18
+ attr_accessor :damage
19
+ attr_accessor :effects
20
+ end
21
+ end