Spell Ice Entrapment - GUI MUI

lindenkron

You can change this now in User CP
Ice Entrapment

Constructed criticism appreciated. Rest ain't. :)

Pros
  • GUI MUI
  • Leakless (to my knowledge :rolleyes:)
  • Easy to import (Simple 10 step guide *again*).
  • Simple but cool spell if you ask me :rolleyes:

Cons
  • Looks funny when used on trees (since the units move trying to fit into place)
  • Might be hard to modify the circle.

The 10 step guide.
  1. Open the attached map in your World Editor.
  2. Open your own map in your World Editor.
  3. Go to your map. And 'Check' "Automatically create unknown variables while pasting trigger data" This can be found at: File -> Preferences -> General Tap (First one)
  4. Open the attached map.
  5. Go to F6 and Copy (Ctrl + C) Paste (Ctrl + V) all the custom Abilities into your map.
  6. Repeat 4 and 5, just with the custom Units (F6)
  7. Open the attached map.
  8. Select the triggers called: 'IceEntrapment' & 'Animation' copy them.
  9. Open your map, paste the Triggers in.
  10. Test your map.

Description

Code
Trigger:
  • IceEntrapment
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Ice Entrapment
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • IECustomValue Less than 1000
        • Then - Actions
          • Set IECustomValue = (IECustomValue + 1)
        • Else - Actions
          • Set IECustomValue = 0
      • -------- SetVariables --------
      • Set IECaster[IECustomValue] = (Triggering unit)
      • Set IETarget[IECustomValue] = (Target point of ability being cast)
      • Set IEOffset[IECustomValue] = 400.00
      • Set IEDegress[IECustomValue] = 0.00
      • Set IEDegreesIncrease[IECustomValue] = 20.00
      • Set IELiveTime[1] = 2.00
      • Set IELiveTime[2] = 4.00
      • Set IELiveTime[3] = 6.00
      • -------- Spell --------
      • For each (Integer A) from 1 to 18, do (Actions)
        • Loop - Actions
          • Set IETempLocation1 = (Position of IECaster[IECustomValue])
          • Set IETempLocation2 = (IETempLocation1 offset by IEOffset[IECustomValue] towards IEDegress[IECustomValue] degrees)
          • Set IETempGroup1 = (Units within 100.00 of IETempLocation2 matching ((((Triggering unit) is A structure) Equal to False) and (((Matching unit) is alive) Equal to True)))
          • Unit Group - Pick every unit in IETempGroup1 and do (Actions)
            • Loop - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (Unit-type of (Picked unit)) Equal to IceBlock (Animation)
                • Then - Actions
                  • Unit - Remove (Picked unit) from the game
                • Else - Actions
                  • Unit - Move (Picked unit) instantly to (IETempLocation2 offset by 100.00 towards -180.00 degrees)
          • Destructible - Create a Pathing Blocker (Ground) (Large) at IETempLocation2 facing IEDegress[IECustomValue] with scale 1.00 and variation 0
          • Set IEPathBlock = (Last created destructible)
          • Trigger - Run PathBlock <gen> (ignoring conditions)
          • Custom script: call DestroyGroup (udg_IETempGroup1)
          • Unit - Create 1 IceBlock (Animation) for (Owner of IECaster[IECustomValue]) at IETempLocation2 facing Default building facing degrees
          • Set IETempUnit = (Last created unit)
          • Trigger - Run Animation <gen> (ignoring conditions)
          • Unit - Add a IELiveTime[(Level of Ice Entrapment for IECaster[IECustomValue])] second Generic expiration timer to (Last created unit)
          • Animation - Change (Picked unit)'s animation speed to 0.00% of its original speed
          • Custom script: call RemoveLocation (udg_IETempLocation2)
          • Custom script: call RemoveLocation (udg_IETempLocation1)
          • Set IEDegress[IECustomValue] = (IEDegress[IECustomValue] + IEDegreesIncrease[IECustomValue])
      • Unit - Pause IECaster[IECustomValue]
      • Unit - Move IECaster[IECustomValue] instantly to IETarget[IECustomValue]
      • Unit - Unpause IECaster[IECustomValue]
      • Special Effect - Create a special effect at IETarget[IECustomValue] using Abilities\Spells\Human\MassTeleport\MassTeleportTarget.mdl
      • Special Effect - Destroy (Last created special effect)
      • -------- ResetAll --------
      • Set IECaster[IECustomValue] = No unit
      • Set IEDegress[IECustomValue] = 0.00
      • Custom script: call RemoveLocation (udg_IETarget[udg_IECustomValue])

Trigger:
  • Animation
    • Events
    • Conditions
    • Actions
      • Custom script: local unit tempUnit
      • Custom script: set tempUnit = udg_IETempUnit
      • Wait 0.50 seconds
      • Custom script: set udg_IETempUnit = tempUnit
      • Animation - Change IETempUnit's animation speed to 0.00% of its original speed


Trigger:
  • PathBlock
    • Events
    • Conditions
    • Actions
      • Custom script: local destructable tempDestructable
      • Custom script: set tempDestructable = udg_IEPathBlock
      • Wait IELiveTime[(Level of Ice Entrapment for IECaster[IECustomValue])] seconds
      • Custom script: set udg_IEPathBlock = tempDestructable
      • Destructible - Remove IEPathBlock

