设为首页收藏本站|繁體中文

Project1

 找回密码
 注册会员
搜索
查看: 2236|回复: 5
打印 上一主题 下一主题

[已经过期] 請問這個黑白腳本如何用

 关闭 [复制链接]

Lv1.梦旅人

梦石
0
星屑
55
在线时间
30 小时
注册时间
2010-8-16
帖子
20
跳转到指定楼层
1
发表于 2011-1-30 22:18:19 | 只看该作者 |只看大图 回帖奖励 |倒序浏览 |阅读模式

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

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

x
本帖最后由 y6831174 于 2011-1-30 22:46 编辑

這個黑白腳本

全是英文呢
他說:
Empezemos ...

Objetivo: Poner el menu de B/W en el PSP DS
Dificultad: 3/10
Conocimientos: Saber usar las opciones basicas (copiar, pegar, abrir, etc) en Windows.

Instrucciones :
•Descargamos estas imagenes :

Por Megaploud
Por Rapidshare
Por Sendspace

y las pones en la carpeta Graphics\Pictures que se encuentra donde esta su juego.
•Luego abrir el RMXP con nuestro juego cargado y abren el Editor de Scripts (F11) y buscan en la lista de la izquierda los scripts :

Interface_Echap*

Borras todo lo que esta escrito en la parte mas grande (que tiene las lineas enumeradas, o sea donde estan las letras y los codigos ) y pegas esto:
  1. Código PHP:
  2. #==============================================================================

  3. class Interface_Echap < Window_Base
  4. include POKEMON_S

  5. def initialize
  6. super(0, 0, 640, 480)
  7. self.contents = Bitmap.new(width - 32, height - 32)
  8. self.contents.font.name = $fontface
  9. self.contents.font.size = $fontsize
  10. self.opacity = 0
  11. self.z = 21
  12. @interface = Sprite.new
  13. @interface.x = 13
  14. @interface.y = 227
  15. @interface.z = 20

  16. apparence
  17. refresh
  18. end


  19. def dispose
  20. super
  21. @interface.dispose
  22. end

  23. def apparence
  24. if $color_menu == 1 or $color_menu == nil # Vert
  25. @string = "_vert"
  26. elsif $color_menu == 0 # Bleu
  27. @string = "_bleu"
  28. elsif $color_menu == 2 # Rouge
  29. @string = "_rouge"
  30. end
  31. end

  32. def refresh
  33. if $game_variables[11] == 1
  34. @interface.bitmap = RPG::Cache.picture("menu echap1")
  35. else
  36. @interface.bitmap = RPG::Cache.picture("menu echap2")
  37. end
  38. #if $data_pokedex[0] == true
  39. # @interface.bitmap = RPG::Cache.picture("Menu Echap/menu echap3" + @string)
  40. #end
  41. #if $game_switches[9] == true
  42. # @interface.bitmap = RPG::Cache.picture("Menu Echap/menu echap" + @string)
  43. #end
  44. end

  45. def text_interface
  46. draw_text_interface(16, 253, 50, 25, "POKéDEX", 1)
  47. draw_text_interface(16, 293, 50, 25, "POKéMON", 1)
  48. draw_text_interface(16, 333, 50, 25, "MOCHILA", 1)
  49. draw_text_interface(1, 373, 80, 25, "POKéMATOS", 1)
  50. draw_text_interface(86, 253, 70, 25, Player.name, 1)
  51. draw_text_interface(96, 293, 50, 25, "GUARDAR", 1)
  52. draw_text_interface(96, 333, 50, 25, "OPCIONES", 1)
  53. end

  54. end
