Devedev Posted August 12, 2010 Share Posted August 12, 2010 I need to figure out a way to script or otherwise make it where upon killing all the enemies in a specific area, the quest advances a stage(in my case, to complete) but when I looked at the main quest for clearing out project purity, all I got was a headache. Can anyone help? Link to comment Share on other sites More sharing options...
neomonkeus Posted August 12, 2010 Share Posted August 12, 2010 You can do this easily a number of ways.Heres a basic idea. For each npc you have attach a script to them. Add in a Begin ondeath section. Here you can increment/increase a stored value in your main script, lets call it numkilled. This would initially be set to 0 in the main quest script. Now as you kill people that goes up. Now for the stage you want to progress to say you are at stage 5, in the conditions you will need to check numkill = totalenemies/setnumberof enemies. then setstage 6. Hope that will at least point you in the right direction, there is alot of pseudocode as im not at my own computer to check stuff exactly so you will have to look up the specifics yourself, but its more fun that way :P Hopefully you get the logic, track the number kill -> reach a threshold-> change the quest stage Link to comment Share on other sites More sharing options...
Devedev Posted August 12, 2010 Author Share Posted August 12, 2010 Thanks, Abom. That's actually really helpful. Link to comment Share on other sites More sharing options...
neomonkeus Posted August 12, 2010 Share Posted August 12, 2010 Please there is no need for formalities, call me monkey :P Tell me more about your mod Link to comment Share on other sites More sharing options...
Devedev Posted August 12, 2010 Author Share Posted August 12, 2010 Well, this specific mod is my first mod like... Ever. So it started as a basic Vault, to assess the ease of the program. Upon basic construction, however, I wanted more of my little Vault so I uploaded to the Nexus for ideas. Hence, I'm well on my way to completing the main quest(the reason for the initial post here) and I've already completed several NPCs with gratuitous help from pkleiss and Quetz. The premace? An abandoned vault happened upon by a band of wanderers looking for shelter. They get in, they fix up a few things, their mechanic alters a few more; and they realize they're in dire need of some leadership. So, unbeknownst to the people, they send scouts to scope out possible leaders. This is where the player comes in; receiving a message about it (or randomly happening on the place, I've accounted for both occurrences.) There's some mystery, a little action, and(hopefully) a lot of fun. Edit: Link to mod for anyone interested.http://fallout3nexus.com/downloads/file.php?id=13705 Link to comment Share on other sites More sharing options...
Recommended Posts