| 03-01-2005, 02:02 AM | #1 |
Hi everyone. I'm trying to make a first person shooter map with two shooter options, a rifleman and an archer. I had this idea to have rifleman be more powerful during day, and the archer more powerful at night. The vision radius changes, but is there any way that I can also change their attack speed or range or movement speed or something like that depending on whether its night or day. Thanks for any and all help. |
| 03-01-2005, 02:13 AM | #2 |
Guest | ya all you need to do is make this trigger EVENT: Time - Every 1.00 seconds of game time ACTION: Wait until ((In-game time of day) Greater than or equal to 10.00), checking every 1.00 seconds Unit - Set (Picked unit) movement speed to (Default movement speed of (Triggering unit)) *NOTE* In the action for the movement speed change the picked unit to whichever you want, and in the time of day change the Greater than or equal to 10.00 to the correct time.. |
| 03-01-2005, 02:16 AM | #3 |
Download WEU (World Editor Unlimited) for triggers to change a units range, attack, etc.. You can check the time of day with this. Code:
Game - The in-game time of day becomes Equal to 12.00 |
| 03-01-2005, 02:27 AM | #4 |
Alright, thanks very much both of you. I think, however, that I'm going to go with Kaosmaster's idea, as the WE alone is a bit overwhelming to me at this point, and a 3rd party editor would be too much. :) |
| 03-01-2005, 02:45 AM | #5 |
That's fine but I want to point out that I don't think you can change the units attack speed with the normal World Editor triggers (unless you know some more complex way to do it). |
| 03-01-2005, 06:15 AM | #6 |
do use zandose's event though as opposed to kaos's, far too often do i see people relying on 'periodical triggers' for no apparent reason other than being unable to think in terms of catching events |
| 03-01-2005, 09:37 AM | #7 |
You can change attack RANGE with unit- set aquisition range, and you could change the speed by adding a passive ability based off gloves of haste. |
| 03-02-2005, 10:28 AM | #8 |
LOL... Acquisition range just changes the range from which the unit will locate and attack enemy units automatically. Practically if you use hold position with acquisition range 0, it will never attack unless you order the unit to attack. ~Daelin |
| 03-02-2005, 01:04 PM | #9 |
I know what aquisition range does. If you set it to a range LOWER than the units attack range, however, it will only attack units within its aquisition range, even when you order it to attack. Changing aquisition range even changes what the attack range is shown as when you hover over the attack icon, IIRC. Check it. It has all the effects needed, although it will only allow you to set their range within the attack range specified in the unit editor. It changes the range the unit can attack AT, not only the range at which they auto aquire enemies. |
| 03-02-2005, 01:08 PM | #10 |
Yep, set at aquisistion range to 0, a unit can't attack anything even if you tell it to. |
| 03-02-2005, 03:12 PM | #11 |
Okay, I see there are a lot of things to clear up in this thread. First of all, KaosMaster's trigger is a bunch of incoherent nonsense that, even compared to other nonsenses, makes particularly little sense. Second, Zandose, you don't need any advanced editors for changing unit's movement and attack speeds, as Hyarion already suggested. Thirdly, there is all this mess about what acquisition range actually does. That's because the whole thing was made a mess by Blizzard. It is true, the acquisition range you set in the editor will clamp down the unit's attack range, so a unit with 1800 attack range and 800 acquisition range will only be able to attack at a range of 800. However, when setting the acquisition range with triggers, it's different. With triggers, you change the range at which the unit acquires targets by itself, but that doesn't change the attack range of the unit. The attack range is still equal to the attack range or the acquisition range you set in the object editor, whichever is smaller. |
| 03-02-2005, 03:24 PM | #12 |
Finally somebody believes me. You know what, you can try to create to archers both for player 1 (Considering you control them), set with a Melee Initialization trigger one of them's acquisition range to 0 and order them to attack each-other. You will see what happens... ~Daelin |
