Results 1 to 6 of 6

Thread: Infinite Hero invasions

  
  1. #1

    Default Infinite Hero invasions

    Ive tryed to do this for an hour,yet I got 2 results,infinite amount of heros all coming at once,or 2 parties and then nothing...

    I can try to do it on by on with the when time is trigger,but it would take hours to finishe.. searched whole forum by the way.. nothing..

    Pleas help me?

  2. #2

    Default Re: Infinite Hero invasions

    44 views and not even one wiseman to answer me?...

  3. #3
    Your Majesty Hapuga's Avatar
    Join Date
    Aug 2009
    Location
    Austin, USA
    Posts
    1,444

    Default Re: Infinite Hero invasions

    known issue, avid by using doubly-linked conditions (flip-flop, if one fails, another triggers).
    http://img192.imageshack.us/img192/6659/c2warlocki.gif

  4. #4

    Default Re: Infinite Hero invasions

    Um WHAT? oO (like trying with timers and then with flags,and repeat? dont get it...)

  5. #5

    Default Re: Infinite Hero invasions

    Quote Originally Posted by Keeper_Infernal View Post
    Ive tryed to do this for an hour,yet I got 2 results,infinite amount of heros all coming at once,or 2 parties and then nothing...

    I can try to do it on by on with the when time is trigger,but it would take hours to finishe.. searched whole forum by the way.. nothing..

    Pleas help me?
    I read this from the manual and it explains that if you don't do certain steps then that infinite number of heroe parties appear at once:

    Replacing the Patrol Party

    One of the DK2 Editor's most endearing features is that you can hang triggers off creatures or Hero Parties on the Script Tree. This will allow you detect when the patrolling Heroes have been defeated and send a new Hero Party to replace them. After all, everybody knows that Heroes are suckers for punishment.

    Right-click on the text Hero Party 2 on the Script Tree,
    Choose Add Trigger,
    Choose the Party tab,
    Set the trigger to read:

    When Members Incapacitated equal to n

    Where n is the number of creatures in the Hero Party.
    Hang an action off this trigger which reads:

    Flag 3 = 1

    Create another action from this trigger,
    Choose the Timer tab,
    Accept the default setting Initialise Timer 1,

    So when the Hero Party is defeated, Flag 3 will be set to 1 and Timer 1 will start ticking.

    For the replacement party, you will create a second instance of the original Hero Party. All the triggers and actions which hung off the Hero Party will be cancelled, and created afresh on the new Hero Party. This will allow you to set up a repeating script which automatically generates a replacement patrol force every time the old one is destroyed.

    The script for this section is a bit complicated – go through the instructions step by step to make sure you've created the script correctly. Note that you need to hang the triggers off one another in series, so that only when the conditions for all the triggers are met will the actions happen.

    Create the following series of triggers and actions hanging off the level's name on the Script Tree:

    Level's Name
    T: When Flag 3 = 1 (when Hero Party 2 destroyed)
    T: When Timer 1 >= 120 (and 2 minutes have passed since it happened)
    T: When Flag 1 = 0 (and if the Hero Gate hasn't been collapsed)
    A: Create Hero Party 2 at Action Point 1
    A: Flag 3 = 0

    (Key: T: means it's a Trigger, A: means it's an Action)
    Right-click on the trigger When Flag 3 = 1,
    Choose Edit Trigger Properties from the popup menu,
    Choose the Repeat tab,
    Set the trigger to repeat 30 times,
    Repeat for the other two triggers in the series.

    By setting the three triggers to repeat 30 times, you have ensured that the Hero Party will be replaced 30 times. You could set them to repeat Always, but Always triggers should be used with great caution because it can lead to the creation of infinite numbers of creatures, at which point the game will crawl to a halt and probably crash.

    Note: if Flag 3 were not reset to 0, then 30 instances of Hero Party 2 would be created in quick succession, rather than one being created when the previous instance is defeated.

  6. #6

    Default Re: Infinite Hero invasions

    Heya,

    for me following works with Hero Party Invasions:

    On the Hero Party:
    When Created
    Flag 1 = 1

    General Trigger:
    When Flag 1 = 1
    Flag 1 = 0
    Initialize Timer 1

    General Trigger:
    When Timer 1 = 360
    Create Hero Party 1 at AP 1

    If you want more Hero Parties, then use Timer2, Flag2 and there you go.

    Important (without it will not work):
    Right-Click on every single trigger you created (on ALL 3)
    Go to Tab Repeat
    Select "Always"
    Press OK
    Last edited by paku901; June 22nd, 2014 at 11:03.

Similar Threads

  1. Hero campaign :D
    By emperorjay in forum DK2 Mapmaking
    Replies: 16
    Last Post: June 11th, 2011, 15:10
  2. Steal hero
    By ventris in forum Dungeon Keeper 1
    Replies: 1
    Last Post: September 3rd, 2010, 13:09
  3. Hero Portals
    By Altarim in forum DK2 Mapmaking
    Replies: 9
    Last Post: June 18th, 2010, 03:23

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •