查看: 2150|回复: 5

[已经解决] 怎么物品说明能容纳很多字且能翻页?

[复制链接]
梦石
0
星屑
50
在线时间
36 小时
注册时间
2012-4-1
回帖
19
发表于 2012-11-16 20:07:01 | 显示全部楼层 |阅读模式

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

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

×
求解/w\   这货想到线索类道具直接显示一整篇文章而不是使用后显示文章

八宝粥的基叔

梦石
0
星屑
4957
在线时间
5234 小时
注册时间
2009-4-29
回帖
14054

贵宾

发表于 2012-11-16 22:06:10 | 显示全部楼层
物品说明就那么一行,要显示很多文字应该有困难吧。
要不就必须做个新的显示窗口,其实也可以考虑使用详尽帮助脚本。
物品默认的帮助文字是有字数限制的,如果文字很多酒必须考虑用上注释栏。

评分

参与人数 2星屑 +80 收起 理由
咕噜 + 50 我很赞同
八宝粥先生 + 30

查看全部评分

《逝去的回忆3:四叶草之梦》真情发布,欢迎点击图片下载试玩喵。

《逝去的回忆3》的讨论群:
一群:192885514
二群:200460747
回复

使用道具 举报

梦石
0
星屑
50
在线时间
36 小时
注册时间
2012-4-1
回帖
19
 楼主| 发表于 2012-11-17 08:36:51 | 显示全部楼层
protosssonny 发表于 2012-11-16 22:06
物品说明就那么一行,要显示很多文字应该有困难吧。
要不就必须做个新的显示窗口,其实也可以考虑使用详尽 ...

那怎么添加新的窗口0w0?

评分

参与人数 1星屑 +2 收起 理由
怪蜀黍 + 2 这也许比较难表达

查看全部评分

回复

使用道具 举报

伴侣:北岛谜烟

发表于 2012-11-17 12:21:04 | 显示全部楼层
hoyinlin96 发表于 2012-11-17 08:36
那怎么添加新的窗口0w0?

如果是我我会浪费公共事件去弄显示文章什么的

评分

参与人数 2星屑 +6 收起 理由
satgo1546 + 3 我很赞同
Password + 3 我很赞同……

查看全部评分

本人收不到提醒(点评|回复|@人),总之有事情到空间留言一起普通普通
回复

使用道具 举报

梦石
0
星屑
663
在线时间
750 小时
注册时间
2012-11-10
回帖
903
发表于 2012-11-30 20:25:07 | 显示全部楼层
做个事件,把文字做成图片,使用这个物品之后显示图片。

评分

参与人数 1星屑 +50 收起 理由
咕噜 + 50 我很赞同

查看全部评分

有本事就来阻止我啊,主体单元『天照』!
回复

使用道具 举报

梦石
0
星屑
97
在线时间
2462 小时
注册时间
2011-12-18
回帖
1419
发表于 2012-11-30 22:35:51 | 显示全部楼层
结城照美 发表于 2012-11-30 20:25
做个事件,把文字做成图片,使用这个物品之后显示图片。

