查看: 3989|回复: 10

[已经过期] 怎么修改地图坐标

[复制链接]
梦石
0
星屑
2457
在线时间
912 小时
注册时间
2014-10-14
回帖
1155

开拓者

发表于 2018-8-18 22:45:03 | 显示全部楼层 |阅读模式

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

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

×
本帖最后由 j296196585 于 2018-8-18 22:46 编辑

如图所示 我找不到修改的地方郁闷

[pre lang="ruby"]#_______________________________________________________________________________
# MOG_Location_Name V1.4            
#_______________________________________________________________________________
# By Moghunter      
# http://www.atelier-rgss.com
#_______________________________________________________________________________
module MOG
#Font Name.
MPFONT = ["宋体"]#"Georgia"
#Fade ON/OFF(True - False).
MPNMFD = true
#Fade Time(in seconds).
MPNMTM = 10
#Window Position.
# 0 = Upper Left.
# 1 = Lower Left.
# 2 = Upper Right.
# 3 = Lower Right.
MPNMPS = 1   #难度选择
# Disable Window Switch(ID).
WM_SWITCH_VIS_DISABLE = 20
end
#_________________________________________________
$mogscript = {} if $mogscript == nil
$mogscript["Location_Name"] = true
###############
# Game_System #
###############
class Game_System
attr_accessor :fdtm
attr_accessor :mpnm_x
attr_accessor :mpnm_y
alias mog24_initialize initialize
def initialize
mog24_initialize
@fdtm = 255 + 40 * MOG::MPNMTM
if MOG::MPNMPS == 0
@mpnm_x = 00
@mpnm_y = -16
elsif MOG::MPNMPS == 1
@mpnm_x = 0
@mpnm_y = -16
elsif MOG::MPNMPS == 2
@mpnm_x = 0
@mpnm_y = -16
else
@mpnm_x = 0
@mpnm_y = -16
end  
end
def mpnm_x
return @mpnm_x
end
def mpnm_y
return @mpnm_y
end
def fdtm
if @fdtm <= 0
@fdtm = 0
end
return @fdtm
end
end
############
# Game_Map #
############
class Game_Map
attr_reader   :map_id  
def mpname
$mpname = load_data("Data/MapInfos.rxdata")
$mpname[@map_id].name
end
end
###############
# Window Base #
###############
class Window_Base < Window
def nd_mapic
mapic = RPG::Cache.picture("")     
end  
def draw_mpname(x,y)
mapic = RPG::Cache.picture("Mpname2") rescue nd_mapic   
cw = mapic.width
ch = mapic.height
src_rect = Rect.new(0, 0, 1024, 575)
x1 = 40
x2 = 0
self.contents.blt(0, 0, RPG::Cache.picture("Mpname2"), Rect.new(0, 0, 1024, 575))
self.contents.font.name = MOG::MPFONT
self.contents.font.size = 15
self.contents.font.color = Color.new(0,0,0,255)
if $game_variables[1] == 0
self.contents.draw_text(466, -3, 165, 32, $game_map.mpname.to_s,1)#(526, -3, 110, 32, $game_map.mpname.to_s,1)
end
if $game_variables[1] == 1
self.contents.draw_text(466, -3, 165, 32, $game_map.mpname.to_s + " - 冒险级",1)#(526, -3, 110, 32, $game_map.mpname.to_s,1)
end
if $game_variables[1] == 2
self.contents.draw_text(466, -3, 165, 32, $game_map.mpname.to_s + " - 勇士级",1)#(526, -3, 110, 32, $game_map.mpname.to_s,1)
end
if $game_variables[1] == 3
self.contents.draw_text(466, -3, 165, 32, $game_map.mpname.to_s + " - 王者级",1)#(526, -3, 110, 32, $game_map.mpname.to_s,1)
end
if $game_variables[1] == 4
self.contents.draw_text(466, -3, 165, 32, $game_map.mpname.to_s + " - 英雄级",1)#(526, -3, 110, 32, $game_map.mpname.to_s,1)
end
if $game_variables[1] == 5
self.contents.draw_text(466, -3, 165, 32, $game_map.mpname.to_s + " - 地狱级",1)#(526, -3, 110, 32, $game_map.mpname.to_s,1)
end
if $game_variables[1] == 6
self.contents.draw_text(466, -3, 165, 32, $game_map.mpname.to_s + " - 噩梦级",1)#(526, -3, 110, 32, $game_map.mpname.to_s,1)
end
if $game_variables[1] == 7
self.contents.draw_text(466, -3, 165, 32, $game_map.mpname.to_s + " - 灾难级",1)#(526, -3, 110, 32, $game_map.mpname.to_s,1)
end
if $game_variables[1] == 8
self.contents.draw_text(466, -3, 165, 32, $game_map.mpname.to_s + " - 毁灭级",1)#(526, -3, 110, 32, $game_map.mpname.to_s,1)
end
if $game_variables[1] == 9
self.contents.draw_text(466, -3, 165, 32, $game_map.mpname.to_s + " - 世界末日级",1)#(526, -3, 110, 32, $game_map.mpname.to_s,1)
end
if $game_variables[1] == 10
self.contents.draw_text(466, -3, 165, 32, $game_map.mpname.to_s + " - 修罗降世",1)#(526, -3, 110, 32, $game_map.mpname.to_s,1)
end
self.contents.font.color = Color.new(231,206,156,255)
if $game_variables[1] == 0
self.contents.draw_text(465, -4, 165, 32, $game_map.mpname.to_s,1)#(526, -3, 110, 32, $game_map.mpname.to_s,1)
end
if $game_variables[1] == 1
self.contents.draw_text(465, -4, 165, 32, $game_map.mpname.to_s + " - 冒险级",1)#(525, -4, 110, 32, $game_map.mpname.to_s,1)
end
if $game_variables[1] == 2
self.contents.draw_text(465, -4, 165, 32, $game_map.mpname.to_s + " - 勇士级",1)#(526, -3, 110, 32, $game_map.mpname.to_s,1)
end
if $game_variables[1] == 3
self.contents.draw_text(465, -4, 165, 32, $game_map.mpname.to_s + " - 王者级",1)#(526, -3, 110, 32, $game_map.mpname.to_s,1)
end
if $game_variables[1] == 4
self.contents.draw_text(465, -4, 165, 32, $game_map.mpname.to_s + " - 英雄级",1)#(526, -3, 110, 32, $game_map.mpname.to_s,1)
end
if $game_variables[1] == 5
self.contents.draw_text(465, -4, 165, 32, $game_map.mpname.to_s + " - 地狱级",1)#(526, -3, 110, 32, $game_map.mpname.to_s,1)
end
if $game_variables[1] == 6
self.contents.draw_text(465, -4, 165, 32, $game_map.mpname.to_s + " - 噩梦级",1)#(526, -3, 110, 32, $game_map.mpname.to_s,1)
end
if $game_variables[1] == 7
self.contents.draw_text(465, -4, 165, 32, $game_map.mpname.to_s + " - 灾难级",1)#(526, -3, 110, 32, $game_map.mpname.to_s,1)
end
if $game_variables[1] == 8
self.contents.draw_text(465, -4, 165, 32, $game_map.mpname.to_s + " - 毁灭级",1)#(526, -3, 110, 32, $game_map.mpname.to_s,1)
end
if $game_variables[1] == 9
self.contents.draw_text(465, -4, 165, 32, $game_map.mpname.to_s + " - 世界末日级",1)#(526, -3, 110, 32, $game_map.mpname.to_s,1)
end
if $game_variables[1] == 10
self.contents.draw_text(465, -4, 165, 32, $game_map.mpname.to_s + " - 修罗降世",1)#(526, -3, 110, 32, $game_map.mpname.to_s,1)
end
end
end
##########
# Mpname #
##########
class Mpname < Window_Base
def initialize
super($game_system.mpnm_x, -16, 656, 5480)#$game_system.mpnm_y, 656, 480)
self.contents = Bitmap.new(width, height)
self.opacity = 0
refresh
end
def refresh
self.contents.clear
draw_mpname(10,0)   
end
end
#############
# Scene_Map #
#############
class Scene_Map
alias mog24_main main
def main
@mpnm = Mpname.new
@mpnm.contents_opacity = $game_system.fdtm
if $game_switches[MOG::WM_SWITCH_VIS_DISABLE] == false
@mpnm.visible = true
else
@mpnm.visible = true
end  
mog24_main
@mpnm.dispose
end
alias mog24_update update
def update
mog24_update  
$game_system.mpnm_x = @mpnm.x
$game_system.mpnm_y = @mpnm.y
if $game_switches[MOG::WM_SWITCH_VIS_DISABLE] == true or $game_system.fdtm <= 0
@mpnm.visible = true  
else
@mpnm.visible = true
end
if MOG::MPNMPS == 0 or MOG::MPNMPS == 1
if @mpnm.x < 0
   @mpnm.x += 8
