请选择 进入手机版 | 继续访问电脑版

站内搜索

搜索
热搜: 活动 交友 discuz

iFAction 世界需要你的想象力!

[官方] AVG背包与商店MOD

 

20

主题

209

帖子

1361

积分

管理员

Rank: 22Rank: 22Rank: 22Rank: 22Rank: 22Rank: 22

积分
1361

iFAction官方导师

发表于 2020-9-14 14:37:03 | 显示全部楼层 |阅读模式
AVG背包MOD 使用方法介绍
MOD名称/ NameAVG背包与商店MOD /AVG Inventory and Shop
MOD适用平台/ PlatformAVG
MOD是否开源/ Whether open source否/ No
MOD是否存在触发器/ Trigger command是/ Yes
MOD是否存在外接DLL/ External DLL否/ No


使用说明 / Instructions

1、指令概览 / Preview
中文English


按照表格内容进行填写。

Fill in the form to complete the item setting
Fill in the common trigger ID to enable the item to execute the common trigger after use it

2、使用 / Use

指令 / command中文English
增减物品
Change Items



填写表格中的物品ID和增减数量来增减物品



Fill in the item ID(in table) and number to increase or decrease items
变量增减物品
Change Items(Variable)




使用变量来指定物品ID和增减数量

Use variables to specify item ID and increase or decrease number
获得物品数量/Get Item Number



填写物品ID,将该物品数量绑定到一个变量上


Fill in the item ID (find it in table)and bind the item number to a variable
呼叫商店/Call Shop

填写物品ID,并用竖线分割来设置商品

Fill in the item ID (find it in table)and use '|' to set the item of shop


3、视频教学(中文)https://www.bilibili.com/video/BV1Qa4y1L7V3




本帖子中包含更多资源

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

x

8

主题

31

帖子

227

积分

iF平原

Rank: 4

积分
227
发表于 2020-9-14 23:19:43 | 显示全部楼层
这是要做密室解谜类啊,不过商店怎么用要好好想想~

0

主题

3

帖子

28

积分

iF元素粒

Rank: 2

积分
28
发表于 2020-10-11 13:57:33 | 显示全部楼层
只是讲了作用,并没有结合游戏中,譬如剧情获得物品后怎么放进背包。然后使用,这种没有案例

2

主题

39

帖子

1298

积分

iF城镇

Rank: 6Rank: 6

积分
1298
发表于 2020-11-26 22:15:05 | 显示全部楼层
请教下,背包格子是脚本图片,如何更换图片?

点评

是要修改背包格子的底图图片吗?在UI编辑器里直接打开界面找到背包格子的控件图就可以修改了,或者在Graphic-system文件夹里找到Inventory文件夹,直接修改格子的图也可以  详情 回复 发表于 2020-12-1 19:48

20

主题

209

帖子

1361

积分

管理员

Rank: 22Rank: 22Rank: 22Rank: 22Rank: 22Rank: 22

积分
1361

iFAction官方导师

 楼主| 发表于 2020-12-1 19:48:19 | 显示全部楼层
kami 发表于 2020-11-26 22:15
请教下,背包格子是脚本图片,如何更换图片?

是要修改背包格子的底图图片吗?在UI编辑器里直接打开界面找到背包格子的控件图就可以修改了,或者在Graphic-system文件夹里找到Inventory文件夹,直接修改格子的图也可以

2

主题

39

帖子

1298

积分

iF城镇

Rank: 6Rank: 6

积分
1298
发表于 2020-12-2 13:48:18 | 显示全部楼层
moon 发表于 2020-12-1 19:48
是要修改背包格子的底图图片吗?在UI编辑器里直接打开界面找到背包格子的控件图就可以修改了,或者在Grap ...

啊,可能是我搞错了,那个脚本图片应该是读取物品的图片。感谢回复!

18

主题

63

帖子

940

积分

iF村庄

Rank: 5Rank: 5

积分
940
发表于 2021-5-23 01:47:44 | 显示全部楼层
本帖最后由 Tarkus1971 于 2021-5-23 01:52 编辑

Hello Moon,

Will there be any possibility of an English Quick Tutorial on the Inventory mode of this mod, it will be so good to use this as it opens up so many puzzle possibilities in AVG Mode.
Adding images for the inventory items, how does that work?

