• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

How to make shadows on map +Rep

Status
Not open for further replies.
Level 10
Joined
Mar 16, 2009
Messages
354
Trigger it
Event - Map initalization
Action - Visabillity - Create a visabillity modifier for (player 1) emiting black mask over playable area.

then for your torch effect tou will need another trigger.
create a region the with the size of light you want emitted (it doesn't matter where on the map. You will also need a variable of type unit.)

Event - a unit obtains an item
Condition - item is equal to torch
Action - Region - move region (the one mentioned above) to unit position of manipulating unit.
- Set variable (the one mentioned above) = to manipulating unit
- Trigger turn off this trigger
- Trigger turn on (the trigger bellow)

This is the trigger bellow
Event - every .10 seconds of the game
Action - move region (the region mentioned above) to point of unit (the only varable I've mentioned.)

then the unit drops an item = to ur item trigger im sure you can do.

then you need to copy a set of these triggers with different varables for each player.

if you have any questions ill be sure to help
 
Level 2
Joined
Mar 30, 2009
Messages
30
did you forgot to mention that that 2nd region needs to emit visibility ?

If it works this way (has some logic), i didn't know it

The Sorrow
 
Level 8
Joined
Nov 9, 2008
Messages
502
How about simply making the default vision for your units very small and give this torch item an ability which increases vision?
Can't remember the ability, possible goblin scope of something it's called.
 
Level 8
Joined
Apr 6, 2009
Messages
254
How about simply making the default vision for your units very small and give this torch item an ability which increases vision?
Can't remember the ability, possible goblin scope of something it's called.

I tried this xD it didnt work with me, but i didnt try out the Goblin Scope thing, i will search for it and edit for results.
Trigger it
Event - Map initalization
Action - Visabillity - Create a visabillity modifier for (player 1) emiting black mask over playable area.

then for your torch effect tou will need another trigger.
create a region the with the size of light you want emitted (it doesn't matter where on the map. You will also need a variable of type unit.)

Event - a unit obtains an item
Condition - item is equal to torch
Action - Region - move region (the one mentioned above) to unit position of manipulating unit.
- Set variable (the one mentioned above) = to manipulating unit
- Trigger turn off this trigger
- Trigger turn on (the trigger bellow)

This is the trigger bellow
Event - every .10 seconds of the game
Action - move region (the region mentioned above) to point of unit (the only varable I've mentioned.)

then the unit drops an item = to ur item trigger im sure you can do.

then you need to copy a set of these triggers with different varables for each player.

if you have any questions ill be sure to help

Hmm, i will try it out :) Hope it works, will edit for results.
 
Status
Not open for further replies.
Top