• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[Trigger] Help with Trigger

Status
Not open for further replies.
Level 6
Joined
Jul 1, 2012
Messages
188
I've made an trigger to work similar to this, if Player X have Hero Y and Hero Y have Item Z if true do Trigger if not do nothing. here it is.

The Link
  • Events
  • Player - Player (X) types a chat message containing -(x) as An Exact match
  • Conditions
  • (Substring((Entered chat String), 1, 10)) Equal to -(x)
  • Actions
  • Set TheLinkGroup = (units owned by (Triggerin Player))
  • Unit Group - Pick every unit in TheLinkGroup and do (Actions)
  • Loop - Actions
  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
  • If - Conditions
  • ((Picked unit) is A hero)Equal to True
  • (The Link 0052 <gen> is owned) Equal to True
  • Then
  • Player Group - Make (All players) treat (All players) as an ally
  • Trigger - Turn off Unally system <gen>
  • Trigger - Turn off Unally all <gen>
  • Cinematic - Send tranmission to (all players) from No units named The Link :Play No Sound and Display (Text) Modify duraction: Set to 300 seconds and Wait.
  • Trigger - Turn on Unally system <gen>
  • Trigger - Turn on Unally all <gen>
  • Trigger - Turn off (This Trigger)
  • Else - Actions
Can anyone figure whats wrong, have I done it all wrong or just a simple error or is it just impossible with the kind of trigger I want?
Sorry for noob question but I got to get help somewhere.
Thanks in Advance even if you coulden't provide any help but atlast tryed.

[Edit] I hope you can ''read'' it now.
 
Last edited:
Level 33
Joined
Mar 27, 2008
Messages
8,035
So basically, you want these;
1. When a Player types a certain message (provided that one of his unit has the item called "The Link"), all players would be at peace (All Allied) ?
2. After 300 seconds has passed, the peace is broken and all player would become enemies of each other, right ?
 
Level 6
Joined
Jul 1, 2012
Messages
188
The item pretty much sums up has this.
You do a questline to complete it. [That's already fixed and working]
And there you go you get the item, this item does have normal stats
(32+ Damage 10+ all stats if you want to know)
But the item itself tells you after you obtain it that you can say -string[Command]
And this 300 second force ally and turn of the unally system, after the 300 seconds you are still allies but you can unally again.
The item stays with it's stats but this Trigger will not work again.

'' The Link ''
Increase damage by 32 damage
Increase all stats by 10
[If you use the command -world peace every player ally each other and unable to unally other players for 300 seconds and after the time passes you can unally each other again, Warning: This is only useable Once.]

Don't know how much more info I need to tell :)
 
Level 33
Joined
Mar 27, 2008
Messages
8,035
See, the item really has other bonuses :)
That's why you treasure it so much, okay, that's all the info I know, I'll try to make it.

Plus, if I make this system, it would collide with your another system (Unally All / Unally System), can I just make the trigger a whole idea and later, can you add those additional triggers yourselves (The turn off thing) ?
 
Status
Not open for further replies.
Top