HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Why doesn't this work?

01-26-2005, 05:21 PM#1
BattleBotv8.2
Some reason the second trigger won't fire. I've created 4 custom doodads based off of Lorderon Summer Rock Chunks. I changed the name of the doodad, changed the RBG and changed their health to 1.

Part 1: This triggers at .01 game time

Code:
Unit - Set Custom Value
Set Custom value of XUnit to (Random interger number between 2 and 4)

If/Then/Else
If:
(Custom Value of XUnit) Equal to 2
Then:
Destructible - Create
Create a Custom2 at Region1 facing (Random Angle) with scale 1.00 and variation 2
Else:

If/Then/Else
If:
(Custom Value of XUnit) Equal to 3
Then:
Destructible - Create
Create a Custom3 at Region1 facing (Random Angle) with scale 1.00 and variation 2
Else:

If/Then/Else
If:
(Custom Value of XUnit) Equal to 4
Then:
Destructible - Create
Create a Custom4 at Region1 facing (Random Angle) with scale 1.00 and variation 2
Else:

Code:
Event:
Destructible - Destructible within region dies
A destructible withing Region1 dies

Action:
Game - Text Message (Auto-Timed)
Display to (All Players) the text: Test
01-26-2005, 07:36 PM#2
tschig
Its because of the random integer, u see it could be

2, 2, 2 for all the rocks, or 2, 3, 2...

you must ensure that it uses the other integers after it has used the first one...

PS also make sure you connect the different if then else conditions...
01-26-2005, 09:01 PM#3
iNfraNe
I dont know what you are really trying to tell us, but this is NOT his problem. His problem is that the event doesnt fire when the destructible dies. I have no explaination for this.

Connecting the if/then/elses is not needed.
01-26-2005, 09:30 PM#4
Luzif3r
maybe its because these are doodads and not destructables? there is a difference..
01-26-2005, 11:19 PM#5
BattleBotv8.2
I based it off of Rock Chunks. I've used the same trigger on an untitled map when you open the World Edit and it works. Some times when I use normal rock doodads it works, other times it doesn't. If I change it so all of the stats are set to their defaults, it doesn't work.

Any idea why it's bugged?
01-27-2005, 04:46 PM#6
tschig
sry... misunderstood the question :8 ehm got no clue try using units with modified mdl files and a corresponding event...
01-27-2005, 06:37 PM#7
BattleBotv8.2
It works if I use a custom unit but I would really prefer a doodad if I could. Because I can see the rock's health, armor ect.
01-27-2005, 07:03 PM#8
SentryIII
This might sound stupid but... How are you killing it?
01-27-2005, 07:28 PM#9
tschig
to sentry, you smash it like any other destructable :\

Well you could make it unselectable, there is an option in the object editor, just tick it and you wouldnt have all the stuff showing up...
01-27-2005, 09:55 PM#10
BattleBotv8.2
What field do I edit? I cannot find the field you are talking about.
01-27-2005, 10:14 PM#11
tschig
hm must have remembered that wrong... anyway try this trigger:

Event

Unit - "rock" selected (under specific unit event)

Action

Unit - Replace "rock" with "rock" using "same as old unit" life and mana

try that, not sure about the angle though...