elsif @mpnm.x >= 0
   @mpnm.x = 0
end   
else
if @mpnm.x > 400
   @mpnm.x -= 8
elsif @mpnm.x <= 400
   @mpnm.x = 400
end     
end
@mpnm.contents_opacity = $game_system.fdtm
if MOG::MPNMFD == true
$game_system.fdtm -= 0
end
end
alias mog24_transfer_player transfer_player
def transfer_player
mog24_transfer_player
if MOG::MPNMPS == 0
$game_system.mpnm_x = 0
$game_system.mpnm_y = -16
elsif MOG::MPNMPS == 1
$game_system.mpnm_x = 0
$game_system.mpnm_y = -16
elsif MOG::MPNMPS == 2
$game_system.mpnm_x = 0
$game_system.mpnm_y = -16
else
$game_system.mpnm_x = 0
$game_system.mpnm_y = -16
end  
@mpnm.y = $game_system.mpnm_y
@mpnm.x = $game_system.mpnm_x
$game_system.fdtm = 255 + 40 * MOG::MPNMTM
@mpnm.refresh
end
end[/pre]
360截图20180818225748233.jpg
------落尽红樱君不见,轻绘梨花泪沾衣。~~~
梦石
0
星屑
39236
在线时间
11155 小时
注册时间
2009-3-15
回帖
4768
发表于 2018-8-18 23:00:14 | 显示全部楼层
地图?坐标?什么意思...容我水一下..
回复

