• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

[Trigger] Normal Spell into MuiGui (Hardrequest)

Status
Not open for further replies.
Level 4
Joined
Aug 8, 2008
Messages
64
  • Event
    • Unit- begins to cast a skill
  • Condition
    • (Ability being cast) Gleich Ice Hammer (wizard lv1)
  • Action
  • Set Hammer_of_Ice_TARGET = (Target unit of ability being cast)
  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • 'IF'-Condition
    • 'THEN'-Action
      • Set TempLoc05 = (Position of Hammer_of_Ice_TARGET)
      • Spezialeffekt - Create a special effect at TempLoc05 using war3mapImported\IceNova.mdx
      • Set SpecialEffect[10] = (Last created special effect)
      • Wait 2.00 game-time seconds
      • Spezialeffekt - Destroy SpecialEffect[10]
      • Set TempLoc05 = (Position of Hammer_of_Ice_TARGET)
      • Spezialeffekt - Create a special effect at TempLoc05 using war3mapImported\IceHammer.mdx
      • Set SpecialEffect[11] = (Last created special effect)
      • Wait 1.20 seconds
      • Unit - Cause Hammer_of_Ice_CASTER to damage Hammer_of_Ice_TARGET, dealing (3.00 x (Real((Intelligenz of (Casting unit) (Einschließen bonuses))))) damage of attack type Zaubersprüche and damage type Normal
      • Custom script: call RemoveLocation (udg_TempLoc05)
      • Spezialeffekt - Destroy SpecialEffect[11]
    • 'ELSE'-Aktionen

My Problem is now: i like the spell really much and i want to use him in my rpg but he isnt mui gui.
Could that be changed?
 
Level 25
Joined
Jun 5, 2008
Messages
2,572
You need to get lost of waits, and use array variables.
Also this could be done with a periodic trigger, but i will show you a MUI conversion of your spell:
  • Event
  • Unit- begins to cast a skill
  • Condition
  • (Ability being cast) Gleich Ice Hammer (wizard lv1)
  • Action
  • - if integer[1] = 0 then
    • - Turn on loop gen
  • - else
  • - set integer[1] = integer[1] + 1
  • - set integer[2] = integer[2] + 1
  • - set real_wait_1[integer[2]] = 2.00
  • - set real_wait_2[integer[2]] = real_wait_1[integer[2]] + 1.20
  • - Set target[integer[2]] = (Target unit of ability being cast)
  • - set damage_real[integer[2]] = 3.00 x (Real((Intelligence of (Casting unit)))
  • - Set TempLoc[integer[2]] = (Position of Target)
  • - Special effect - Create a special effect at TempLoc[integer[2]] using war3mapImported\IceNova.mdx
  • - Set SpecialEffect[integer[2]] = (Last created special effect)
Loop trigger:
  • Events - Time Periodic - Every 0.01 seconds
  • Conditions - none
  • Actions
    • - For each integer variabl integer[3] from 1 to [integer[2] do actions
      • - If/then/else
        • - If My_boolean_var[integer[3] equal to false then
          • - set real_wait_1 = real_wait_1 - 0.01
          • - set real_wait_2 = real_wait_2 - 0.01
          • - If real_wait_1 equal to 0 then
            • - Special effect - destroy SpecialEffect[integer[3]]
            • - Set TempLoc[integer[3]] = (Position of Target[integer[3]])
            • - Special effect - Create a special effect at TempLoc[integer[3]] using war3mapImported\IceHammer.mdx
            • - Set SpecialEffect[integer[3]] = (Last created special effect)
          • - else
          • - If real_wait_2 equal to 0 then
            • - Unit - Cause caster[integer[3]] to damage Target[integer[3]], dealing damage_real[integer[3]] damage of attack type *some* and damage type Normal
            • - Custom script: call RemoveLocation (udg_TempLoc[udg_integer[3]])
            • - Special effect - Destroy SpecialEffect[integer[3]]
            • - set My_boolean_var[integer[3] = true
            • - set integer[1] = integer[1] - 1
            • - if integer[1] = 0 then
              • - set integer[2] = 0
              • - trigger turn off this trigger
              • - else
          • - else
This is using paladon integer array system, it's fully mui.
 
Level 25
Joined
Jun 5, 2008
Messages
2,572
If you change it to 0.1 remember to also change the wait reduction:
  • set wait_real_1[integer[3]] = wait_real_1[integer[3]] - 0.01
  • set wait_real_2[integer[3]] = wait_real_2[integer[3]] - 0.01
To:
  • set wait_real_1[integer[3]] = wait_real_1[integer[3]] - 0.1
  • set wait_real_1[integer[3]] = wait_real_1[integer[3]] - 0.1
 
Level 11
Joined
Jul 2, 2008
Messages
601
Lol, you are so nervous, I've just wanted to know the reasoning for making a such useless trigger, howerver, the spam is your mouth since you don't respect others.
I'm also able to help as far as Kingz and many other people here, but since you don't want to listen to me, I'll leave you. ;)
But just one thing - you now have an example, don't you want to study from it? Yeah, it's easier to ask someone to make the last part too, I see.
 
Level 25
Joined
Jun 5, 2008
Messages
2,572
Man, one spell making into MUI takes time, not to mention these spells are non-original and it would take me some time to make them MUI.
Try to learn from the one i made MUI instead i have little free time as it is i cannot make a whole spellpack MUI cuz of the lack of free time.
 
Status
Not open for further replies.
Top