Advertisement
dsiver144

DSI Card Altar

Mar 9th, 2017
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 25.35 KB | None | 0 0
  1. #==============================================================================
  2. # DSI Card Altar
  3. # -- Last Updated: 2017.03.9
  4. # -- Author: dsiver144
  5. # -- Level: Normal
  6. # -- Requires: n/a
  7. #==============================================================================
  8. $imported = {} if $imported.nil?
  9. $imported["DSI-CARDALTAR"] = true
  10. #==============================================================================
  11. # + Updates
  12. # =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  13. # 2017.02.25 - Finish first version.
  14. # 2017.03.9 - Small edit for item can have multiple altar.
  15. #==============================================================================
  16. # + Instructions
  17. # =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  18. # To install this script, open up your script editor and copy/paste this script
  19. # to an open slot below ?? Materials/?f?? but above ?? Main. Remember to save.
  20. # Remember to put this script below: DSI-Bitmap.
  21. # =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  22. # Script Call: open_altar(altar_id) # Open an Altar with specific altar id (See below)
  23. # Item notetags:
  24. # <sealed_item> : define an sealed item
  25. # <sealed_card: x> : where x is the id of skill in Database
  26. # <sealed_altar: x,y,z,...> : where x,y,z is the id of altar in script configuration (See below)
  27. # you can add as many id as you want to this.
  28. #==============================================================================
  29.  
  30. module DSIVER144
  31. module ALTAR_UNSEALING
  32.  
  33. ALTARS = {}
  34.  
  35. #~ ALTARS[alter_id] = {}
  36. #~ ALTARS[alter_id][:name] = "Name of Altar"
  37. #~ ALTARS[alter_id][:background] = "Background File Name In Picture Folder"
  38.  
  39. ALTARS[1] = {}
  40. ALTARS[1][:name] = "Altar of Earth"
  41. ALTARS[1][:background] = "Background_Here" # In Picture Folder
  42.  
  43. ALTARS[2] = {}
  44. ALTARS[2][:name] = "Altar of Ice"
  45. ALTARS[2][:background] = "FrostMaiden" # In Picture Folder
  46.  
  47. ALTARS[3] = {}
  48. ALTARS[3][:name] = "Altar of Neutrality"
  49. ALTARS[3][:background] = "Background_Here" # In Picture Folder
  50.  
  51. UNSEAL_COMPLETION_TEXT = "%s has been unsealed! It has been added to your card collection!"
  52. UNSEAL_COMPLETION_TEXT2 = "%2d of %s have been unsealed! They have been added to your card collection!"
  53.  
  54. SCENE_BGM = ["", 100, 100]
  55.  
  56. UNSEAL_SE = ["Saint7", 100, 100]
  57. UNSEAL_COMPLETE_SE = ["1000 Item Get!", 100, 100]
  58.  
  59. SEAL_ITEM_TEXT = "\\i[3424]\\c[5]Sealed Item\\c[0]\\i[3424]"
  60. SEAL_ITEM_TEXT_MARGIN = 40
  61. UNSEAL_BUTTONS_TEXT = "\\i[1609]:Unseal"
  62. OTHER_BUTTONS_TEXT = "\\i[1600]:Choose - \\i[1602]:Cancel"
  63. OTHER_BUTTONS_MARGIN = 170
  64.  
  65. #-------------------------------------------------------------------------
  66. # * Don't touch these please
  67. #-------------------------------------------------------------------------
  68. REGEX_1 = /<sealed_item>/i
  69. REGEX_2 = /<sealed_altar:\s*(.+)>/i
  70. REGEX_3 = /<sealed_card:\s*(\w+)>/i
  71. end # ALTAR_UNSEALING
  72.  
  73. end # DSIVER144
  74.  
  75. include DSIVER144::ALTAR_UNSEALING
  76. #==============================================================================
  77. # DataManager
  78. #==============================================================================
  79. module DataManager
  80. #--------------------------------------------------------------------------
  81. # alias method: load_database
  82. #--------------------------------------------------------------------------
  83. class <<self; alias load_database_seal_item load_database; end
  84. def self.load_database
  85. load_database_seal_item
  86. load_notetags_seal_item
  87. end
  88. #--------------------------------------------------------------------------
  89. # Load Notetag Rental Weapons
  90. #--------------------------------------------------------------------------
  91. def self.load_notetags_seal_item
  92. for item in $data_items
  93. next if item.nil?
  94. item.load_notetags_seal_item
  95. end
  96. end
  97. end # DataManager
  98.  
  99. #==============================================================================
  100. # ?? RPG::Weapon
  101. #==============================================================================
  102. class RPG::Item
  103. #--------------------------------------------------------------------------
  104. # public instance variables
  105. #--------------------------------------------------------------------------
  106. attr_accessor :sealed_item
  107. attr_accessor :sealed_card
  108. attr_accessor :sealed_altar
  109. #--------------------------------------------------------------------------
  110. # common cache: load_notetags_sani
  111. #--------------------------------------------------------------------------
  112. def load_notetags_seal_item
  113. @sealed_item = false
  114. @sealed_card = 0
  115. @sealed_altar = []
  116. self.note.split(/[\r\n]+/).each do |line|
  117. if line =~ REGEX_1
  118. @sealed_item = true
  119. end
  120. if line =~ REGEX_2
  121. ids = $1.clone
  122. if ids[ids.length-1] == ","
  123. ids[ids.length-1] = ""
  124. end
  125. ids.split(",").each do |id|
  126. @sealed_altar.push(id.to_i)
  127. end
  128. @sealed_altar.push($1.to_i)
  129. @sealed_altar.delete(0)
  130. @sealed_altar.compact!
  131. end
  132. if line =~ REGEX_3
  133. @sealed_card = $1.to_i
  134. end
  135. end
  136. end
  137. end # RPG::Item
  138.  
  139. class Scene_CardAltar < Scene_Base
  140. #-------------------------------------------------------------------------
  141. # * method: start
  142. #-------------------------------------------------------------------------
  143. def prepare(altar_id=1)
  144. @altar_id = altar_id
  145. end
  146. #-------------------------------------------------------------------------
  147. # * method: start
  148. #-------------------------------------------------------------------------
  149. def start
  150. super
  151. @altar_id ||= 1
  152. create_background_image
  153. play_card_library_bgm
  154. create_main_windows
  155. end
  156. #-------------------------------------------------------------------------
  157. # * new method: play_card_library_bgm
  158. #-------------------------------------------------------------------------
  159. def play_card_library_bgm
  160. $game_system.save_bgm
  161. RPG::BGM.new(*DSIVER144::ALTAR_UNSEALING::SCENE_BGM).play
  162. end
  163. #-------------------------------------------------------------------------
  164. # * new method: stop_card_bgm
  165. #-------------------------------------------------------------------------
  166. def stop_card_library_bgm
  167. RPG::BGM.stop
  168. $game_system.replay_bgm
  169. end
  170. #-------------------------------------------------------------------------
  171. # * new method: create_background_image
  172. #-------------------------------------------------------------------------
  173. def create_background_image
  174. @background_image = Sprite.new
  175. if DSIVER144::ALTAR_UNSEALING::ALTARS[@altar_id][:background] != false
  176. begin
  177. @background_image.bitmap = Cache.picture(DSIVER144::ALTAR_UNSEALING::ALTARS[@altar_id][:background].to_s)
  178. rescue
  179. @background_image.bitmap = SceneManager.background_bitmap
  180. @background_image.color.set(16, 16, 16, 128)
  181. end
  182. else
  183. @background_image.bitmap = SceneManager.background_bitmap
  184. @background_image.color.set(16, 16, 16, 128)
  185. end
  186. end
  187. #-------------------------------------------------------------------------
  188. # * method: create_main_windows
  189. #-------------------------------------------------------------------------
  190. def create_main_windows
  191. @altar_title = Window_Base.new(0,0,Graphics.width,48)
  192. ww = @altar_title.contents_width; hh = @altar_title.contents_height
  193. @altar_title.draw_text(0,0,ww,hh,ALTARS[@altar_id][:name],1)
  194. @altar_help_window = Window_AltarHelp.new
  195. hh = 100
  196. yy = Graphics.height-hh-@altar_help_window.height
  197. @item_window = Window_SealItem.new(0,yy,Graphics.width,hh)
  198. @item_window.category = @altar_id
  199. @item_window.select(0)
  200. @item_window.set_handler(:ok, method(:current_item))
  201. @item_window.activate
  202. @selected_window = Window_SelectedSeal.new(0,0,220,48*2 - 12)
  203. @selected_window.x = 0.5*(Graphics.width - @selected_window.width)
  204. hh = @item_window.height + @altar_help_window.height + @selected_window.height - @altar_title.height
  205. @selected_window.y = 0.5*(Graphics.height - hh)
  206. @selected_window.draw_seal_item(nil)
  207. @stack_item = []
  208. @sprite_card = Sprite.new
  209. @sprite_card.opacity = 0
  210. @sprite_card.z = 200
  211. @sprite_text = Sprite.new
  212. @sprite_text.bitmap = Bitmap.new(400,Graphics.height)
  213. @sprite_text.bitmap.turn_on_wordwraping
  214. @sprite_text.z = 200
  215. @confirm_window = Window_UnsealComfirm.new(0,0)
  216. @confirm_window.x = 0.5*(Graphics.width - @confirm_window.width)
  217. @confirm_window.y = 0.5*(Graphics.height - @confirm_window.height)
  218. @confirm_window.openness = 0
  219. @confirm_window.deactivate
  220. @confirm_window.set_handler(:ok, method(:command_confirm_ok))
  221. @confirm_window.set_handler(:cancel, method(:command_confirm_cancel))
  222. @confirm_text = Window_Base.new(0,0,@confirm_window.width,48)
  223. cw = @confirm_text.contents_width
  224. @confirm_text.draw_text(0,0,cw,24,"Are you sure?")
  225. @confirm_text.x = @confirm_window.x
  226. @confirm_text.y = @confirm_window.y - @confirm_text.height
  227. @confirm_text.openness = 0
  228. end
  229. #-------------------------------------------------------------------------
  230. # * method: seal_state
  231. #-------------------------------------------------------------------------
  232. def seal_state
  233. if @stack_item && @stack_item.size > 0
  234. @altar_help_window.refresh(true)
  235. return true
  236. else
  237. @altar_help_window.refresh(false)
  238. return false
  239. end
  240. end
  241. #-------------------------------------------------------------------------
  242. # * method: command_confirm_cancel
  243. #-------------------------------------------------------------------------
  244. def command_confirm_cancel
  245. @confirm_state = true
  246. @confirm_window.close
  247. @confirm_window.deactivate
  248. @confirm_text.close
  249. @item_window.activate
  250. end
  251. #-------------------------------------------------------------------------
  252. # * method: command_confirm_ok
  253. #-------------------------------------------------------------------------
  254. def command_confirm_ok
  255. @confirm_state = true
  256. card_skill_id = @stack_item[0].sealed_card
  257. card_skill = $data_skills[card_skill_id]
  258. @card_recieve = [card_skill.id,@stack_item.size]
  259. @stack_item.clear
  260. hide_seal_item_window
  261. show_card(card_skill)
  262. @cancel_card = true
  263. end
  264. #-------------------------------------------------------------------------
  265. # * method: return_stack_item
  266. #-------------------------------------------------------------------------
  267. def return_stack_item
  268. return unless @stack_item
  269. @stack_item.each do |item|
  270. $game_party.gain_item(item,1)
  271. end
  272. end
  273. #-------------------------------------------------------------------------
  274. # * method: refresh_windows
  275. #-------------------------------------------------------------------------
  276. def refresh_windows
  277. @selected_window.draw_seal_item(nil)
  278. @item_window.refresh
  279. seal_state
  280. end
  281. #-------------------------------------------------------------------------
  282. # * method: current_item
  283. #-------------------------------------------------------------------------
  284. def current_item
  285. if @stack_item.include?(@item_window.item)
  286. Sound.play_ok
  287. @stack_item.push(@item_window.item)
  288. $game_party.lose_item(@item_window.item,1)
  289. @item_window.refresh
  290. else
  291. return_stack_item
  292. if @item_window.item.nil?
  293. Sound.play_buzzer if @stack_item.size == 0
  294. end
  295. @stack_item.clear
  296. if @item_window.item
  297. @stack_item.push(@item_window.item)
  298. $game_party.lose_item(@item_window.item,1)
  299. Sound.play_ok
  300. else
  301. Sound.play_ok
  302. end
  303. @item_window.refresh
  304. end
  305. @selected_window.draw_seal_item(@stack_item[0],@stack_item.size)
  306. @item_window.activate
  307. seal_state
  308. end
  309. #-------------------------------------------------------------------------
  310. # * method: hide_seal_item_window
  311. #-------------------------------------------------------------------------
  312. def hide_seal_item_window
  313. @item_window.deactivate
  314. @altar_help_window.refresh(false)
  315. while @item_window.openness > 0
  316. [@selected_window,@item_window,@altar_title,@confirm_window,@confirm_text].each do |window|
  317. window.openness -= 30
  318. end
  319. Graphics.update
  320. end
  321. end
  322. #-------------------------------------------------------------------------
  323. # * method: open_seal_item_window
  324. #-------------------------------------------------------------------------
  325. def open_seal_item_window
  326. refresh_windows
  327. while @item_window.openness < 255
  328. [@selected_window,@item_window,@altar_title].each do |window|
  329. window.openness += 30
  330. end
  331. Graphics.update
  332. end
  333. @item_window.activate
  334. end
  335. #-------------------------------------------------------------------------
  336. # * method: hide_card
  337. #-------------------------------------------------------------------------
  338. def hide_card
  339. while @sprite_card.opacity > 0
  340. @sprite_card.opacity -= 6
  341. @sprite_text.opacity -= 6
  342. @sprite_card.zoom_x += 0.003
  343. @sprite_card.zoom_y += 0.003
  344. Graphics.update
  345. end
  346. @sprite_card.zoom_x = 1
  347. @sprite_card.zoom_y = 1
  348. @cancel_card = false
  349. open_seal_item_window
  350. end
  351. #-------------------------------------------------------------------------
  352. # * method: show_card
  353. #-------------------------------------------------------------------------
  354. def show_card(card)
  355. RPG::SE.new(*UNSEAL_SE).play
  356. @sprite_card.bitmap = Cache.picture("Card" + card.id.to_s)
  357. @sprite_card.ox = @sprite_card.bitmap.width / 2
  358. @sprite_card.oy = @sprite_card.bitmap.height / 2
  359. @sprite_card.x = 0.5*(Graphics.width - @sprite_card.bitmap.width) + @sprite_card.ox
  360. hh = @sprite_card.bitmap.height + @altar_help_window.height - @altar_title.height
  361. @sprite_card.y = 0.5*(Graphics.height - hh) + @sprite_card.oy - 30
  362. @sprite_text.opacity = 0
  363. @sprite_text.x = 0.5*(Graphics.width - @sprite_text.bitmap.width)
  364. @sprite_text.y = 20
  365. if @card_recieve[1] == 1
  366. name = $data_skills[@card_recieve[0]].name
  367. str = sprintf(UNSEAL_COMPLETION_TEXT,name)
  368. else
  369. name = $data_skills[@card_recieve[0]].name
  370. num = @card_recieve[1]
  371. str = sprintf(UNSEAL_COMPLETION_TEXT2,num,name)
  372. end
  373. text_y = @sprite_card.y+@sprite_card.bitmap.height
  374. @sprite_text.bitmap.clear
  375. @sprite_text.bitmap.draw_text_ex(0,300,str)
  376. while @sprite_card.opacity < 255
  377. @sprite_card.opacity += 5
  378. @sprite_card.y -= 1 if Graphics.frame_count % 3 == 0
  379. Graphics.update
  380. end
  381. 5.times { Graphics.update }
  382. RPG::SE.new(*UNSEAL_COMPLETE_SE).play
  383. while @sprite_text.opacity < 255
  384. @sprite_text.opacity += 5
  385. @sprite_text.y -= 1 if Graphics.frame_count % 3 == 0
  386. Graphics.update
  387. end
  388. recieve_cards
  389. 60.times { Graphics.update }
  390. hide_card
  391. end
  392. #-------------------------------------------------------------------------
  393. # * method: recieve_cards
  394. #-------------------------------------------------------------------------
  395. def recieve_cards
  396. return unless @card_recieve
  397. interpreter = Game_Interpreter2.new
  398. @card_recieve[1].times do
  399. interpreter.add_card_to_coll(@card_recieve[0])
  400. end
  401. end
  402. #-------------------------------------------------------------------------
  403. # * method: check_confirm
  404. #-------------------------------------------------------------------------
  405. def check_confirm
  406. @item_window.deactivate
  407. @confirm_window.open
  408. @confirm_window.activate
  409. @confirm_text.open
  410. @confirm_state = false
  411. while @confirm_window.openness < 255
  412. @confirm_window.update
  413. @confirm_text.update
  414. Graphics.update
  415. end
  416. while !@confirm_state
  417. @confirm_window.update
  418. @confirm_text.update
  419. Graphics.update
  420. Input.update
  421. end
  422. end
  423. #-------------------------------------------------------------------------
  424. # * method: update
  425. #-------------------------------------------------------------------------
  426. def update
  427. super
  428. if Input.trigger?(:B)
  429. if @cancel_card
  430. hide_card
  431. open_seal_item_window
  432. else
  433. return_scene
  434. end
  435. end
  436. if Input.trigger?(:X)
  437. if seal_state
  438. check_confirm
  439. else
  440. Sound.play_buzzer
  441. end
  442. end
  443. end
  444. #-------------------------------------------------------------------------
  445. # * method: make_command_list
  446. #-------------------------------------------------------------------------
  447. def terminate
  448. super
  449. return_stack_item
  450. if @sprite_card.bitmap
  451. @sprite_card.bitmap.dispose
  452. end
  453. @sprite_card.dispose
  454. if @sprite_text.bitmap
  455. @sprite_text.bitmap.dispose
  456. end
  457. @background_image.bitmap.dispose
  458. @background_image.dispose
  459. @sprite_text.dispose
  460. stop_card_library_bgm
  461. end
  462. end # Scene_CardAltar
  463.  
  464. class Window_UnsealComfirm < Window_Command
  465. #-------------------------------------------------------------------------
  466. # * method: window_width
  467. #-------------------------------------------------------------------------
  468. def window_width
  469. return 200
  470. end
  471. #-------------------------------------------------------------------------
  472. # * method: make_command_list
  473. #-------------------------------------------------------------------------
  474. def make_command_list
  475. add_command("Yes", :ok)
  476. add_command("No", :cancel)
  477. end
  478. end # Window_UnsealComfirm
  479.  
  480. class Window_SelectedSeal < Window_Base
  481. #-------------------------------------------------------------------------
  482. # * method: draw_seal_item
  483. #-------------------------------------------------------------------------
  484. def draw_seal_item(item=nil,item_num=1)
  485. contents.clear
  486. x = 0; y = 0;cw = contents_width;ch = contents_height
  487. draw_text_ex(SEAL_ITEM_TEXT_MARGIN,0,SEAL_ITEM_TEXT)
  488. y += 26
  489. contents.fill_rect(x + 3,y,cw - 6,30,Color.new(0,0,0,200))
  490. return if item.nil?
  491. draw_icon(item.icon_index,x + 4,y + 2)
  492. draw_text(x + 29, y + 2, cw, 24, item.name + " x#{item_num}")
  493. end
  494. end # Window_SelectedSeal
  495.  
  496. class Window_AltarHelp < Window_Base
  497. #-------------------------------------------------------------------------
  498. # * method: draw_info
  499. #-------------------------------------------------------------------------
  500. def initialize
  501. super(0,Graphics.height-48,Graphics.width,48)
  502. refresh
  503. end
  504. #--------------------------------------------------------------------------
  505. # * Draw Text with Control Characters
  506. #--------------------------------------------------------------------------
  507. def draw_text_ex(x, y, text)
  508. text = convert_escape_characters(text)
  509. pos = {:x => x, :y => y, :new_x => x, :height => calc_line_height(text)}
  510. process_character(text.slice!(0, 1), text, pos) until text.empty?
  511. end
  512. #-------------------------------------------------------------------------
  513. # * new method: refresh
  514. #-------------------------------------------------------------------------
  515. def refresh(enable_altar=false)
  516. contents.clear
  517. change_color(normal_color,enable_altar)
  518. draw_text_ex(0,0,DSIVER144::ALTAR_UNSEALING::UNSEAL_BUTTONS_TEXT)
  519. change_color(normal_color,true)
  520. draw_text_ex(contents_width - DSIVER144::ALTAR_UNSEALING::OTHER_BUTTONS_MARGIN,0,DSIVER144::ALTAR_UNSEALING::OTHER_BUTTONS_TEXT)
  521. end
  522. end # Window_CardLibraryHelp
  523.  
  524. #==============================================================================
  525. # ** Window_SealItem
  526. #------------------------------------------------------------------------------
  527. # This window displays a list of seal on the item screen.
  528. #==============================================================================
  529.  
  530. class Window_SealItem < Window_ItemList
  531. #--------------------------------------------------------------------------
  532. # * Object Initialization
  533. #--------------------------------------------------------------------------
  534. def initialize(x, y, width, height)
  535. super(x, y, width, height)
  536. @category = 0
  537. end
  538. #--------------------------------------------------------------------------
  539. # * Set Category
  540. #--------------------------------------------------------------------------
  541. def category=(category)
  542. return if @category == category
  543. @category = category
  544. refresh
  545. self.oy = 0
  546. end
  547. #--------------------------------------------------------------------------
  548. # * Get Digit Count
  549. #--------------------------------------------------------------------------
  550. def col_max
  551. return 2
  552. end
  553. #--------------------------------------------------------------------------
  554. # * Get Number of Items
  555. #--------------------------------------------------------------------------
  556. def item_max
  557. @data ? @data.size : 1
  558. end
  559. #--------------------------------------------------------------------------
  560. # * Get Item
  561. #--------------------------------------------------------------------------
  562. def item
  563. @data && index >= 0 ? @data[index] : nil
  564. end
  565. #--------------------------------------------------------------------------
  566. # * Get Activation State of Selection Item
  567. #--------------------------------------------------------------------------
  568. def current_item_enabled?
  569. true
  570. end
  571. #--------------------------------------------------------------------------
  572. # * Include in Item List?
  573. #--------------------------------------------------------------------------
  574. def include?(item)
  575. return item.is_a?(RPG::Item) && item.sealed_altar.include?(@category)
  576. end
  577. #--------------------------------------------------------------------------
  578. # * Display in Enabled State?
  579. #--------------------------------------------------------------------------
  580. def enable?(item)
  581. true#$game_party.usable?(item)
  582. end
  583. #--------------------------------------------------------------------------
  584. # * Create Item List
  585. #--------------------------------------------------------------------------
  586. def make_item_list
  587. @data = $game_party.all_items.select {|item| include?(item) }
  588. @data.push(nil) if include?(nil)
  589. end
  590. #--------------------------------------------------------------------------
  591. # * Restore Previous Selection Position
  592. #--------------------------------------------------------------------------
  593. def select_last
  594. select(@data.index($game_party.last_item.object) || 0)
  595. end
  596. #--------------------------------------------------------------------------
  597. # * Draw Item
  598. #--------------------------------------------------------------------------
  599. def draw_item(index)
  600. item = @data[index]
  601. if item
  602. rect = item_rect(index)
  603. rect.width -= 4
  604. draw_item_name(item, rect.x, rect.y, enable?(item))
  605. draw_item_number(rect, item)
  606. end
  607. end
  608. #--------------------------------------------------------------------------
  609. # * Draw Number of Items
  610. #--------------------------------------------------------------------------
  611. def draw_item_number(rect, item)
  612. draw_text(rect, sprintf(":%2d", $game_party.item_number(item)), 2)
  613. end
  614. #--------------------------------------------------------------------------
  615. # * Processing When OK Button Is Pressed
  616. #--------------------------------------------------------------------------
  617. def process_ok
  618. if current_item_enabled?
  619. Input.update
  620. deactivate
  621. call_ok_handler
  622. else
  623. Sound.play_buzzer
  624. end
  625. end
  626. #--------------------------------------------------------------------------
  627. # * Update Help Text
  628. #--------------------------------------------------------------------------
  629. def update_help
  630. end
  631. #--------------------------------------------------------------------------
  632. # * Refresh
  633. #--------------------------------------------------------------------------
  634. def refresh
  635. make_item_list
  636. create_contents
  637. draw_all_items
  638. end
  639. end # Window_SealItem
  640.  
  641. class Game_Interpreter
  642. #--------------------------------------------------------------------------
  643. # * open_altar
  644. #--------------------------------------------------------------------------
  645. def open_altar(altar_id)
  646. SceneManager.call(Scene_CardAltar)
  647. SceneManager.scene.prepare(altar_id)
  648. end
  649. end # Game_Interpreter
  650.  
  651. class Game_Interpreter2 < Game_Interpreter
  652. def initialize
  653. end
  654. end # Game_Interpreter2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement