• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Destructible Issue

Status
Not open for further replies.
Level 3
Joined
Jun 15, 2008
Messages
23
I'm having a problem and stuck finding a decent way to solve this rock chunk idea im doing. What it is is tons of rock chunks spawn at the beginning of the game. And I want to set tags on random ones so they drop a unique item. So i went on with the idea, and i had to make an epic size map... when i didnt know when the only event you can select is, whenever a destructible dies (Only the first 64 destructibles in the region will be included). This killed my idea, i'm trying to find ways around it, I found out I'd need about less than 900 regions to monitor all rock chunks. I already even detailed and have a good terrain map.
 
Level 3
Joined
Jun 3, 2008
Messages
52
The easiest way to resolve that is to use "Rock Chunk" units instead of destructables. Then you add a trigger that monitors for "Generic unit event - Unit dies". But since it's an epic map and you've probably already put a lot of those rock chunks there, I'd say that's going be pretty tedious replacing all that. That's the problem with destructables...
 
Level 5
Joined
May 23, 2008
Messages
148
Why don't you simply roll a dice when a rock chunk dies?

Meaning: when a rock dies, then you set a random number between 1 and 100 and if it is <= 15 then the trigger spawns an item. X is the percent chance of 'dropping' an item.
 
Level 2
Joined
Jun 15, 2008
Messages
18
No need to use any triggers at all - double click any rock, go to the 'Items dropped' tab, 'Custom item table' create a 'New set', 'New item', pick whatever item you want to drop and set the chance to 1% (or whatever)

Problem with this is that you then have to manually select a bunch of rocks to select this new item table. Will probably end up being quicker than testing a bunch of triggers that may not work, and it has the advantage that you can play around with the item table very quickly once you've done the grunt work
 
Level 14
Joined
Nov 4, 2006
Messages
1,241
i think it will be much easier if you use a trigger, use the action Dagguh posted, that should work

  • Events
    • Destructable - A destrucable dies
  • Conditions
    • destrucable equal to rock chunk
  • Actions
    • set dropchance random integer between 1 and 100
    • if dropchance less or equal to XX create item at position of dying destructable, else do nothing
 
Level 17
Joined
Apr 13, 2008
Messages
1,608
He said he generates the rock chunks at the begining of the game.
Yea, just make them units, as it was already said, BUT
DON'T FORGET TO REMOVE LEAKS.
Do you know Goblin Experimentals? It's a nice map, it uses rock chunks the way you want to be used but the creator didn't remove leaks and the map is so horrible laggy after a few minutes of playtime.. Brr...
 
Status
Not open for further replies.
Top