Page 1 of 2 1 2 LastLast
Results 1 to 10 of 12

Thread: Testmap: ally PLAYER_GOOD ally destroyed after Heroes Heart is!

  
  1. #1

    Exclamation Testmap: ally PLAYER_GOOD ally destroyed after Heroes Heart is!

    Yesterday TheTreeBeard would upload a video to Youtube, on him playing Reaver Verruckt.
    Unfortunately, the map ended anti-climactic, because the Heroes would take down the Green Keeper, although it was allied with it.





    Udo Krawallo noted, that this maybe due to the heroes heart being destroyed.

    And this is correct. When the white heart is destroyed, the script for PLAYER_GOOD will end to be implemented, on the level.
    This means, that PLAYER_GOOD is no longer allied with the Green Keeper in that map, PLAYER2, although the Green Keeper is still allied with the heroes, white!
    And therefor, the heroes will destroy the green keeper, while the green keeper can not defend itself, because it is allied to the attacker.

    I didn't know this before, neither did Duke Ragereaver, and I experienced the same problem some weeks ago when I played this map, that I made 20 years ago.

    Any ways, in order to prove that this is the case, I made a test map, where the ally script is destroyed, after the white heart is destroyed, and one can not defend against it.
    ally_test.zip
    In this map, you are allied with the Heroes, but than Green destroys the White Dungeon Heart, and White will attack you, while you can't defend against it.

    If any one can win this map, please let us know!

    I may want to remark, that all PLAYER_GOOD scripts work fine, without it having a Dungeon Heart. This only happens when white was given a Dungeon Heart, that gets destroyed.

    Click image for larger version. 

Name:	ally_test.gif 
Views:	20 
Size:	38.2 KB 
ID:	2138

  2. #2

    Default Re: Testmap: ally PLAYER_GOOD ally destroyed after Heroes Heart is!

    I talked to duke about it when tree first played it, and he was indeed not aware. You can change the map to set the alliance again after good heart is destroyed.

  3. #3
    Troll
    Join Date
    Jul 2016
    Location
    United Kingdom
    Posts
    257

    Default Re: Testmap: ally PLAYER_GOOD ally destroyed after Heroes Heart is!

    Quote Originally Posted by 0etelaer View Post
    Any ways, in order to prove that this is the case, I made a test map, where the ally script is destroyed, after the white heart is destroyed, and one can not defend against it.
    ally_test.zip
    In this map, you are allied with the Heroes, but than Green destroys the White Dungeon Heart, and White will attack you, while you can't defend against it.

    If any one can win this map, please let us know!

    I may want to remark, that all PLAYER_GOOD scripts work fine, without it having a Dungeon Heart. This only happens when white was given a Dungeon Heart, that gets destroyed.

    Click image for larger version. 

Name:	ally_test.gif 
Views:	20 
Size:	38.2 KB 
ID:	2138
    I just tried the test map, and the heroes and my creatures attacked each other as soon as the Hero Heart was destroyed. My creatures won easily.

  4. #4

    Default Re: Testmap: ally PLAYER_GOOD ally destroyed after Heroes Heart is!

    Yes, and if you add this to the script:

    Code:
    IF(PLAYER_GOOD,DUNGEON_DESTROYED == 1)
    	ALLY_PLAYERS(PLAYER_GOOD,PLAYER0)
    ENDIF
    The green units will remain unharmed.

  5. #5

    Default Re: Testmap: ally PLAYER_GOOD ally destroyed after Heroes Heart is!

    I had the same problem here

    https://keeperklan.com/threads/7171-Dunkeons-3

    This

    IF (PLAYER_GOOD, DUNGEON_DESTROYED == 1)
    ALLY_PLAYERS (PLAYER1, PLAYER_GOOD, 1)
    ALLY_PLAYERS (PLAYER2, PLAYER_GOOD, 1)
    ALLY_PLAYERS (PLAYER3, PLAYER_GOOD, 1)
    ENDIF

    Didn't fix the problem.

  6. #6
    Imp jieletian's Avatar
    Join Date
    Nov 2020
    Location
    China
    Posts
    18

    Default Re: Testmap: ally PLAYER_GOOD ally destroyed after Heroes Heart is!

    I also experienced the exactly same problem when playing this map. Seems to be a kind of game mechanic.

  7. #7
    Troll
    Join Date
    Jul 2016
    Location
    United Kingdom
    Posts
    257

    Default Re: Testmap: ally PLAYER_GOOD ally destroyed after Heroes Heart is!

    I've just tried the test map again on the latest build, and the problem still didn't happen. What am I doing right that you lot are doing wrong?

    Edit: Am I misunderstanding the problem? Is the alliance supposed to be broken when one of the player's hearts is destroyed?
    Last edited by AdamP; July 17th, 2021 at 17:40.

  8. #8

    Default Re: Testmap: ally PLAYER_GOOD ally destroyed after Heroes Heart is!

    Quote Originally Posted by Endrix View Post
    I had the same problem here

    https://keeperklan.com/threads/7171-Dunkeons-3

    This

    IF (PLAYER_GOOD, DUNGEON_DESTROYED == 1)
    ALLY_PLAYERS (PLAYER1, PLAYER_GOOD, 1)
    ALLY_PLAYERS (PLAYER2, PLAYER_GOOD, 1)
    ALLY_PLAYERS (PLAYER3, PLAYER_GOOD, 1)
    ENDIF

    Didn't fix the problem.
    Are you sure it didn't fix the problem? If so, please share the map as you tested it.

  9. #9

    Default Re: Testmap: ally PLAYER_GOOD ally destroyed after Heroes Heart is!

    In my map version Dunkeons 3 V. 1.1.zip is this.
    The user EadWard wrote he was playing this version and the problem occurred. I'm not sure, but I think I tested it afterwards too.

  10. #10

    Default Re: Testmap: ally PLAYER_GOOD ally destroyed after Heroes Heart is!

    Quote Originally Posted by Endrix View Post
    In my map version Dunkeons 3 V. 1.1.zip is this.
    The user EadWard wrote he was playing this version and the problem occurred. I'm not sure, but I think I tested it afterwards too.
    I just checked that level, but that script is broken due to too many conditions and values.

Similar Threads

  1. Morkardar level won't finish when keepers dungeon heart destroyed
    By darkkingkongman in forum DK1 Troubleshooting
    Replies: 0
    Last Post: April 11th, 2014, 14:09
  2. Ally with heros bug
    By friscmanseby in forum KeeperFX
    Replies: 2
    Last Post: July 13th, 2012, 00:07
  3. Creating an endless fight against the Player_Good
    By Björn Jaborek in forum DK1 Mapmaking
    Replies: 18
    Last Post: March 16th, 2012, 23:32

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
  •