HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

how to increase sight for heroes?

02-24-2004, 09:23 PM#1
xtacb
i want to make a binoculars item that when in the inventory of a hero will increase the daytime sight of the hero
i tried basing it on the goblin night scope but it only gives ultravision ability/effect and i dont know how to edit effects

i tried to use trigger when a hero is carrying specific item, create a visibility modifier on triggering unit but the thing is the visibility modifier doesnt follow around the hero, it just stays in one place

is there a way i can make it as if the line of sight of the hero has increased? another way i could do it is to set the item as a uses and create the visibilty modifier everytime i use the item but id rather have the item increase the sight range without having to use it

how should i do this?
02-24-2004, 09:31 PM#2
Mandrilx
Well, I bet there is a way to do it in normal WE, but I did an ability like that, and I use a trigger in WEU..... You should download WEU, its a preety good WE.
02-24-2004, 09:31 PM#3
Thrall_89
Hmmm... well, Im not the most knowledgable person when it comes to Visibility Range, but, I THINK that there is a trigger (I'm not on my computer right now, so I can't check). But search for something along the lines of Visibility triggers perhaps. Just a thought, sorry i cant be more specific, but you may just have to use triggers to do the alterations you want. Lemme know if you think that it may work, but you just can't figure it out exactly.
02-24-2004, 09:43 PM#4
xtacb
o yea also, if i did want to make the item binoculars have to be used first and then the visibilty modifier created, what condition would recognize the item being clicked on?

thats just a quick question on the side because i still want the binoculars to grant vision without being used
02-24-2004, 10:05 PM#5
SektorGaza
create an initially Enabled visibility modifier for Player(you) emitting visibility from (position of your unit) to a radius to (radius number)

when you exit binoculars, delete the modifier(maybe you should make into a variable array so it could be used by all players if its multiplayer map


question 2:
I suggest you make this modifier when item is picked up. much easier that way, but umm there's already an item like that, forgot what it's called, so what you can do is find what item that is :D and make the dummy binaculars at first, but when clicked for the first time, replace that item with the real binocular item that will let you see more
02-24-2004, 10:09 PM#6
gL.oW.eY
there is a thing for that in the "object Editor" but if u want more then that i aint sure
02-25-2004, 02:27 AM#7
xtacb
if i use the create visibitly modifier, it doesnt follow the hero around like increased sight would
it would only light up one area then i would have to drop the item and pick it up again which is not what i want to do,
i want it to be just like increased sight where it follows you wherever you go

and is the item in the object manager the crystal ball? that reveals any area of the map and you have to select where you want to reveal, whereas i just want the increased line of sight around the hero

about my second question, so what condition checks for a item clicked?
like how a inferno stone gets clicked once and something happens?
02-25-2004, 08:52 PM#8
xtacb
so how do i do this? make a binoculars item that when in the inventory of a hero will increase the daytime sight of the hero and not just stay in one place but will follow the hero as if sight is increased
02-25-2004, 09:24 PM#9
poolage
Add a custom ability to your hero encreasing his vision range, when he uses/picks up your item. When he drops it, remove the ability. In this case, you should also check for day/night change to make your item work when you want it.
Editing abilities is very easy, I am sure if you just give it a try you'll manage it.
02-25-2004, 09:32 PM#10
weaaddar
Now prey tell which ability increases sight?
02-25-2004, 09:36 PM#11
Aznwhore
Quote:
Originally posted by poolage
Add a custom ability to your hero encreasing his vision range, when he uses/picks up your item. When he drops it, remove the ability. In this case, you should also check for day/night change to make your item work when you want it.
Editing abilities is very easy, I am sure if you just give it a try you'll manage it.


learn to use WE's ability editor b4 u post!