• 🏆 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!

Make this GUI and MUI

Status
Not open for further replies.

Chaosy

Tutorial Reviewer
Level 40
Joined
Jun 9, 2011
Messages
13,182
GUI stands for Graphical User Interface. So if you code is written like this
  • Untitled Trigger 002
    • Events
    • Conditions
    • Actions
that is GUI

vjass and jass looks like:
JASS:
function Trig_Untitled_Trigger_003_Actions takes nothing returns nothing
endfunction

//===========================================================================
function InitTrig_Untitled_Trigger_003 takes nothing returns nothing
    set gg_trg_Untitled_Trigger_003 = CreateTrigger(  )
    call TriggerAddAction( gg_trg_Untitled_Trigger_003, function Trig_Untitled_Trigger_003_Actions )
endfunction

So your spell is certainly GUI. However it isn't MUI. Please tell us what you want the spell to do.
 
Level 7
Joined
Mar 6, 2014
Messages
203

are you pinoy? just asking :D


OKAY ILL MAKE IT MUI :D


EDIT: Here's Your Request!

  • MoE
    • Events
      • Unit - A unit Is attacked
    • Conditions
      • ((Attacked unit) has buff MoE ) Equal to True
      • (Random integer number between 1 and 10) Equal to 7
    • Actions
      • -------- Indexing --------
      • Set MoE_Index = (MoE_Index + 1)
      • -------- ------------------------------------------------------ --------
      • -------- Setting up the abilities given to the hero --------
      • -------- ------------------------------------------------------ --------
      • Set MoE_AttackSpeed[MoE_Index] = Item Attack Speed Bonus (Greater)
      • Set MoE_Lifesteal[MoE_Index] = Life Steal dummy
      • Set MoE_Damage[MoE_Index] = Damage (+1)
      • Set MoE_Armor[MoE_Index] = aRMOR (+10)
      • -------- ------------------------------------------------------ --------
      • -------- Setting up who will get the ability --------
      • -------- ------------------------------------------------------ --------
      • Set MoE_Caster[MoE_Index] = (Triggering unit)
      • -------- ------------------------------------------------------ --------
      • -------- Setting up how long the hero take the abilities --------
      • -------- ------------------------------------------------------ --------
      • Set MoE_Duration[MoE_Index] = 1.00
      • -------- ------------------------------------------------------ --------
      • -------- Now we give the abilities to the heroes --------
      • -------- ------------------------------------------------------ --------
      • Unit - Add MoE_AttackSpeed[MoE_Index] to MoE_Caster[MoE_Index]
      • Unit - Add MoE_Lifesteal[MoE_Index] to MoE_Caster[MoE_Index]
      • Unit - Add MoE_Damage[MoE_Index] to MoE_Caster[MoE_Index]
      • Unit - Add MoE_Armor[MoE_Index] to MoE_Caster[MoE_Index]
      • -------- ------------------------------------------------------ --------
      • -------- Creating Special Effects --------
      • -------- ------------------------------------------------------ --------
      • Special Effect - Create a special effect attached to the chest of MoE_Caster[MoE_Index] using Abilities\Spells\NightElf\BattleRoar\RoarCaster.mdl
      • -------- ------------------------------------------------------ --------
      • -------- Now We destroy it --------
      • -------- ------------------------------------------------------ --------
      • Special Effect - Destroy (Last created special effect)
      • Wait MoE_Duration[MoE_Index] seconds
      • -------- ------------------------------------------------------ --------
      • -------- Deindexing --------
      • -------- ------------------------------------------------------ --------
      • Set MoE_Index2 = (MoE_Index2 + 1)
      • Set MoE_AttackSpeed[MoE_Index2] = Item Attack Speed Bonus (Greater)
      • Set MoE_Lifesteal[MoE_Index2] = Life Steal dummy
      • Set MoE_Caster[MoE_Index2] = (Triggering unit)
      • Set MoE_CasterLoc[MoE_Index2] = (Position of MoE_Caster[MoE_Index])
      • -------- ------------------------------------------------------ --------
      • -------- Removing the abilities --------
      • -------- ------------------------------------------------------ --------
      • Unit - Remove MoE_AttackSpeed[MoE_Index2] from MoE_Caster[MoE_Index2]
      • Unit - Remove MoE_Lifesteal[MoE_Index2] from MoE_Caster[MoE_Index2]
      • Unit - Remove MoE_Damage[MoE_Index2] from MoE_Caster[MoE_Index2]
      • Unit - Remove MoE_Armor[MoE_Index2] from MoE_Caster[MoE_Index2]
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • MoE_Index2 Equal to MoE_Index
        • Then - Actions
          • Set MoE_Index = 0
          • Set MoE_Index2 = 0
        • Else - Actions
 

Attachments

  • map.w3x
    22.2 KB · Views: 44
Last edited:
Level 7
Joined
Mar 6, 2014
Messages
203
Abilities/duration is always same --> can be in a config trigger.

I'm not sure but if you want to apply Mag's "MUI with Waits" you do it wrong. Here: http://www.hiveworkshop.com/forums/trigger-gui-editor-tutorials-279/mui-triggers-waits-218354/ ( you can't use something like "TriggeringUnit after the Wait-Action as explained under Cons)
If you don't wanna use this technique, then indexing is not needed in your example. --> array variables are not needed.

OOOPPPSSS i forgot :D
 
Status
Not open for further replies.
Top