HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Someone PLEASE tell me why this doesnt work!

07-07-2003, 08:52 AM#1
Silenkiller
Ok, tell me why the #@$% this trigger refuses to work?

Events - Time Elapsed Game time is 3.0 Seconds
Conditions -
Actions -

For each (integer a) 1 to 8, do (visibility - create an initially enabled visibility modifier for CompView[(Integer A)] emitting visibility accross (playable map area)]

Set visibility1 = last created visibility modifier


Now, in my next trigger i have the following,

Events-
Conditions-
Actions - Visibilty - Disable Visibility1
Visibility - Destroy Visibilty1


Now, why the crap DOESNT that work!? The visibility stays on. Yes, I have a run trigger action in another trigger so that it sets this off, and my Visibility1 isnt a array.

This should work! :nono: :nono:
07-07-2003, 10:24 AM#2
Dead-Inside
I think you've missdone something... Hmm...
07-07-2003, 11:12 AM#3
Vexorian
Your problem is that you need it to be an array, when you use last created visibility you are only talking about the visibility for Compview(8)

You 'll have to replace the for loop with a For loop (multiple)

Events - Time Elapsed Game time is 3.0 Seconds
Conditions -
Actions -

For each (integer a) 1 to 8, do Actions
-Loop Actions
-(visibility - create an initially enabled visibility modifier for CompView[(Integer A)] emitting visibility accross (playable map area)]
- Set visibility(Integer A) Last created visibility modifier

The next trigger:

Events-
Conditions-
Actions -
For each integer A from 1 to 8 do Visibility - Destroy Visibilty(Integer A)



I hope you have TFT , if you don't you will need to use custom text to make the for loop.
07-07-2003, 12:13 PM#4
Guest
I agree with Lord Vexorian with this one. You either can use custom text to make a multiple action Loop or you can use TFT's new feature Integer A 1-8 Multiple actions.

The only way last created will work the way you want it to is if its put into the same statement meaning that after you call the visibility modifer but before it repeats to the next interger number it needs to set an array.
07-07-2003, 03:33 PM#5
Silenkiller
Oh god.. here we go lol. Thanks for the help everyone.. i spent 5 hours looking at this bastard!


You know the weird thing tho? I got the @$@#$%'er to work at one point.. but then i couldnt repeat it.. weird.

Thnx again :D
07-07-2003, 03:39 PM#6
Dead-Inside
It's extremly stupid to do it this way, however!

You should use, for all players:
Pick (All Players) and do Create an intialy enabled visiblity modifyers for (Picked player)
Then set your variable...

Tada!
07-07-2003, 03:57 PM#7
Silenkiller
Ha, but what if i dont want all players eh =P

Eather way WILL work! Yes, I got my trigger to work.. had to set visibility(1) for compvis(1) and visibility(2) for comvis(2) then do my action destroy between 1 - 8 =D
07-07-2003, 04:15 PM#8
Dead-Inside
No no.. You can assaign a group for "Pick player". I meant a variable player group.