1. Find your way through the deepest dungeon in the 18th Mini Mapping Contest Poll.
    Dismiss Notice
  2. A brave new world lies beyond the seven seas. Join the 34th Modeling Contest today!
    Dismiss Notice
  3. Check out the Staff job openings thread.
    Dismiss Notice
Dismiss Notice
Hive 3 Remoosed BETA - NOW LIVE. Go check it out at BETA Hive Workshop! Post your feedback in this new forum BETA Feedback.
Dismiss Notice
60,000 passwords have been reset on July 8, 2019. If you cannot login, read this.

Victory And Defeat System

Discussion in 'World Editor Help Zone' started by warriors, May 7, 2018.

  1. warriors

    warriors

    Joined:
    Apr 23, 2011
    Messages:
    39
    Resources:
    0
    Resources:
    0
    hi guys

    I want to custom defeat and victory system

    for example:
    When all buildings are destroyed from player 1 (or 2 ..to 12)..remove all units(ground ..air or heros) of that player from map

    two button added. Say you want to watch or exit

    if click on exit..say defeat..and if click on watch ..disable fog of war and black mask of that player

    This game may be separate (ffa) or team-mate

    So when all the buildings of the enemies were destroyed..And only friends stayed in a team or just one person..defeat messages to losers and send winners a victory message

    Please do a test map and send me here

    Waiting . Thank
     
  2. warriors

    warriors

    Joined:
    Apr 23, 2011
    Messages:
    39
    Resources:
    0
    Resources:
    0
    hi..

    I tried myself but I did not succeed

    i have this problem:

    1-When we don't have any building or soldiers .we don't defeat. i don't want soldier , if us not have building .. must defeat

    2- i create button (watch and exit)..its work..but don't remove all units(ground ..air or heroes) of that player from map ..when buildings destroyed

    3- This game may be separate (ffa) or team-mate ..So when all the buildings of the enemies were destroyed..And only friends stayed in a team or just one person..defeat messages to losers and watchers.. and send winners a victory message

    I built the first two stages but it is incomplete

    But the third step is very hard for me

    I put the map to you to see my work
    Thanks if you complete it for me
    I am waiting for your answer. thank you
     

    Attached Files:

  3. warriors

    warriors

    Joined:
    Apr 23, 2011
    Messages:
    39
    Resources:
    0
    Resources:
    0
    hi

    Can someone help?

    If there is no victory or defeat in the game, game will not end
     
  4. Wark

    Wark

    Joined:
    Oct 12, 2016
    Messages:
    750
    Resources:
    2
    Maps:
    2
    Resources:
    2
    Sure, let me look at it.
    Try not to make multiple posts.

    EDIT:
    Alright. The dialogue box will not work since you need some other variables for that.
    I'll make something to do what you describe.
    Also, the trigger won't work properly since you have the death trigger disabled.

    Here's a test map for ya. Take note, there's a reason for removing those group variables with custom scripts, and it's good practice to use "triggering unit" where you can for the event:
     
    Last edited: May 8, 2018
  5. warriors

    warriors

    Joined:
    Apr 23, 2011
    Messages:
    39
    Resources:
    0
    Resources:
    0
    hi tnx for help .. its work .but There is a one problem

    When you defeat all the enemies, the game will not end.and you don't win

    please solve the problem..thank you
     
  6. Wark

    Wark

    Joined:
    Oct 12, 2016
    Messages:
    750
    Resources:
    2
    Maps:
    2
    Resources:
    2
    Well, if you want victory conditions, that's something else. Let's see what I can cook up.
     
  7. warriors

    warriors

    Joined:
    Apr 23, 2011
    Messages:
    39
    Resources:
    0
    Resources:
    0
    thank you..But I said in the past :

    If you can solve the problem

    Thank you, if it is resolved
     
  8. Wark

    Wark

    Joined:
    Oct 12, 2016
    Messages:
    750
    Resources:
    2
    Maps:
    2
    Resources:
    2
    Alright, refined the test map and added more variables to check victory.
    I even considered what would happen if you destroyed your own buildings and 1 other player is left (this results in the remainder player's victory with message).
    Note that the PlayerCount integer and the loop in the triggers should both equal the total number of players in the map.
    You can modify this to include allies for the winning player. Currently, this works perfectly for FFA.
     

    Attached Files:

  9. warriors

    warriors

    Joined:
    Apr 23, 2011
    Messages:
    39
    Resources:
    0
    Resources:
    0
    Really thank you ..You did a lot of effort

    You know what my problem is?

    Players may want the team..I want to work both ffa and teammates. Is this possible?..we can't play teammate..

    Can not write this command again? for teammate with other PlayerCount?
     
  10. Wark

    Wark

    Joined:
    Oct 12, 2016
    Messages:
    750
    Resources:
    2
    Maps:
    2
    Resources:
    2
    I won't do everything for you, I've got my own project to work on.
    The basis for it is there. Make a backup file, and see if you can get it to work for an allied victory.
     
  11. warriors

    warriors

    Joined:
    Apr 23, 2011
    Messages:
    39
    Resources:
    0
    Resources:
    0
    There is no problem to thank you here

    Who else can solve the team problem?

    if i know..i did not harassing you
     
  12. warriors

    warriors

    Joined:
    Apr 23, 2011
    Messages:
    39
    Resources:
    0
    Resources:
    0
    hi..i used melee defeat system

    its work...tnQ