Destructible dropping item

Devrak

New Member
Reaction score
17
Trigger:
  • Mineral Rich Soil
    • Events
      • Destructible - A destructible within (Entire map) dies
    • Conditions
    • Actions
      • Set Soil_Pos = (Position of (Dying destructible))
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Destructible-type of (Dying destructible)) Equal to Mineral-Rich Soil
        • Then - Actions
          • Item - Create Mineral-Rich Soil at Soil_Pos
          • Destructible - Remove (Dying destructible)
        • Else - Actions
          • Destructible - Remove (Dying destructible)
    • Custom script: call RemoveLocation (udg_Soil_Pos)


What's wrong with this trigger? :nuts: It doesn't drop my item when I kill the destructible. :|
 

Asdfblah1

New Member
Reaction score
10
Try removing the destructible first (after you set the temp point). Then create the item.

Or try changing the event responses to triggering destructible.
 

AceHart

Your Friendly Neighborhood Admin
Reaction score
1,495
> Destructible - A destructible within (Entire map) dies

Did you read the hint that shows when selecting that event?
"Destructible in region" is limited to the first 64 it finds in that region.


If all else fails:
Event:
- Map init
Conditions:
Actions:
Pick every destructible in (Entire map) and do
- Trigger - Add to <some other trigger> the event: "(Picked destructible) dies"
 

Devrak

New Member
Reaction score
17
Try removing the destructible first (after you set the temp point). Then create the item.

Or try changing the event responses to triggering destructible.

Ok, I just found the problem: "Only the first 64 destructibles when this event is registered are monitored for death. It is best to use this event for regions containing only a few destructibles." :banghead:

Any idea of how I would work around this problem?
 

Devrak

New Member
Reaction score
17
Do you have more than 64 destructables in your map? Only 64 of them will be recognized as dying.

> Destructible - A destructible within (Entire map) dies

Did you read the hint that shows when selecting that event?
"Destructible in region" is limited to the first 64 it finds in that region.


If all else fails:
Event:
- Map init
Conditions:
Actions:
Pick every destructible in (Entire map) and do
- Trigger - Add to <some other trigger> the event: "(Picked destructible) dies"

Yes, I noticed this now. And yes, I have alot more then 64 destructibles. :) So, would the only way to fix this is to add tons of regions with no more then 64 destructibles in each? Your way didn't work for me, AceHart.
 

Chocobo

White-Flower
Reaction score
409
Pick every destructible in (Entire map) and do
- Trigger - Add to <some other trigger> the event: "(Picked destructible) dies"

works, you can try it.


>"Only the first 64 destructibles when this event is registered are monitored for death. It is best to use this event for regions containing only a few destructibles."
applies only to the preplaced events.
 

Devrak

New Member
Reaction score
17
Ah, that way works now, missed the "pick every destructible" part. :rolleyes: Well, I THINK it works. It took forever to load the map, wasn't able to play it. :eek:

I'll start making tons of regions instead and see if that works. T_T' Let's see, if I have 5400 destructibles and make regions with 60 destructibles in each region, then I would have to make.. 91 regions. Ouch.
 

Devrak

New Member
Reaction score
17
Damn, making tons of regions didn't work, my WC3 just shuts down. Time to scrap this idea then? :p
 

Devrak

New Member
Reaction score
17
Ok, solved my little problem, made the "mineral-rich soil" as passive units instead (number of passive buildings exceded 97/96 :p)

Thanks to everyone who helped me! <3
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top