• 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.

[General] Mui trigger issues

Status
Not open for further replies.
Level 7
Joined
Feb 23, 2020
Messages
253
Hello, i'm having some issues with these triggers, they function properly when playing alone but with multiple people it's very buggy. What's the problem right here?

  • Gaining a level inst
    • Events
      • Unit - A unit Gains a level
    • Conditions
    • Actions
      • Set VariableSet AttributePoints[(Player number of (Owner of (Triggering unit)))] = (AttributePoints[(Player number of (Owner of (Triggering unit)))] + 1)
  • Dialog1
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Attribute Points
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • AttributePoints[(Player number of (Owner of (Triggering unit)))] Not equal to 0
        • Then - Actions
          • Set VariableSet Integer = (Integer + 1)
          • Set VariableSet Hero[Integer] = (Triggering unit)
          • Dialog - Clear Dialog
          • Dialog - Change the title of Dialog to Choose your attribu...
          • Dialog - Create a dialog button for Dialog labelled |cffff0000Strength ...
          • Set VariableSet Dialog_Str[Integer] = (Last created dialog Button)
          • Dialog - Create a dialog button for Dialog labelled |cff00ff00Agility |...
          • Set VariableSet Dialog_Agi[Integer] = (Last created dialog Button)
          • Dialog - Create a dialog button for Dialog labelled |cff8080ffIntellige...
          • Set VariableSet Dialog_Int[Integer] = (Last created dialog Button)
          • Dialog - Show Dialog for (Owner of Hero[Integer])
          • Set VariableSet AttributePoints[(Player number of (Owner of (Triggering unit)))] = (AttributePoints[(Player number of (Owner of (Triggering unit)))] - 1)
        • Else - Actions
          • Game - Display to (Player group((Owner of (Triggering unit)))) for 5.00 seconds the text: You do not have eno...
  • Choose1
    • Events
      • Dialog - A dialog button is clicked for Dialog
    • Conditions
    • Actions
      • Set VariableSet Recyle = (Recyle + 1)
      • -------- Strength --------
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Clicked dialog button) Equal to Dialog_Str[Recyle]
        • Then - Actions
          • Hero - Modify Strength of Hero[Recyle]: Add 1.
        • Else - Actions
      • -------- Agility --------
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Clicked dialog button) Equal to Dialog_Agi[Recyle]
        • Then - Actions
          • Hero - Modify Agility of Hero[Recyle]: Add 1.
        • Else - Actions
      • -------- Intelligence --------
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Clicked dialog button) Equal to Dialog_Int[Recyle]
        • Then - Actions
          • Hero - Modify Intelligence of Hero[Recyle]: Add 1.
        • Else - Actions
      • -------- Reset --------
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Recyle Equal to Integer
        • Then - Actions
          • Set VariableSet Recyle = 0
          • Set VariableSet Integer = 0
        • Else - Actions
  • Dialog2
    • Events
      • Dialog - A dialog button is clicked for Dialog
    • Conditions
    • Actions
      • Set VariableSet Integer2 = (Integer2 + 1)
      • Dialog - Clear Dialog2
      • Dialog - Change the title of Dialog2 to Choose your attribu...
      • Dialog - Create a dialog button for Dialog2 labelled |cffff0000Strength ...
      • Set VariableSet Dialog_Str[Integer2] = (Last created dialog Button)
      • Dialog - Create a dialog button for Dialog2 labelled |cff00ff00Agility |...
      • Set VariableSet Dialog_Agi[Integer2] = (Last created dialog Button)
      • Dialog - Create a dialog button for Dialog2 labelled |cff8080ffIntellige...
      • Set VariableSet Dialog_Int[Integer2] = (Last created dialog Button)
      • Dialog - Show Dialog2 for (Owner of Hero[Integer2])
  • Choose2
    • Events
      • Dialog - A dialog button is clicked for Dialog2
    • Conditions
    • Actions
      • Set VariableSet Recyle2 = (Recyle2 + 1)
      • -------- Strength --------
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Clicked dialog button) Equal to Dialog_Str[Recyle2]
        • Then - Actions
          • Hero - Modify Strength of Hero[Recyle2]: Add 1.
        • Else - Actions
      • -------- Agility --------
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Clicked dialog button) Equal to Dialog_Agi[Recyle2]
        • Then - Actions
          • Hero - Modify Agility of Hero[Recyle2]: Add 1.
        • Else - Actions
      • -------- Intelligence --------
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Clicked dialog button) Equal to Dialog_Int[Recyle2]
        • Then - Actions
          • Hero - Modify Intelligence of Hero[Recyle2]: Add 1.
        • Else - Actions
      • -------- Reset --------
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Recyle2 Equal to Integer2
        • Then - Actions
          • Set VariableSet Recyle2 = 0
          • Set VariableSet Integer2 = 0
        • Else - Actions
 
Status
Not open for further replies.
Top