| 02-04-2004, 06:16 PM | #1 |
Ok here we go. I'm working on a Thief like map, so i need the units patrolling in the map to have some kind of FOV (Field of View). And once again, i tried to look around in the Forum, but i really couldn't find anything useful, so now ill try asking here. It's like in Commandos, so they'll only react on the things in their FOV. The other thing, Is it possible to remove/add Items to shops, or do i have to replace the shop in question with another one to make it Sell different Items. Thanks ;) |
| 02-04-2004, 07:10 PM | #2 | |
Quote:
There are neutral trigger actions to add and remove items from a marketplace. You must use a marketpace though, and not a goblin merchant, etc. |
| 02-04-2004, 08:17 PM | #3 |
I believe I've figured this out. Go to gameplay constants, and set the "call for help' radius to zero. I'm pretty sure thats it. |
| 02-04-2004, 08:21 PM | #4 |
call for help radius says what radius allies(other creeps) will run to a creep who is under attack. In answer to your first question: No, there is nothing that will easily do what you want. You can try a trigger that fires when someone acquires a target, check the facing of the unit who acquired the target, and cancel the order if the unit isn't facing their target. |
| 02-04-2004, 08:24 PM | #5 |
Sorry but I'm gonna have to disagree, theres two different variables, one is Call for help radius, and the other one is Call for Help Radius (Creeps) |
| 02-05-2004, 12:36 AM | #6 |
same thing...one works for creeps, one works for player/computer controlled units. The range at which more units will be drawn into the conflict. |
| 02-05-2004, 01:07 AM | #7 |
Which is what he was looking for, was it not? |
| 02-05-2004, 01:20 AM | #8 |
It is not. fov...field of view. A unit doesn't attack (can't see) something which is outside of it's field of view/line of sight. |
| 02-05-2004, 01:24 AM | #9 |
Yea, that's how you prevent the cheat "Iseedeadpeople" just make a rifleman with long rnage but cruddy FoV. Turns on "Iseedeadpeople", sees the whole map, rifleman sees the unit, BAM! Dead, cheat detected. |
| 02-05-2004, 02:04 AM | #10 | |
Quote:
Right, so if a unit is attacked ont he other side of a wall, which is blocking the sight of the unit that isnt being attacked, the unit on the other side wont try to find a way to help the unit being attacked. As long as the FoV and the aquisition range are the same, I can't see a reason for this not to work.... |
| 02-05-2004, 04:32 AM | #11 |
The thing is field of view is not just a radius.. it's also an angle of what u can see.. Code:
\ / <-field of view
\/
o <-unitu get it? O.o |
| 02-05-2004, 10:59 AM | #12 |
Ahhh..... that would be incredibly hard to detect, then..... Sorry for the waste of posts.:D s |
| 02-05-2004, 11:57 AM | #13 | |
Quote:
okay...if you want neutral units patroling your map, you'll need to add the "wander(neutral)" ability...otherwise, you'll have to use a trigger. |
| 02-05-2004, 12:44 PM | #14 |
This is very hard trigger but well i will try to squeeze my brain to give you a way to do it.... 1) you can create a FoV area something like a rectangle (because all area are square like) ex: I I FoV---> I I I I unit---> 0 then displace the area in front of the unit setting the area always facing the unit and in front of it...and use the unit enter area to detect... but this will be crazy like hell to do with a lot of units...need tones of area and trigger and it will lag lot lot.... 2) make the thief invisible, make an attack or an ability like the drunken master panda fire breath with distance and wideness, the ability fire every sec and if it catch something, make the unit visible. pretty hard and not sure it is working. question: should the field of vue being visible by the thief?? 3) make an invisible unit called FoV with sight and acquisition range 100, and make the normal visible unit follow the invisible one, so the unit will always face the Fov...and if a unit go near the Fov the Fov will attack and make the alarm. you can also make the thief invisible and the Fov get the see invisible unit so when the thief will go away the Fov he will become again unseen. 4)make an ability like the goblin shop or the farseeing ability, and make unit cast in front of them at 200 or 400 this ability every sec with a seeing range of 100 or 200 for the ability (with detect invisible if needed. 5)hum....still thinking i will edit later if i find something new..... EDIT........................................................................................... ok here is the little map i just made with the trigger, i made it in 10 min so it isn't great but it give you an idea of what u can do. how can i attach the map???? i don't see any option emote_sweat |
| 02-05-2004, 01:47 PM | #15 |
here it is |