Thank you

1

主题

14

帖子

121

积分

iF基础方块

Rank: 3Rank: 3

积分
121
发表于 2022-8-16 10:17:39 | 显示全部楼层
您好,使用这个mod后,点击商店时,会出现这个报错。

错误信息:值不能为 null。
参数名: image

   在 System.Drawing.Graphics.DrawImage(Image image, RectangleF destRect, RectangleF srcRect, GraphicsUnit srcUnit)
   在 iFAction.SelfUI.ctrl.USprite.getAutoPic(DUIAutoPic autopic)
   在 iFAction.SelfUI.CUIUI.initAutoPic(DUIAutoPic aPic, ZoomableCanvas zc, List`1 flist, Boolean isDown)
   在 iFAction.SelfUI.CUIUI.ctrlInit(List`1 list, List`1 ccs, ZoomableCanvas zc, Boolean isDown)
   在 iFAction.SelfUI.CUIUI.initItem(DUIMain dui)
   在 iFAction.SelfUI.CUIUI.list_SelectionChanged(Object sender, SelectionChangedEventArgs e)
   在 System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   在 System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   在 System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   在 System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   在 System.Windows.Controls.ListBox.OnSelectionChanged(SelectionChangedEventArgs e)
   在 System.Windows.Controls.Primitives.Selector.SelectionChanger.End()
   在 System.Windows.Controls.Primitives.Selector.SetSelectedHelper(Object item, FrameworkElement UI, Boolean selected)
   在 System.Windows.Controls.Primitives.Selector.NotifyIsSelectedChanged(FrameworkElement container, Boolean selected, RoutedEventArgs e)
   在 System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   在 System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   在 System.Windows.Controls.ListBoxItem.OnSelected(RoutedEventArgs e)
   在 System.Windows.Controls.ListBoxItem.OnIsSelectedChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
   在 System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
   在 System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
   在 System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)
   在 System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType)
   在 System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType, Boolean isInternal)
   在 System.Windows.DependencyObject.SetCurrentValueInternal(DependencyProperty dp, Object value)
   在 System.Windows.Controls.ListBox.NotifyListItemClicked(ListBoxItem item, MouseButton mouseButton)
   在 System.Windows.Controls.ListBoxItem.HandleMouseButtonDown(MouseButton mouseButton)
   在 System.Windows.Controls.ListBoxItem.OnMouseLeftButtonDown(MouseButtonEventArgs e)
   在 System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   在 System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   在 System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   在 System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
   在 System.Windows.UIElement.OnMouseDownThunk(Object sender, MouseButtonEventArgs e)
   在 System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   在 System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   在 System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   在 System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   在 System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
   在 System.Windows.Input.InputManager.ProcessStagingArea()
   在 System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
   在 System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
   在 System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
   在 System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   在 System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   在 MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   在 MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
   在 System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   在 System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

1

主题

14

帖子

121

积分

iF基础方块

Rank: 3Rank: 3

积分
121
发表于 2022-8-16 10:22:28 | 显示全部楼层
你好,打开背包界面时,会出现这个报错。请问如何解决哈!

JS - ERROR : TypeError: RV.NowCanvas.message.isMsgFadeOut is not a function
    at WInventory.initAfter (Script Document [5]:208:34) ->         if(!RV.NowCanvas.message.isMsgFadeOut()){
    at <anonymous>:1:5
    at LUI.initSelfUI (Script Document [3]:14:167)
    at DUI.CacheUIRes (Script Document [3]:131:112)
    at LUI.initSelfUIRes (Script Document [3]:10:198)
    at new LUI (Script Document [3]:48:336)
    at LUI.showChildfUI (Script Document [3]:6:324)
    at init (Script Document [2]:2629:21)
    at makerEvent (Script Document [2]:2813:54)
    at poaAdd (Script Document [2]:2800:12)
    at IMain.update (Script Document [2]:2722:20)
    at LUI.updateUI (Script Document [3]:25:29)
    at SMain.update (Script Document [2]:6686:45)
    at mainUpdate (Script Document:1638:20)
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

联系我们
QQ群:977585123
iFAction下载
Windows客户端
反馈
意见建议
iFAction

iFAction

京ICP备15053274号-1

Powered by Discuz! X3.4 © 2001-2013 Comsenz Inc.