avengingevi1l Posted April 11, 2013 Author Share Posted April 11, 2013 So i want to make a boss spawn when certain amount of the mobs has been killed or certain amout of the resource has been taken how would i go about doing this? any tuts on this? Link to comment Share on other sites More sharing options...
Matt Posted April 11, 2013 Share Posted April 11, 2013 There isn't, but you could take a look at how NPC's spawn, and work from there. Link to comment Share on other sites More sharing options...
tslusny Posted April 11, 2013 Share Posted April 11, 2013 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) Link to comment Share on other sites More sharing options...
Matt Posted April 12, 2013 Share Posted April 12, 2013 > 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 More sharing options...
escfoe2 Posted April 12, 2013 Share Posted April 12, 2013 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 SelectSelect 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now