| 09-05-2002, 03:49 AM | #1 |
For my boss in my action rpg... I made 3 units which are actually his attacks... The units use a green fireball model which hovers... In an event I have them unhide infront of the boss so it looks like he created 3 fireballs and throws them all in 3 different directions, thats what it looks like as upon there creation I have a unit issue order move to region in the boss room. They ignore your hero as there sight and accusition range is 100... But I want an event that occurs when you come in contact with them, like an event that damages the hero or stuns the hero or whatever... But I don't know how to do... I set there sight and accusition to 0 so I tried an event "when unit notices target is in range" So you would except the event should become activated if the fireball gets right beside you... But nothing, the event did not trigger. I also tried it with "when unit aqquires a target" but that also didn't work which didn't really make sense to me... Is there any other events or triggers that would work so I can make it if you come in contact with the fireball unit, the event triggers? also can you make unit movement speed faster then 1000? for the fireballs I wanted a movement speed of 1200... |
| 09-05-2002, 04:06 AM | #2 |
I found one event that is Specific Unit Event - Unit Notices Target In Range (player owned unit does not have this function). The only other way is to create a region that uses move region constantly on the unit (fireball in this case) and make it big so the unit will be in the center of the region and the rest will be your "attack range". Make another trigger that has the Event unit enters the attack range region and its action for the fireball to do whatever it need to attack. |
| 09-05-2002, 05:46 AM | #3 |
Anything other possible ways that wouldn't be so annoying to time? |
| 09-05-2002, 06:47 AM | #4 |
Guest | Since it sounds like the units are always on the map, you could simply use a Unit Within Range event. If they are created through triggers, you could use GoldenUrg's editor patch (goldenurg.tripod.com) and use is Add Trigger trigger. Or Use a periodic event (which would remain turned off until it is needed) to check to see if the unit is within a certain range of the fireball, and then either kill or damage any units. Event: Every .25 seconds of game time Actions: Pick every unit in (Unit within 70 of (Position of Fireball1) Matching ((matching unit) is a hero) equal to true) and Do Kill (picked unit) That uses Unit Group - Pick every unit... , Units in Range matching condition, and the conditions is Boolean, Unit Classification check. But you can modify it to suit your needs. |
| 09-05-2002, 08:28 AM | #5 |
Guest | at build time, u can't make an event that depends on a unit that isn't actually in teh map yet.. can you do it with GU's patch with the add trigger feature? Also if you tried to use unit enter's region and move the region around, the trigger will only remember the region's location at START time, and wont knows that is has changed position. Unit within range is the easiest, if you can't do it on the fireballs (cos they have unlimited fireballs or something) u can use it on the heros themselves |
| 09-05-2002, 10:24 AM | #6 | |
Guest | Quote:
they do this this way ??? i mean in starcraft , the region move and when something is trigger as the region change its position , the location should be at the region location not the starting 1.. pls tell me this i need it for my map or i have to change it |
| 09-05-2002, 06:11 PM | #7 |
But... I explained in my initial post that I did try both "when unit notices a target is in range" and "when unit aquires a target" it didn't work.. Yes the fieballs are always there... They just hide, they are initially hidden and an event triggers them to un-hide. Their sight is 100, their accusition is 100 and their range is 100... So I have no idea what the when unit notices target in range doesn't work... after they unhide they are issued an order to move to a certain region and I have gotten right in their way and touched them and my trigger doesn't activate after they have fired, they bounce back to the boss and hide again... Basicly the triggers I tried looked like... Event: When unit fireball01 notices target is in range Actions: Remove fireball01 from the game Unit: set life of hero1 to life of hero1 - 50 Pause hero1 wait 2.00 unpause hero1 so basicly I'm telling it to destroy the fireball if it hits you, but the trigger doesn't activate... I thought maybe it's because I issued the order to move that they don't notice you... But an enemy unit always takes priority over a movement command when it comes within within range... and the range, accusition and sight of the fireballs are 100... But the trigger doesn't activate when you touch them... I don't know why that method isn't working. I'll try some of the other mentioned methods above... |
| 09-05-2002, 06:52 PM | #8 |
can't use it on a unit that wasn't there at the beggining of the game? even if you add it to a unitgroup when you create it and then use the unitgroup? |
| 09-05-2002, 07:55 PM | #9 | |||
Guest | Quote:
So I give you an alternative solution(s) that WILL work and you ignore it? Do the Fireballs even have attacks? If not then they don't have a range to notice the unit in, or they probably aren't going to acquire a target. Quote:
Yes. The reason that you can't use a variable in Events is because the events are all registered at map initialization. But it is possible to register new events at any time, the default editor just doesn't give you that ability. GoldenUrg's patch adds a new action to register new events, so you could use any unit on the map at that time. Quote:
We're talking about an event that requires a unit. |
| 09-05-2002, 09:01 PM | #10 |
Yes I gave them an attack after and tested, still nothing. I made it so every .25 seconds it checks to see if there is a unit within 100 of the fireball and if so, runs the trigger. that didn't work either it is sooo frustrating |
| 09-05-2002, 11:43 PM | #11 |
Guest | What isn't working? |
| 09-06-2002, 12:47 AM | #12 |
The trigger isn't, no matter what I try it does not work... There are 3 fireballs placed on the map, hidden at first... At a certain point in the boss battle the boss moves up to the top of the screen and the 3 fireballs unhide... This works... The fireballs which are actual units, move quickly to a region in the boss room so it looks like the boss is hurling fireballs in 3 directions... I want it so if you come in contact with the fireball unit it dissappear and deals damage to you... THAT is the part that doesn't work. the fireballs unhide and move properly, but nothing happens when they touch you... and I have tried everything... I have given them an attack and made sure they are hostile towards you and given them 100 range, 100 accusition and 100 sight... I tried making it so when they notice your in range or aqquire a target, it triggers the actions to make the fireball vanish and the hero takes damage, but the fireball just keeps moving and sometimes moves around the hero because the hero is in the way and proceeds to it's destination... I tried to make it so ever .20 seconds it checks and runs the same trigger if a unit comes within 100 of the fireball. that also didn't work... |
| 09-06-2002, 12:52 AM | #13 |
Send me the map and I will figure out a trigger, it's hard when I cant see the other triggers to see if anything is conflicting. I won't change anything just will try to make it work. Send it to my email [email protected] and I will get it done :). |
| 09-06-2002, 03:57 AM | #14 | |
Guest | Quote:
I KNOW WHAT YOU'RE TRYING TO DO!! You've already explained it a number of times. You said you tried the periodic event, but it's not working. That isn't enough information! Reproduce your triggers here so we can see it, put in some display texts to find out what is going on (what triggers are running, what isn't, what values are etc), and tell us what is going on. Is your periodic trigger not running? Are the units not every being considered in range? Is the trigger you're calling not working properly? We can't help vagueness. |
| 09-06-2002, 04:25 AM | #15 |
Also, eh, this is probably your problem: Your green fireball itself is bigger than 100, so something would actually have to be inside it to trigger it's acquisition range. Set it to a higher value, and seeing as you probably are using triggers to make it explode, just disable it's attack in the unit editor so it only follows your move triggers instead of running off as soon as it sees the hero....unless that's what you want it to do :P |