物品说明是在光标移动到该物品时自动显示的对于该物品的描述,而非使用之后才显示,其实如果字数不是非常多,滚动帮助窗口脚本就可以让说明窗口显示更多的字数了,当然用详尽帮助更好一点。
附送滚动帮助窗口脚本一枚:
  1. #===============================================================================
  2. # Scrolling Window_Help
  3. #-------------------------------------------------------------------------------
  4. # Version: 1.1a
  5. # Author: Cozziekuns (rmrk)
  6. # Last Date Updated: 12/6/2011
  7. #===============================================================================
  8. # Description:
  9. #-------------------------------------------------------------------------------
  10. # This script allows you to auto scroll the text in Window_Help if it becomes
  11. # too long for the window to hold. Originally, RPG Maker would auto resize the
  12. # text to make it thin and aesthetically displeasing to the eye.
  13. #===============================================================================
  14. # Updates
  15. # ------------------------------------------------------------------------------
  16. # o 12/06/2011 - Started Script
  17. # o 09/07/2011 - Updated script with a bugfix.
  18. #===============================================================================
  19. # Instructions
  20. # ------------------------------------------------------------------------------
  21. # Copy and paste this script above ? Main Process but below ? Materials, and
  22. # edit the modules to your liking.
  23. #===============================================================================

  24. module COZZIEKUNS
  25.   module SCROLLING_WINDOW_HELP
  26.     SCROLL_SPEED = 1 # The higher the scroll speed, the faster the text will scroll.
  27.     SCROLL_REFRESH_RATE = 1 # The lower the refresh rate, the faster the text will scroll.
  28.     SCROLL_INITIAL_WAIT = 60 # The amount of time before the text starts to scroll (in milliseconds)
  29.   end
  30. end

  31. #==============================================================================
  32. # ** Window_Help
  33. #------------------------------------------------------------------------------
  34. #  This window shows skill and item explanations along with actor status.
  35. #==============================================================================

  36. class Window_Help < Window_Base
  37.   #--------------------------------------------------------------------------
  38.   # * Object Initialization
  39.   #--------------------------------------------------------------------------
  40.   alias coz_scrolltxt_wh_14199_initialize initialize
  41.   def initialize(*args)
  42.     coz_scrolltxt_wh_14199_initialize
  43.     @scroll = false
  44.     @frames = 0
  45.   end
  46.   #--------------------------------------------------------------------------
  47.   # * Set Text
  48.   #  text  : character string displayed in window
  49.   #  align : alignment (0..flush left, 1..center, 2..flush right)
  50.   #--------------------------------------------------------------------------
  51.   def set_text(text, align = 0)
  52.     if text != @text or align != @align
  53.       text_width = contents.text_size(text).width + 40 > self.contents.width - 40
  54.       text_width = false if align != 0
  55.       if text_width
  56.         self.contents = Bitmap.new(self.width + contents.text_size(text).width + 8, self.height - 32)
  57.         @scroll = true
  58.       else
  59.         self.contents = Bitmap.new(self.width - 32, self.height - 32)
  60.         @scroll = false
  61.       end
  62.       self.ox = 0
  63.       self.contents.clear
  64.       self.contents.font.color = normal_color
  65.       self.contents.draw_text(4, 0, text_width ? self.contents.text_size(text).width : self.width - 40, WLH, text, align)
  66.       @text = text
  67.       @align = align
  68.       @frames = 0
  69.     end
  70.   end
  71.   #--------------------------------------------------------------------------
  72.   # * Frame Update
  73.   #--------------------------------------------------------------------------
  74.   def update
  75.     @frames += 1
  76.     f_refresh = COZZIEKUNS::SCROLLING_WINDOW_HELP::SCROLL_REFRESH_RATE
  77.     f_wait = COZZIEKUNS::SCROLLING_WINDOW_HELP::SCROLL_INITIAL_WAIT
  78.     speed = COZZIEKUNS::SCROLLING_WINDOW_HELP::SCROLL_SPEED
  79.     if @scroll == true
  80.       if (Graphics.frame_count % f_refresh == 0) and @frames >= f_wait
  81.         self.ox += speed
  82.       end
  83.       if self.ox >= self.contents.text_size(@text).width
  84.         self.ox = -self.contents.text_size(@text).width / 2
  85.       end
  86.     end
  87.   end
  88. end
复制代码

评分

参与人数 1星屑 +80 收起 理由
咕噜 + 80 认可答案

查看全部评分

这是一个深不见底的坑,这是一个广袤无边的坑,我才刚刚放上了一抔泥土……

《六道·陈国篇》开坑了……↓点我
回复

使用道具 举报

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

本版积分规则

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

在本版发帖返回顶部