• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Trigger] In need of helping hand (Sys + AI) MMA fight

Status
Not open for further replies.
Level 19
Joined
Feb 15, 2008
Messages
2,184
Need help with kill system in map.

This is what i need.

It should be like this. If i type -100 kills then its 100 kills till win. I mean host type the kills. And then it should be team kill. So if my team make 100 kills then my team win. And at the end showing victory defeat for the teams.

So basicly i did import an kill system but not exactually what i want.

Here it is:

trigger 1

  • Host
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Game - Display to (All players) the text: Plz Wait While Host...
      • Trigger - Turn off Host <gen>
trigger 2

  • Kills Limit
    • Events
      • Time - Elapsed game time is 30.00 seconds
    • Conditions
    • Actions
      • Game - Unpause the game
      • Game - Display to (All players) the text: The game is locked ...
      • Trigger - Turn off Kills 10 <gen>
      • Trigger - Turn off Kills 20 <gen>
      • Trigger - Turn off Kills 30 <gen>
      • Trigger - Turn off Kills 40 <gen>
      • Trigger - Turn off Kills 50 <gen>
      • Trigger - Turn off Kills 60 <gen>
      • Trigger - Turn off Kills 70 <gen>
      • Trigger - Turn off Kills 80 <gen>
      • Trigger - Turn off Kills 90 <gen>
      • Trigger - Turn off Kills 100 <gen>
      • Trigger - Turn off Deathmatch <gen>
trigger 3

  • Kills 10
    • Events
      • Player - Player 1 (Red) types a chat message containing -10 as An exact match
    • Conditions
    • Actions
      • Trigger - Turn on HeroDies <gen>
      • Trigger - Run Countdown <gen> (ignoring conditions)
      • Trigger - Turn on Victory Command 10 <gen>
      • Game - Display to (All players) the text: The game has been l...
      • Trigger - Turn off Kills 10 <gen>
      • Trigger - Turn off Kills 20 <gen>
      • Trigger - Turn off Kills 30 <gen>
      • Trigger - Turn off Kills 40 <gen>
      • Trigger - Turn off Kills 50 <gen>
      • Trigger - Turn off Kills 60 <gen>
      • Trigger - Turn off Kills 70 <gen>
      • Trigger - Turn off Kills 80 <gen>
      • Trigger - Turn off Kills 90 <gen>
      • Trigger - Turn off Kills 100 <gen>
      • Trigger - Turn off Kills Limit <gen>
      • Game - Unpause the game
trigger 4

  • Victory Command 10
    • Events
      • Unit - A unit Dies
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Player 1 (Red) Heroes Killed) Equal to 10
        • Then - Actions
          • Trigger - Run Victory <gen> (checking conditions)
        • Else - Actions
          • Trigger - Run Defeat <gen> (checking conditions)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Player 2 (Blue) Heroes Killed) Equal to 10
        • Then - Actions
          • Trigger - Run Victory <gen> (checking conditions)
        • Else - Actions
          • Trigger - Run Defeat <gen> (checking conditions)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Player 3 (Teal) Heroes Killed) Equal to 10
        • Then - Actions
          • Trigger - Run Victory <gen> (checking conditions)
        • Else - Actions
          • Trigger - Run Defeat <gen> (checking conditions)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Player 4 (Purple) Heroes Killed) Equal to 10
        • Then - Actions
          • Trigger - Run Victory <gen> (checking conditions)
        • Else - Actions
          • Trigger - Run Defeat <gen> (checking conditions)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Player 5 (Yellow) Heroes Killed) Equal to 10
        • Then - Actions
          • Trigger - Run Victory <gen> (checking conditions)
        • Else - Actions
          • Trigger - Run Defeat <gen> (checking conditions)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Player 6 (Orange) Heroes Killed) Equal to 10
        • Then - Actions
          • Trigger - Run Victory <gen> (checking conditions)
        • Else - Actions
          • Trigger - Run Defeat <gen> (checking conditions)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Player 7 (Green) Heroes Killed) Equal to 10
        • Then - Actions
          • Trigger - Run Victory <gen> (checking conditions)
        • Else - Actions
          • Trigger - Run Defeat <gen> (checking conditions)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Player 8 (Pink) Heroes Killed) Equal to 10
        • Then - Actions
          • Trigger - Run Victory <gen> (checking conditions)
        • Else - Actions
          • Trigger - Run Defeat <gen> (checking conditions)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Player 9 (Gray) Heroes Killed) Equal to 10
        • Then - Actions
          • Trigger - Run Victory <gen> (checking conditions)
        • Else - Actions
          • Trigger - Run Defeat <gen> (checking conditions)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Player 10 (Light Blue) Heroes Killed) Equal to 10
        • Then - Actions
          • Trigger - Run Victory <gen> (checking conditions)
        • Else - Actions
          • Trigger - Run Defeat <gen> (checking conditions)
So how do i make this work as i want help pls.

More info.

http://www.hiveworkshop.com/forums/project-recruitment-256/pudge-mma-fight-need-crew-237675/
 
Last edited:
Level 19
Joined
Feb 15, 2008
Messages
2,184
ye ok but its pretty many triggers :) will see let me copy them.

I type down the problems here for you.

1. normal mode doesent show the multiboard. and there is no text saying 1.2.3 Fight.

2. The AI bots dont walk into middle and fight.

3. Money mode doesent show how much money you get. Like 100 gold is split etc.

4. Multiboard, i just want it to show hero icon not the other wierd (EyE) icon.

5. Victory defeat when round is over.

6. The rounds doesent work properly it should be like when all heroes is dead in 1 team then it should start on new round. Now it starts on new round randomly or something. Like i play kill 1 hero then new round starts.

7. Multiboard shouldent show how many units you killed because i dont have unit kills in this map.

Thats them all i post triggers here. sec.
 
just edit the post with all the triggers and use hidden tags.

what exactly doesnt work ?

a few things.
these triggers are very inefficient and should be made more efficient.
anything u use twice or more store into a temp variable. example: u have player number of owner of triggering unit a lot. store that into an integer variable and use the integer variable instead.
This should be done with anything u use twice or more in the same trigger.
never use integer A/B. make ur own integers and use them. integer A/B are slower and less efficient than using ur own.

i need u to describe exactly wat isnt working the way u want it to. u should then start making these more efficient while i try to find the problems
 
Level 19
Joined
Feb 15, 2008
Messages
2,184
here is the problems.

I type down the problems here for you.

1. normal mode doesent show the multiboard. and there is no text saying 1.2.3 Fight.

2. The AI bots dont walk into middle and fight.

3. Money mode doesent show how much money you get. Like 100 gold is split etc.

4. Multiboard, i just want it to show hero icon not the other wierd (EyE) icon.

5. Victory defeat when round is over.

6. The rounds doesent work properly it should be like when all heroes is dead in 1 team then it should start on new round. Now it starts on new round randomly or something. Like i play kill 1 hero then new round starts.

7. Multiboard shouldent show how many units you killed because i dont have unit kills in this map.

Thats them all i post triggers here. sec.
 
Status
Not open for further replies.
Top