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

Project1

 找回密码
 注册会员
搜索

求猫大做个\@[]系的“售后”扩展行吗?

查看数: 2982 | 评论数: 1 | 收藏 0
关灯 | 提示:支持键盘翻页<-左 右->
    组图打开中,请稍候......
发布时间: 2021-1-3 14:21

正文摘要:

本帖最后由 89444640 于 2021-1-3 14:27 编辑 窗口增强-对话窗口\@[n] 系列,控制符 \@[n]   在位置n显示对话框,n的含义如下: #             负数(战斗内 ...

回复

SailCat 发表于 2021-1-4 18:59:09
Line 390-408
RUBY 代码复制
  1. #--------------------------------------------------------------------------
  2.   # ● 跟随角色
  3.   #--------------------------------------------------------------------------
  4.   def follow(ensure_height)
  5.     x = @character.screen_x
  6.     y = @character.screen_y
  7.     if $game_temp.in_battle
  8.       height = RPG::Cache.battler(@character.battler_name, 0).height
  9.     else
  10.       height = RPG::Cache.character(@character.character_name, 0).height >> 2
  11.       height = 48 if height == 0
  12.     end
  13.     under = y - height - 12 < ensure_height
  14.     if @under != under
  15.       @under = under
  16.       load
  17.     end
  18.     self.x = x
  19.     self.y = @under ? y : y - height
  20.   end


如果\@指向的是一个空事件,会有48的默认高度

评分

参与人数 2星屑 +75 +1 收起 理由
RyanBern + 75 赞售后
89444640 + 1 谢谢猫大~

查看全部评分

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

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

GMT+8, 2025-6-10 00:42

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

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