• 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] Enable melee ai for player.

Status
Not open for further replies.
Level 4
Joined
Jun 8, 2008
Messages
87
Ive been trying to find a solution to this for to long, time to ask. Is it possible to only enable melee ai for some players?
 
Level 4
Joined
Jun 8, 2008
Messages
87
Already tried that ^^ thanks anyway (didnt work)

well i might aswell ask my other question while im here: why doesnt this trigger work?
  • Upgrades
    • Events
      • Unit - A unit owned by Player 2 (Blue) Finishes an upgrade
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Researched tech-type) Equal to Black Gunpowder
        • Then - Actions
          • Player - Set the current research level of Improved Crossbows to (Current research level of (Researched tech-type) for Player 2 (Blue)) for Player 3 (Teal)
          • Player - Set the current research level of Improved Crossbows to (Current research level of (Researched tech-type) for Player 2 (Blue)) for Player 4 (Purple)
          • Player - Set the current research level of (Researched tech-type) to (Current research level of (Researched tech-type) for Player 2 (Blue)) for Player 8 (Pink)
        • Else - Actions
          • Player - Set the current research level of (Researched tech-type) to (Current research level of (Researched tech-type) for Player 2 (Blue)) for Player 3 (Teal)
          • Player - Set the current research level of (Researched tech-type) to (Current research level of (Researched tech-type) for Player 2 (Blue)) for Player 4 (Purple)
          • Player - Set the current research level of (Researched tech-type) to (Current research level of (Researched tech-type) for Player 2 (Blue)) for Player 8 (Pink)
 
Last edited:
Level 19
Joined
Sep 4, 2007
Messages
2,826
Already tried that ^^ thanks anyway (didnt work)

well i might aswell ask my other question while im here: why doesnt this trigger work?
  • Upgrades
    • Events
      • Unit - A unit owned by Player 2 (Blue) Finishes an upgrade
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Researched tech-type) Equal to Black Gunpowder
        • Then - Actions
          • Player - Set the current research level of Improved Crossbows to (Current research level of (Researched tech-type) for Player 2 (Blue)) for Player 3 (Teal)
          • Player - Set the current research level of Improved Crossbows to (Current research level of (Researched tech-type) for Player 2 (Blue)) for Player 4 (Purple)
          • Player - Set the current research level of (Researched tech-type) to (Current research level of (Researched tech-type) for Player 2 (Blue)) for Player 8 (Pink)
        • Else - Actions
          • Player - Set the current research level of (Researched tech-type) to (Current research level of (Researched tech-type) for Player 2 (Blue)) for Player 3 (Teal)
          • Player - Set the current research level of (Researched tech-type) to (Current research level of (Researched tech-type) for Player 2 (Blue)) for Player 4 (Purple)
          • Player - Set the current research level of (Researched tech-type) to (Current research level of (Researched tech-type) for Player 2 (Blue)) for Player 8 (Pink)
Could you please tell us what the trigger does? Feed us! lol...
 
Last edited:
Level 4
Joined
Jun 8, 2008
Messages
87
haha sorry right! ahem... when 1 player finishes an upgrade the other player gains it. UNLESS the upgrade is "black gunpowder" then the other untis gets "improved crossbows" instead. Thanks for the reply :)
 
Level 19
Joined
Sep 4, 2007
Messages
2,826
You've said when player 1 upgrades. But as shown in your triggers above it's player 2.
  • Unit - A unit owned by Player 2 (Blue) Finishes an upgrade
Try changing it to player 1.

  • Events
    • Unit - A unit owned by Player 1 (Red) Finishes an upgrade
  • Conditions
  • Actions
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • (Researched tech-type) Equal to Black Gunpowder
      • Then - Actions
        • Player - Set the current research level of Improved Crossbows to (Current research level of (Researched tech-type) for Player 1 (Red)) for Player 3 (Teal)
        • Player - Set the current research level of Improved Crossbows to (Current research level of (Researched tech-type) for Player 1 (Red)) for Player 4 (Purple)
        • Player - Set the current research level of (Researched tech-type) to (Current research level of (Researched tech-type) for Player 1 (Red)) for Player 8 (Pink)
      • Else - Actions
        • Player - Set the current research level of (Researched tech-type) to (Current research level of (Researched tech-type) for Player 1 (Red)) for Player 3 (Teal)
        • Player - Set the current research level of (Researched tech-type) to (Current research level of (Researched tech-type) for Player 1 (Red)) for Player 4 (Purple)
        • Player - Set the current research level of (Researched tech-type) to (Current research level of (Researched tech-type) for Player 1 (Red)) for Player 8 (Pink)
 
Level 4
Joined
Jun 8, 2008
Messages
87
well its quite simple. Whenever "blue" finishes an upgrade "the other players" get the same upgrade. Unless the upgrade is "black gunpowder" then "blue" still get black gunpowder. but the others get "improved crossbows" instead :)
 
Level 19
Joined
Sep 4, 2007
Messages
2,826
This will allow player 8 to get gunpowder. If you don't want that to happen then replace it with the second trigger.
  • Player - Set the current research level of (Researched tech-type) to (Current research level of (Researched tech-type) for Player 1 (Red)) for Player 8 (Pink)
  • Player - Set the current research level of Improved Crossbows to (Current research level of (Researched tech-type) for Player 1 (Red)) for Player 8 (Pink)
I don't see any other mistakes in your triggers.
 
Level 4
Joined
Jun 8, 2008
Messages
87
here it is :) was just about to upload to rapidshare (use "warpten" "greedisgood 99999" and "iseedeadpeople" so you can see when the computer finishes an upgrade)
 
Last edited:
Level 3
Joined
May 12, 2006
Messages
31
Don't be afraid! I will check it out. But i think the condition is the problem. Tech <-> upgrade maybe not the same thing. This condition catches something else's event. I think.
 
Level 4
Joined
Jun 8, 2008
Messages
87
you might be right ^^ ignoring the fact that i may sound like a bandit "i'll check it out"
 
Level 4
Joined
Jun 8, 2008
Messages
87
thanks +rep well i still need to an answer for my other question ;) "is there anyway to only enable melee AI for a specific player?" (PS. your answer wasnt right but it leaded me the right way. it was the event upgrade aint the same as tech/research. upgrade is the thing a human tower does.)
 
Level 4
Joined
Jun 8, 2008
Messages
87
well i just need a way to activate an AI(like "activate AI for X). so i believe it belongs here, OR are JASS. but thanks for your reply ^^
 
Level 4
Joined
Jun 8, 2008
Messages
87
guys i happened to find out myself ;) heres whot i did:

1. extracted the human.ai,elf.ai,orc.ai,undead.ai from the war3.mpq file (use some kind of editor for it)

2. import the ai into your map (no need to change path)

3. create a trigger like this
  • Untitled Trigger 001
    • Events
      • Map initialization
    • Conditions
    • Actions
      • AI - Start melee AI script for Player 1 (Red): war3mapImported\elf.ai
3. make sure the ai matches the race. if it doesnt use some kind of valuable stuff ;)

i would like to thank evrybody that tried to help me AND those who succeded in it


Event: heyer decides "something"
Condition: decided something is "to close this tread"
Action: Close "this tread"¨

ehh i dont know how to close it hehe :)
 
Status
Not open for further replies.
Top