PDA

View Full Version : How to win a game by converting an objective enemy



bloodprince82
September 2nd, 2013, 03:17
Anyone know how to write a script in DK2 editor on how i can convert an enemy and when they're converted, horny comes to pick up the portal gem? I have the gem on the map and scripted to how i thought was right.

any help is appreciated

Skarok
September 2nd, 2013, 13:27
Well, the first part is pretty easy. Simply add a Trigger to the creature 'When Converted' and then set some Flag to 1. Then add to the Player's script tree "If Flag 1 = 1", then an Action "Win Game". As for the Portal Gem, I have no idea if it even works if you just place it on the map, as far as I know it'd just disappear once the game starts, but maybe that's different in the newer versions. If it doesn't work, simply add the Portalgem to something like a Dwarf and change the terrain he stands on on to Lava once your special creature is converted. That should do the trick.