复制代码
y Ahora buscas el script, Pokemon_Menu y ha
  1. Código PHP:
  2. module POKEMON_S
  3. class Pokemon_Menu

  4. def initialize(menu_index = 0)
  5. @menu_index = menu_index
  6. end

  7. def main
  8. Graphics.freeze
  9. @z_level = 10000
  10. # Image de fond du menu
  11. @spriteset = Spriteset_Map.new
  12. @background = Sprite.new
  13. @background.bitmap = RPG::Cache.picture("menu echap.PNG")
  14. @background.x = 13
  15. @background.y = 13
  16. @background.z = @z_level
  17. @command = POKEMON_S::Window_Menu.new
  18. @command.x = 0
  19. @command.y = 0
  20. @command.z = @z_level + 2
  21. @command.opacity = 0
  22. @img0 = Sprite.new
  23. @img0.bitmap = RPG::Cache.picture("menu_noselect.PNG")
  24. @img0.y = 251
  25. @img0.x = 16
  26. @img0.z = @z_level
  27. if not($data_pokedex[0])
  28. @img0.opacity = 0
  29. end
  30. @img1 = Sprite.new
  31. @img1.bitmap = RPG::Cache.picture("menu_noselect.PNG")
  32. @img1.y = 251
  33. @img1.x = 144
  34. @img1.z = @z_level
  35. @img2 = Sprite.new
  36. @img2.bitmap = RPG::Cache.picture("menu_noselect.PNG")
  37. @img2.y = 299
  38. @img2.x = 16
  39. @img2.z = @z_level
  40. if $pokemon_party.size == 0
  41. @img2.opacity = 0
  42. end
  43. @img3 = Sprite.new
  44. @img3.bitmap = RPG::Cache.picture("menu_noselect.PNG")
  45. @img3.y = 299
  46. @img3.x = 144
  47. @img3.z = @z_level
  48. @img4 = Sprite.new
  49. @img4.bitmap = RPG::Cache.picture("menu_noselect.PNG")
  50. @img4.y = 347
  51. @img4.x = 16
  52. @img4.z = @z_level
  53. @img5 = Sprite.new
  54. @img5.bitmap = RPG::Cache.picture("menu_noselect.PNG")
  55. @img5.y = 347
  56. @img5.x = 144
  57. @img5.z = @z_level


  58. @cde0 = Sprite.new
  59. @cde0.bitmap = RPG::Cache.picture("Menu0.PNG")
  60. @cde0.y = 257
  61. @cde0.x = 27
  62. @cde0.z = @z_level + 2
  63. if not($data_pokedex[0])
  64. @cde0.opacity = 0
  65. end
  66. @cde1 = Sprite.new
  67. @cde1.bitmap = RPG::Cache.picture("Menu1.PNG")
  68. @cde1.y = 307
  69. @cde1.x = 27
  70. @cde1.z = @z_level + 2
  71. if $pokemon_party.size == 0
  72. @cde1.opacity = 0
  73. end
  74. @cde2 = Sprite.new
  75. @cde2.bitmap = RPG::Cache.picture("Menu2.PNG")
  76. @cde2.y = 354
  77. @cde2.x = 24
  78. @cde2.z = @z_level + 2
  79. @cde3 = Sprite.new
  80. @cde3.bitmap = RPG::Cache.picture("Menu3.PNG")
  81. @cde3.y = 256
  82. @cde3.x = 155
  83. @cde3.z = @z_level + 2
  84. @cde4 = Sprite.new
  85. @cde4.bitmap = RPG::Cache.picture("Menu4.PNG")
  86. @cde4.y = 303
  87. @cde4.x = 155
  88. @cde4.z = @z_level + 2
  89. @cde5 = Sprite.new
  90. @cde5.bitmap = RPG::Cache.picture("Menu5.PNG")
  91. @cde5.y = 353
  92. @cde5.x = 155
  93. @cde5.z = @z_level + 2
  94. if not($data_pokedex[0]) and @menu_index == 0
  95. @menu_index = 1
  96. end
  97. if $pokemon_party.size == 0 and @menu_index == 1
  98. @menu_index = 2
  99. end
  100. @curseur = Sprite.new
  101. @curseur.bitmap = RPG::Cache.picture("menu_select.PNG")
  102. @curseur.y = 251+ 48 *(@menu_index % 3)
  103. @curseur.x = 16 + 128*(@menu_index / 3)
  104. @curseur.z = @z_level + 1

  105. Graphics.transition
  106. loop do
  107. Graphics.update
  108. Input.update
  109. update
  110. @curseur.dispose
  111. @curseur = Sprite.new
  112. @curseur.bitmap = RPG::Cache.picture("menu_select.PNG")
  113. @curseur.y = 251+ 48 *(@menu_index % 3)
  114. @curseur.x = 16 + 128*(@menu_index / 3)
  115. @curseur.z = @z_level + 1
  116. @command.refresh
  117. if $scene != self
  118. break
  119. end
  120. end
  121. Graphics.freeze
  122. @curseur.dispose
  123. @command.dispose
  124. @background.dispose
  125. @spriteset.dispose
  126. @command.dispose
  127. @cde0.dispose
  128. @cde1.dispose
  129. @cde2.dispose
  130. @cde3.dispose
  131. @cde4.dispose
  132. @cde5.dispose
  133. @img0.dispose
  134. @img1.dispose
  135. @img2.dispose
  136. @img3.dispose
  137. @img4.dispose
  138. @img5.dispose
  139. end

  140. def update
  141. @spriteset.update
  142. a = 0
  143. if Input.trigger?(Input::UP) and @menu_index>0
  144. @menu_index -= 1
  145. if @menu_index == 2
  146. @menu_index = 3
  147. a = 1
  148. end
  149. if not($data_pokedex[0]) and @menu_index == 0
  150. @menu_index = 1
  151. a = 1
  152. end
  153. if $pokemon_party.size == 0 and @menu_index == 1
  154. @menu_index = 2
  155. a = 1
  156. end

  157. if a == 0
  158. $game_system.se_play($data_system.decision_se)
  159. end
  160. end
  161. if Input.trigger?(Input::DOWN) and @menu_index<5
  162. @menu_index += 1
  163. if @menu_index == 3
  164. @menu_index = 2
  165. a = 1
  166. end
  167. if a == 0
  168. $game_system.se_play($data_system.decision_se)
  169. end
  170. end
  171. if Input.trigger?(Input::LEFT) and @menu_index>2
  172. $game_system.se_play($data_system.decision_se)
  173. @menu_index -= 3
  174. if not($data_pokedex[0]) and @menu_index == 0
  175. @menu_index = 1
  176. end
  177. if $pokemon_party.size == 0 and @menu_index == 1
  178. @menu_index = 2
  179. end
  180. end
  181. if Input.trigger?(Input::RIGHT) and @menu_index<3
  182. $game_system.se_play($data_system.decision_se)
  183. @menu_index += 3
  184. end
  185. if Input.trigger?(Input::B)
  186. $game_system.se_play($data_system.cancel_se)
  187. $scene = Scene_Map.new
  188. return
  189. end
  190. if Input.trigger?(Input::C)
  191. if @menu_index == 0 # Pokédex
  192. if not($data_pokedex[0])
  193. $game_system.se_play($data_system.buzzer_se)
  194. return
  195. end
  196. $game_system.se_play($data_system.decision_se)
  197. $scene = POKEMON_S::Pokemon_Pokedex.new
  198. end
  199. if @menu_index == 1 # Menu
  200. if $pokemon_party.size == 0
  201. $game_system.se_play($data_system.buzzer_se)
  202. return
  203. end
  204. $game_system.se_play($data_system.decision_se)
  205. $scene = POKEMON_S::Pokemon_Party_Menu.new
  206. end
  207. if @menu_index == 2 # Sac
  208. $game_system.se_play($data_system.decision_se)
  209. $scene = Pokemon_Item_Bag.new
  210. end
  211. if @menu_index == 3 # Carte dresseur
  212. $game_system.se_play($data_system.decision_se)
  213. $game_temp.common_event_id = 19
  214. $scene = Scene_Map.new
  215. end
  216. if @menu_index == 4 # Sauvegarde
  217. if $game_system.save_disabled
  218. $game_system.se_play($data_system.buzzer_se)
  219. return
  220. end
  221. $game_system.se_play($data_system.decision_se)
  222. $scene = POKEMON_S::Pokemon_Save.new
  223. end
  224. if @menu_index == 5 # Options
  225. $game_system.se_play($data_system.decision_se)
  226. $scene = OPTIONS.new
  227. end
  228. return
  229. end
  230. end
  231. end

  232. class Window_Location < Window_Base
  233. #--------------------------------------------------------------------------
  234. def initialize
  235. super(0, 0, 300, 96)
  236. self.contents = Bitmap.new(width - 32, height - 32)
  237. self.contents.font.name = $fontface
  238. self.contents.font.size = $fontsize
  239. refresh
  240. end
  241. #--------------------------------------------------------------------------
  242. def refresh
  243. self.contents.clear
  244. self.contents.font.color = Color.new(40,40,40,255)
  245. self.contents.draw_text(6, 0, 300, 32,$data_mapzone[$game_map.map_id][1])
  246. self.contents.draw_text(4, 2, 300, 32,$data_mapzone[$game_map.map_id][1])
  247. self.contents.draw_text(6, 2, 300, 32,$data_mapzone[$game_map.map_id][1])
  248. self.contents.font.color = Color.new(251,251,251,255)
  249. self.contents.draw_text(4, 0, 300, 32,$data_mapzone[$game_map.map_id][1])
  250. end
  251. end

  252. class Window_Argent < Window_Base

  253. #--------------------------------------------------------------------------
  254. def initialize
  255. super(0, 0, 900, 96)
  256. self.contents = Bitmap.new(width - 32, height - 32)
  257. self.contents.font.name = $fontface
  258. self.contents.font.size = $fontsize
  259. refresh
  260. end

  261. #--------------------------------------------------------------------------
  262. def refresh
  263. self.contents.clear
  264. self.contents.font.color = Color.new(40,40,40,255)
  265. self.contents.draw_text(6, 0, 300, 32, $pokemon_party.money.to_s + "$", 2)
  266. self.contents.draw_text(4, 2, 300, 32, $pokemon_party.money.to_s + "$", 2)
  267. self.contents.draw_text(6, 2, 300, 32, $pokemon_party.money.to_s + "$", 2)
  268. self.contents.font.color = Color.new(251,251,251,255)
  269. self.contents.draw_text(4, 0, 300, 32,$pokemon_party.money.to_s + "$", 2)
  270. end
  271. end

  272. class Window_Menu < Window_Base
  273. #--------------------------------------------------------------------------
  274. def initialize
  275. super(0, 0, 640, 480)
  276. self.contents = Bitmap.new(width - 32, height - 32)
  277. self.contents.font.name = $fontface
  278. self.contents.font.size = $fontsize
  279. self.contents.clear
  280. refresh
  281. end
  282. #--------------------------------------------------------------------------
  283. def refresh
  284. s1 = "Pokédex"
  285. s2 = "Pokémon"
  286. s3 = "Mochila"
  287. s4 = Player.name
  288. s5 = "Guardar"
  289. s6 = "Opciones"
  290. menu = [s1,s2,s3,s4,s5,s6]
  291. for i in 0..5
  292. if not($data_pokedex[0]) and i == 0
  293. i = 1
  294. end
  295. if $pokemon_party.size == 0 and i == 1
  296. i = 2
  297. end
  298. y = 251+ 48 *(i % 3) - 9
  299. x = 16 + 128*(i / 3) + 28
  300. text = menu[i].to_s
  301. self.contents.font.color = Color.new(107,107,107,255)
  302. self.contents.draw_text(x+1, y, 300, 32, text)
  303. self.contents.draw_text(x, y+1, 300, 32, text)
  304. self.contents.draw_text(x+1, y+1, 300, 32, text)
  305. self.contents.font.color = Color.new(251,251,251,255)
  306. self.contents.draw_text(x, y, 300, 32,text)
  307. end
  308. end
  309. def dispose
  310. self.contents.clear
  311. end
  312. end

  313. end
