Jump to content
Keuvyn T.

Condition in Map Function

Recommended Posts

Good afternoon guys from PKO, DEV::ok:

I'm trying to add this map 

 

 

However, I'm having trouble with the function:


Function Instance: AllDead (copy, waveid)
If (Instance.waveKill [copy] [waveid] == nil) then
Return 0
End
Local killed = Instance.waveKill [copy] [waveid]
If killed == table.getn (Instance.monsters [copy] [waveid]) then
Return 1
End
Return 0
End

 

The problem is that when all mobs are on the wave they are dead, the wave does not change. The ctrl.lua function reads as follows:

 

If (Instance: AllDead (copy, waveid) == 1) then

 

How can I fix it?

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...