Problem
» Siedler Map Source Forum » Siedler DEdK Script Forum » Problem
Seiten: 1
Qba331PL
|
#1 17.03.2018 12:16 Beiträge: 102 |
Problem
Hi
I used this function in my script. It checks when "armyOne" is dead and then create NPC Dario.
function NieZyje() if not armyOne.created then armyOne.created = not IsDead(armyOne) return false end if IsDead(armyOne) then CreateNpcDario1() return true end end
After talking with Dario next function starts
MapEditor_SetupAI(3, 3, 2800, 2, "Fala1", 3, 0) SetupPlayerAi( 3, {constructing = true, extracting = 0, repairing = true, serfLimit = 8} )
And everything is Ok but when I edit this SetupPlayerAi (for example when I change last 3 to 2 or when I make another SetupPlayerAi for player 3 later), function CreateNpcDario1 doesn't work. I don't really know why It happens. I need your help.
Best regards,
Qba331PL
Der_Deutsche
|
#2 17.03.2018 12:24 Beiträge: 349 |
Hey, did you testet it with the "LUA DEBUGGER"?
There find many Errors Easy
MfG
Leo
____________________
Nachbau von Siedler 5 Lobbys "Ubi.Com"
Updatelösungen Siedler 5 Patch 1.06
Creators Update Lösung Windows 10
Siedler 5
Qba331PL
|
#3 17.03.2018 12:50 Beiträge: 102 |
Zitat von Der_Deutsche:
Hey, did you testet it with the "LUA DEBUGGER"?
There find many Errors Easy
MfG
Leo
No, I didn't. I will try it.
Qba331PL
|
#4 17.03.2018 13:00 Beiträge: 102 |
Problem Solved?
Hmm, I chenged some functions, started Debugger and now It works, I think. If problem appear again, I will ask you. Thanks
Seiten: 1