cgmsv引擎论坛

 找回密码
 注册/Sign up
搜索
查看: 498|回复: 1

gmsv Question !!

[复制链接]

Rank: 1

发表于 2023-7-11 00:15:39 | 显示全部楼层 |阅读模式
function CreateDailyNpc(Image, Name, MapType, MapID, PosX, PosY, Dir)
        local DailyScriptNpcIndex = NL.CreateNpc("./lua/System/BaseModule/Base.lua", "Myinit");
        Char.SetData( DailyScriptNpcIndex, %对象_形象%, Image);
        Char.SetData( DailyScriptNpcIndex, %对象_原形%, Image);
        Char.SetData( DailyScriptNpcIndex, %对象_地图类型%, MapType);
        ↑-- unexpected symbol near <eof>) ?_? 不承认 ㅜㅜ
        Char.SetData( DailyScriptNpcIndex, %对象_地图%, MapID);
        Char.SetData( DailyScriptNpcIndex, %对象_X%, PosX);

        Char.SetData( DailyScriptNpcIndex, %对象_Y%, PosY);
        Char.SetData( DailyScriptNpcIndex, %对象_方向%, Dir);
        Char.SetData( DailyScriptNpcIndex, %对象_原名%, Name);
        Char.SetData( DailyScriptNpcIndex, %对象_名色%, NameColor);
        tbl_LuaNpcIndex = tbl_LuaNpcIndex or {}
        tbl_LuaNpcIndex["DailyNpc"] = DailyScriptNpcIndex
        Char.SetTalkedEvent(nil, "DailyNpc__Talked", DailyScriptNpcIndex)
        Char.SetWindowTalkedEvent(nil, "DailyNpc__WindowTalked", DailyScriptNpcIndex)
        Char.SetLoopEvent(nil, "DailyNpc_LoopEvent", DailyScriptNpcIndex,            

plzplz
plzplzplzplzplzplzplzplzplzplzplzplzplzplzplzplzplzplzplzplzplzplzplzplzplzplzplzplzplzplz

Rank: 1

发表于 2023-8-6 22:24:20 | 显示全部楼层
本帖最后由 ahsin 于 2023-8-6 22:27 编辑

you might will not set npc stnad at a dungeon
so try
Char.SetData(DailyScriptNpcIndex,%对象_MAP%,0)

or
Char.SetData(DailyScriptNpcIndex,%对象_MAP%,MapType)



i suggest del all type space from your code
您需要登录后才可以回帖 登录 | 注册/Sign up

本版积分规则

手机版|cgmsv引擎论坛

GMT+8, 2024-11-1 07:59 , Processed in 0.247514 second(s), 13 queries , Gzip On, MemCached On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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