Screenshot

Change Log:
v1.1
Fixed the ice blocks, no longer selectable. Replaced with pathblockers that are removed.

Hope anyone can use it. +Rep for usage is appreciated :thup:
-Lindenkron <3
 

Attachments

lindenkron

You can change this now in User CP
About the ice blocks.
Set the Selection Scale to 0.(Hold Shift)
Tried that, it still selects it. The "health" bar just shows up at a random spot then. Some default spot.

So I set selection to 10, so atleast the health bars is over the iceblock :rolleyes:
 

Kenny

Back for now.
Give the ice block units locust and no collision, and make pathing blockers at the location of each unit. It would look much nicer.
 

lindenkron

You can change this now in User CP
i may be blind but i cant see map>>. I would like to use this :thup: of course +rep
Pretty sure I attached it. But it was gone :eek:. Thanks for saying it, I added it again :rolleyes:

Give the ice block units locust and no collision, and make pathing blockers at the location of each unit. It would look much nicer.
I would have to remove those blockers again, and I can't add experation timer to a destructible.. Any suggestion? (I already went this way hehe, just not good enough to complete it :rolleyes:)
 

Kenny

Back for now.
Code:
custom script: RemoveDestructable(<Your Destructable>)
Also, i suggest that in the future when you are thinking of submitting multiple spells, make a spellpack and submit them.

Currently you have 3 spells on the first page alone, all of which have been submitted within ~2 days of each other.

It would make it far easier on mods, and all of us, if all the spells were together.
 

Kenny

Back for now.
You forgot the 'call' there kenny.
Haha, i thought i did. I was in a hurry, and when i walked out the door i was like wait, i think i missed something.

You may want to update the code in your opening post too.
 

BlackRose

Forum User
Trigger:
  • Set IECaster[IECustomValue] = No unit


No need.

I'm not sure, but use 0.00 or something instead of building default facing degrees.

Nice spell, at first I thought it was just a Blink with damage, then I tested it, and it blocks enemies. It Blinks so you aren't blocked right?

+REP.
 
Trigger:
  • Set IECaster[IECustomValue] = No unit


No need.

I'm not sure, but use 0.00 or something instead of building default facing degrees.

Nice spell, at first I thought it was just a Blink with damage, then I tested it, and it blocks enemies. It Blinks so aren't blocked right?

+REP.
Yea only locals need to be nulled, not globals. :thup:
 

Psiblade94122

In need of sleep
>Fixed the ice blocks, no longer selectable. Replaced with pathblockers that are removed.

actualy, the easyer way was to make it so you give the unit locoust, hide the unit, then remove locoust from the unit, youll be left with a selectless, hpbar less unit

also i think itll be cool to have it so the ice wall will grow depending on how far you teleported cuz right now you can be trapped in your own wall... unless thats what you intend to have it
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • The Helper The Helper:
    Happy Hump Day!
  • V-SNES V-SNES:
    Happy Friday!
  • cubanral cubanral:
    agreed!
  • The Helper The Helper:
    Friday Yay!
  • mgarcia mgarcia:
    did you guys catch Carl's interview? https://www.youtube.com/watch?v=kuHiMXABkGs
  • mgarcia mgarcia:
    he's the one that informed me about the DVD's working!
  • mgarcia mgarcia:
    he also mentioned the progress on the controllers!
  • The Helper The Helper:
    I did actually it was cool to see the NUON mention
  • The Helper The Helper:
    https://discord.com/channels/985377399338332202/985377399950696481 you can still use this chat too we are two fisted now :)
  • thewrongvine thewrongvine:
    costs me $80 to fill gas tank sad face
  • Ghan Ghan:
    Oof
  • The Helper The Helper:
    Yeah that gas is some expensive stuff :)
  • The Helper The Helper:
    ghan does not have to worry about it he has a tesla and I have a small tank so it does not cost me usually more than 50
  • The Helper The Helper:
    fyi Ghan we are getting an error trying to access stats or world editor tutorials Error 526 Ray ID: 72128c6bf99f6707 • 2022-06-26 02:35:15 UTCInvalid SSL certificate
  • Ghan Ghan:
    An artifact of switching to Cloudflare... the Let's Encrypt certs can't autorenew through Cloudflare.
  • Ghan Ghan:
    I got the forum updated before things expired but there were some other casualties.
  • Ghan Ghan:
    Everything should be fixed now....
  • The Helper The Helper:
    Thank you Ghan!
  • The Helper The Helper:
    Happy Monday!
  • The Helper The Helper:
    new NUON forum mod cubanral!
    +1
  • The Helper The Helper:
  • tom_mai78101 tom_mai78101:
    Started learning how to make tools-assisted speedruns, so I'm lately busy.
  • tom_mai78101 tom_mai78101:
    Here's my current project.
    +3
  • O Old Mountain Shadow:
    that was pretty good!
  • jonas jonas:
    really cool! I saw the game before but always thought it's just a half as good double dragon. Now I realize it actually has a lot of depth!

    Members online

    Affiliates

    Hive Workshop NUON Dome World Editor Tutorials

    Network Sponsors

    Apex Steel Pipe - Buys and sells Steel Pipe.
    Top