使用道具 举报

梦石
0
星屑
2457
在线时间
912 小时
注册时间
2014-10-14
回帖
1155

开拓者

 楼主| 发表于 2018-8-19 00:01:08 | 显示全部楼层
soulsaga 发表于 2018-8-18 23:00
地图?坐标?什么意思...容我水一下..

如何把艾尔文防线 调到图片哪里 我找不到代码
------落尽红樱君不见,轻绘梨花泪沾衣。~~~
回复

使用道具 举报

梦石
0
星屑
74
在线时间
2 小时
注册时间
2018-8-6
回帖
15
发表于 2018-8-19 00:26:32 | 显示全部楼层
soulsaga 发表于 2018-8-18 23:00
地图?坐标?什么意思...容我水一下..

大概了解LZ的意思了,就是要把地图名称移到左上角有底图的那个位置
然而我觉得LZ发错脚本了???
@j296196585
LZ你自己看看地图名称是不是可以在编辑器里面直接输入不用改脚本
有些地图名称脚本是可以这样的
新人一枚,请多关照~
回复

使用道具 举报

梦石
0
星屑
9457
在线时间
1575 小时
注册时间
2016-4-8
回帖
198

开拓者

发表于 2018-8-19 21:47:21 | 显示全部楼层
容我说句,毒奶粉配XP人物,这比例真的好吗?
回复

使用道具 举报

梦石
0
星屑
2457
在线时间
912 小时
注册时间
2014-10-14
回帖
1155

开拓者

 楼主| 发表于 2018-8-22 01:50:08 | 显示全部楼层
结果到现在都没有人能看懂这个。。

点评

没有人能看懂, 显然是你自己描述不清楚想要实现的效果  发表于 2018-8-22 11:25
------落尽红樱君不见,轻绘梨花泪沾衣。~~~
回复

使用道具 举报

梦石
0
星屑
14720
在线时间
2175 小时
注册时间
2016-9-20
回帖
777
发表于 2018-8-26 17:44:14 | 显示全部楼层
~`TQEWU}C6H`0AO9)%%EY}7.png 楼主是要这个移过去,不过楼主你的腳本好像没有这个图片或文字,如图是图片就修改图片的X,Y軸,如果是文字就修改文字的X,Y軸

点评

谢谢,图片坐标 我知道,就文字找不到  发表于 2018-8-30 08:29
贴子只供参考我贴子内容有很多只是我自己标识的内容代指不是原来意思,偏向发贴当时的想法(后来回看贴发现有很多错误,会造成误导 ),如果想靠谱点应 找相关正确的文章   -- 2025/4/19
回复

使用道具 举报

梦石
0
星屑
39236
在线时间
11155 小时
注册时间
2009-3-15
回帖
4768
发表于 2018-8-26 19:26:08 | 显示全部楼层
本帖最后由 soulsaga 于 2018-8-26 19:31 编辑

211行
elsif @mpnm.x <= 400
   @mpnm.x = 400 <==========

点评

你头像很漂亮 ,可是 还是没效果。。我分辨率是1024X575  发表于 2018-8-30 08:33
回复

使用道具 举报

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

本版积分规则

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

在本版发帖返回顶部