Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Boss Spawn


avengingevi1l
 Share

Recommended Posts

> Or if you are using EO 3.0, you can easily do this with event system (idk if in 2.3 is NPC spawn option)

Or he could use a proper supported engine.

1,000th post ~ woo ![^_^](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/happy.png)
Link to comment
Share on other sites

Well I'm not gonna tell you how, but I'll give you the process I'd start out with…

- Add a variable to the bottom of the PlayerRec to keep track of your player's kills like (PreBossNPCKills) and even one for resources.like (PreBossResourceKills)

NOW WE HAVE THE VARIABLES WE NEED TO CHECK

- So now we make a new sub. Name is something catchy like "Sub CheckBossSpawn()" ![:P](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/tongue.png)

- You might want to know things for this sub like npc num/resource num and the player's index.

- To identify which boss to spawn and what kills to track, I would use the npcnum as the base such as…

```

Public Sub CheckBossSpawn(ByVal Index as Long, ByVal NPCNum as Long, ByVal ResourceNum)

Select Case NPCNum

Case 1 'Needle stick lol idfk

If GetPlayerMap(Index) = THEMAPYOUWANT Then

If we have the right NPC(s) to use Then

PreBossNPCKills = PreBossNPCKills + 1

End If

Check the kills now, if they're right, spawn the boss

End If

End Select

Select Case ResourceNum

Case 1 'Big Ass Tree

If GetPlayerMap(Index) = THEMAPYOUWANT Then

If we have the right Resource to use Then

PreBossResourceKills = PreBossResourceKills + 1

End If

Check the kills now, if they're right, spawn the boss

End If

End Select

```
-Now call the sub in both the NPC death and the Resource Death…

That's how I would do it basically. I hope that helps.
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...