HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

*Picking destructables* help please!

11-22-2004, 11:47 AM#1
Kalvorod
I am currently making a map that starts with a LOT of destructables. All of them are the same, and are separated into regions. I need to know how I can pick random destructables and change them into different ones.

IE have a tree become a different kind of tree.

Don't bother asking why, as I want it to be a secret until I am done, which if I can get help with this, might be just after Thanksgiving.

Just so no one gets confused I have had two results so far by using a For Integer A loop and kill random destructables/create destructable in dying destructable's position
1) It destroys 1 rock and creates everything in that same place
or 2) it destroys a whole bunch of rocks, but nothing is created.

Please help on this
11-22-2004, 01:31 PM#2
Guest
I don't get whats wrong. You got it to change into something else.
11-22-2004, 01:44 PM#3
Kalvorod
@ Z...something or other >> Currently I have only been able to get the trigger to kill *1* Rock and create 200 of the new thing in that 1 place. OR I have also been able to kill the 200 rocks, but then *NONE* of the new things appear. I'll try to explain this a little better.


I have a map filled with rocks, ok? I want in my first region(closest to the players) for only *some* of the rocks to be destroyed, and in thier place to have, let's say trees, trees put in each of thier places. So currently I have this. There are around 640 rocks, but I only want 200 to change.

Event:Map Initialization
Condition:
Action:
>For Integer A 1-200
>>Kill (Random Destrucible in (Region 000))
>>Create (1 Lorderan Tree at (Position of (Dying Destructible)) facing 0*)

That's more or less my trigger. I tryed adding a wait command, but nothing changed except for the time it took for them to gbe created.

The reason behind this would be that the player would need to dig through rocks with units in order to find the reasorces. The map is a little different, but this is what I need to be able to do.
11-22-2004, 03:09 PM#4
Guest
ok i get that you want to replace some doodads with other ones but whats going wrong? Like whats not working.
11-22-2004, 07:49 PM#5
Kalvorod
Um, that's EXACTLY WHAT I'M ASKING! I mean, COME ON! If I knew what was going wrong, why would I even post this message asking why is it not working?

I hope you'll understand what I'm saying. Before posting next time, would you mind trying to test it on a small scale, say 4, and see if maybe you can figure out what is wrong? I can make it work, but the ways that I have figured out involve a much more complex procedure than what I have layed out there.

1) Re-Position a region after each kill, which is what I will try in the mean-time while waiting for someone's interpretation on how to do this trigger without taking too much space.
and
2) Maybe if I shorten the death time of the rocks, it will work, which I will also try now, though this would mean that after killing a rock, it just dissappears which will not be very rewarding for players who smash through it, so I would like to avoid this if posible.

If anyone has any ideas on the best way to do this, please PLEASE post soon, I want this map done by next week, so the sooner I get this, the quicker I can balance and re-balance.

Come on, someone has to have SOME ideas?
11-27-2004, 03:43 AM#6
Kalvorod
Would it just be easier to make units instead of destructables? I mean, for picking, not for standing. For example.

Pick random units
>kill picked unit
>create destructable at (picked unit)

Would that work? I would prefer not to get any units involved, because units can only have one modle, so the variations would not work, and I would therefore have to delete all 640 units and create a new one right off the bat, which might lag people out. I'm trying to avoid this.

I was hoping to have this map done by now, but I haven't recieved any responce.

(If I sound like I am talking to myself, that means I don't expect a responce :( )
11-29-2004, 12:51 AM#7
Kalvorod
Any ideas how i can do this??? there must be some?

I need to fill an entire map with these things. If i need to have units be placeholders for them, then I need a way to make it so it does lag the game. Everytime i start the map filled with units like this it freezes the computer.