HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Need some serious help here...

07-06-2003, 10:24 AM#1
Arche
Ok, I have quite a big problem here and whatever I do I can't find the error with it. I have made a spell that takes over control of a unit for a small amount of time. That thing works perfectly. But then I had an idea to make a floating text over the unit, displaying how much time it is left, the text is refreshed every 0.10 seconds to make the following effect. There are two errors that occure.

1. The first time I use the spell the text doesn't remove correctly, but rather stays at the place it was created. This only happens the first time, therefore it's very odd.

2. I make a unit array with two units in it to be able to have 2 units converted at the same time (cooldown 45 sec, 80 sec conversion at max level), and when I convert another unit the floating text over the first unit dissapears. Yes, I'm using two completely different triggers and variables to control both the countdown and the text, so it's nothing like that. I'll attach the map here so please, if you are skilled at wc3mapping, please take you time to help me.

Edit: By some strange reason, the map didn't be attached... I'll try again in a reply right now.
07-06-2003, 10:29 AM#2
Arche
Did the map become attached this time?
07-06-2003, 02:50 PM#3
HeX-MapMaker
I think I have the solution to your problem... however, I have not actually tested it out. I looked through your code. If I had come across the same situation as yours, I would have done it quite differently.

I noticed you had created a Unit Array suggesting a conversion of multiple units at a single time during the game. However, what you should do is to create an array of Floating Texts and an array of Count Down Integers so that each element of the Floating Text Array corresponds with each element of converted Unit Array, which in turn corresponds with each element of the Count Down Array.

With this in mind, only three triggers are necessary; one to actually convert the unit, one to start the timer countdown, and finally one to refresh the position of the floating text.

I think this should help you. However, if you need more information such as the actual triggering event/condition/action lines, let me know. :D
07-06-2003, 03:03 PM#4
Arche
Quote:
Originally posted by HeX-MapMaker
I think I have the solution to your problem... however, I have not actually tested it out. I looked through your code. If I had come across the same situation as yours, I would have done it quite differently.

I noticed you had created a Unit Array suggesting a conversion of multiple units at a single time during the game. However, what you should do is to create an array of Floating Texts and an array of Count Down Integers so that each element of the Floating Text Array corresponds with each element of converted Unit Array, which in turn corresponds with each element of the Count Down Array.

With this in mind, only three triggers are necessary; one to actually convert the unit, one to start the timer countdown, and finally one to refresh the position of the floating text.

I think this should help you. However, if you need more information such as the actual triggering event/condition/action lines, let me know. :D


Yes I know I did it like that at first, it didn't work, so I tried two different variables. I know it's clumpsy, but I made the different triggers at different times. When I get it to work, I will remake both this and the invisibility Aura (Even worse ;) )
07-06-2003, 03:20 PM#5
HeX-MapMaker
I request permission to edit your map to try out some different methods of solving your problem.
07-06-2003, 03:58 PM#6
Dead-Inside
I can tell you the answer... DO IT...

You don't need to ask for permission if he posts the map.
07-06-2003, 04:22 PM#7
Raptor--
i fixed them both by moving 2 actions, never rely on waits
07-06-2003, 04:31 PM#8
Raptor--
it looks a lot better with .01 second delay, its very persistant, but then u have a trigger running a lot...
07-06-2003, 05:21 PM#9
Arche
Thank you!
I should have done it that way in the first place, I just didn't think to much, and I also didn't know the unreliability with the wait trigger :gsmile: