Warcraft III Freezes

NaPzt3R

You can change this now in User CP.
Reaction score
38
When i run the following trigger Warcraft III freezes for some stupid reason.
Code:
Boss01
    Events
        Unit - A unit Acquires an item
    Conditions
        (Item being manipulated) Equal to Blood Key 0072 <gen>
    Actions
        Wait 1.00 seconds
        Unit - Create 1 Demonic Warlord for Neutral Hostile at (Center of Boss01Spawn <gen>) facing Default building facing degrees
        Item - Create Tome of Intelligence +2 at (Center of (Playable map area))
        Hero - Give (Last created item) to (Last created unit)
        Item - Create Tome of Strength +2 at (Center of (Playable map area))
        Hero - Give (Last created item) to (Last created unit)
        Item - Create Tome of Agility +2 at (Center of (Playable map area))
        Hero - Give (Last created item) to (Last created unit)
        Item - Create Cloak of Flames at (Center of (Playable map area))
        Hero - Give (Last created item) to (Last created unit)
        Item - Create Claws of Attack +6 at (Center of (Playable map area))
        Hero - Give (Last created item) to (Last created unit)
        Unit - Order (Last created unit) to Attack-Move To (Center of Boss01Move <gen>)
        Special Effect - Create a special effect attached to the origin of (Last created unit) using Abilities\Spells\Demon\DarkPortal\DarkPortalTarget.mdl
        NGUI - Destroy (Last created special effect)
        Player Group - Pick every player in (All players) and do (Actions)
            Loop - Actions
                Camera - Shake the camera for (Picked player) with magnitude 3.00
                Visibility - Create an initially Enabled visibility modifier for (Picked player) emitting Visibility from (Center of Boss01Spawn <gen>) to a radius of 256.00
        Wait 0.80 seconds
        Player Group - Pick every player in (All players) and do (Actions)
            Loop - Actions
                Camera - Stop swaying/shaking the camera for (Picked player)
        Trigger - Turn off (This trigger)

Can anyone figure out what the problem is? Cus' I can't. D:
 

Verrak

New Member
Reaction score
4
When i run the following trigger Warcraft III freezes for some stupid reason.
Code:
Boss01
    Events
        Unit - A unit Acquires an item
    Conditions
        (Item being manipulated) Equal to Blood Key 0072 <gen>
    Actions
        Wait 1.00 seconds
        Unit - Create 1 Demonic Warlord for Neutral Hostile at (Center of Boss01Spawn <gen>) facing Default building facing degrees
        Item - Create Tome of Intelligence +2 at (Center of (Playable map area))
        Hero - Give (Last created item) to (Last created unit)
        Item - Create Tome of Strength +2 at (Center of (Playable map area))
        Hero - Give (Last created item) to (Last created unit)
        Item - Create Tome of Agility +2 at (Center of (Playable map area))
        Hero - Give (Last created item) to (Last created unit)
        Item - Create Cloak of Flames at (Center of (Playable map area))
        Hero - Give (Last created item) to (Last created unit)
        Item - Create Claws of Attack +6 at (Center of (Playable map area))
        Hero - Give (Last created item) to (Last created unit)
        Unit - Order (Last created unit) to Attack-Move To (Center of Boss01Move <gen>)
        Special Effect - Create a special effect attached to the origin of (Last created unit) using Abilities\Spells\Demon\DarkPortal\DarkPortalTarget.mdl
        NGUI - Destroy (Last created special effect)
        Player Group - Pick every player in (All players) and do (Actions)
            Loop - Actions
                Camera - Shake the camera for (Picked player) with magnitude 3.00
                Visibility - Create an initially Enabled visibility modifier for (Picked player) emitting Visibility from (Center of Boss01Spawn <gen>) to a radius of 256.00
        Wait 0.80 seconds
        Player Group - Pick every player in (All players) and do (Actions)
            Loop - Actions
                Camera - Stop swaying/shaking the camera for (Picked player)
        Trigger - Turn off (This trigger)

Can anyone figure out what the problem is? Cus' I can't. D:

do you need the wait?, try removing it
 

Chao

Setting sail for fail in the sea of lame.
Reaction score
63
Only thing I can think of is maybe adding a short wait-time before turning off the trigger..
Maybe turn down the magnitude of the camera shakes...
 

NaPzt3R

You can change this now in User CP.
Reaction score
38
No, the wait is not a need, but it just looks better if the effect appears a bit after the key is picked up.

EDIT:
Only thing I can think of is maybe adding a short wait-time before turning off the trigger..
Maybe turn down the magnitude of the camera shakes...

Actually, i think the problem might be that the trigger turns off before it gets to create all the items.
 

Chao

Setting sail for fail in the sea of lame.
Reaction score
63
Yeahhh my mind's not working quite right but that's what I was getting at. :D
 

Accname

2D-Graphics enthusiast
Reaction score
1,464
if you turn a trigger off it wont just stop, it will run to its end but not run again. what you mean is probably "skip remaining actions".
furthermore why not "create item for hero" instead of creating items+giving last created items to your unit. will save space AND remove most of the leaks in your trigger.

and at least is your unit a hero? if not are you sure you can give him tomes? when they are used immatelately this might malfunction with units which aint got stats.
 

NaPzt3R

You can change this now in User CP.
Reaction score
38
It's a unit with an inventory that doesn't allow using items. So I guess the Tomes just gets picked up and placed in the inventory.
 

Accname

2D-Graphics enthusiast
Reaction score
1,464
no it wont. tomes are either used or placed back on the ground, you have got to change the tome item to put it into the inventory.
 

NaPzt3R

You can change this now in User CP.
Reaction score
38
God damn. Can you suggest any other way to make the boss drop items on death?
 

Accname

2D-Graphics enthusiast
Reaction score
1,464
how about this?

Event:
unit is killed
Condition:
Unit type equal to Boss
Action:
Create item
Create ...
...
 

NaPzt3R

You can change this now in User CP.
Reaction score
38
Won't work. The boss unit is used more than once in the map. :(

EDIT:
Official 300th post.
THIS IS SPARTAAAAAAA
 

Accname

2D-Graphics enthusiast
Reaction score
1,464
why wont it work? this trigger is running each time a unit of the type of your boss is dying. means if your boss dies it will drop the items.
if you just want a single boss-type unit to drop them save that unit in a variable and change the condition
 

NaPzt3R

You can change this now in User CP.
Reaction score
38
Either that or I could just turn of the trigger.

I'm not thinking clear right now. I should go to bed.
 

Accname

2D-Graphics enthusiast
Reaction score
1,464
maybe, that does help me very often.
i use to sleep about once every month to get my head clear, it really helps in creating maps. try it out!
 

NaPzt3R

You can change this now in User CP.
Reaction score
38
>about once every month
..right. :D

Thanks for the help. +rep
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top