复制代码
ces lo mismo que arriba, borrar el contenido y pegas esto :




Menu BW - PSP DS.rar (6.37 KB, 下载次数: 53)
原文:http://wahackforo.com/t-PSP-DS-Menu-B-W

点评

不好意思,刚才看见是白的  发表于 2011-1-30 22:36
竟然是DZ的BUG,什么都看不见  发表于 2011-1-30 22:32

Lv3.寻梦者 (暗夜天使)

名侦探小柯

梦石
0
星屑
3299
在线时间
3619 小时
注册时间
2006-9-6
帖子
37400

开拓者贵宾第3届短篇游戏大赛主流游戏组亚军第5届短篇游戏比赛亚军

2
发表于 2011-1-30 22:33:48 | 只看该作者
我比较想知道的是……有没有那种2.5D地图的效果 = =
咦,这里不是地球村 = =

点评

随便你了 = =  发表于 2011-1-30 22:44

评分

参与人数 1星屑 -40 收起 理由
fux2 -40 小柯神啊……少给你扣10分了…….

查看全部评分

回复 支持 反对

使用道具 举报

Lv2.观梦者

梦石
0
星屑
491
在线时间
339 小时
注册时间
2010-12-15
帖子
926

开拓者

3
发表于 2011-1-31 00:31:24 | 只看该作者
这明显是DS啊……
回复 支持 反对

使用道具 举报

Lv1.梦旅人

梦石
0
星屑
55
在线时间
30 小时
注册时间
2010-8-16
帖子
20
4
 楼主| 发表于 2011-2-1 18:42:20 | 只看该作者
回复 tamashii 的帖子

這不是DS---而是RPG Make XP
回复 支持 反对

使用道具 举报

Lv2.观梦者

梦石
0
星屑
491
在线时间
339 小时
注册时间
2010-12-15
帖子
926

开拓者

5
发表于 2011-2-1 19:10:57 | 只看该作者
面对这个双屏幕并且下屏幕明显是触屏的东西你居然告诉我这是RMXP - -
回复 支持 反对

使用道具 举报

Lv1.梦旅人

梦石
0
星屑
55
在线时间
30 小时
注册时间
2010-8-16
帖子
20
6
 楼主| 发表于 2011-2-3 00:48:23 | 只看该作者
回复 tamashii 的帖子

真的,信不信由你
回复 支持 反对

使用道具 举报

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

本版积分规则

拿上你的纸笔,建造一个属于你的梦想世界,加入吧。
 注册会员
找回密码

站长信箱:[email protected]|手机版|小黑屋|无图版|Project1游戏制作

GMT+8, 2024-11-25 00:22

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表