• 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.

[Trigger] Need help with spell

Status
Not open for further replies.
Level 1
Joined
Jul 19, 2008
Messages
5
Me and my friend is trying to create a spell that creates a big shadow, which the casting hero can blend into.

We tried having the Blight placement as base and do the effect in trigger editor, but since we are kind of new to the trigger editor, we didnt know what to do.

Would be great if someone helped us :)
 
Level 6
Joined
Jul 25, 2005
Messages
221
This might be of assistance.

There are three seperate triggers.

Trigger one, Shadowish Spell
  • Shadowish Spell
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Your Spell
    • Actions
      • -------- Variables are your friend. Creating them allows you to use more general triggers, not just for a specific unit. --------
      • -------- Open the variable tab by either pressing the X in the trigger editor or by pressing CTRL+B. --------
      • Set variabletype_Unit = (Triggering unit)
      • Set variabletype_Player = (Owner of (Triggering unit))
      • Set variabletype_Point = (Position of (Triggering unit))
      • Set variabletype_TerrainType = (Terrain type at (Position of (Triggering unit)))
      • -------- Create some cool color changes and make him a little transparent. --------
      • Animation - Change (Triggering unit)'s vertex coloring to (50.00%, 50.00%, 50.00%) with 25.00% transparency
      • -------- Set the time for your timer to say how long you want your trigger to be active. --------
      • Countdown Timer - Start variabletype_Timer as a One-shot timer that will expire in 30.00 seconds
      • -------- Turn on the trigger that creates blight. --------
      • Trigger - Turn on Shadowish Spell Create Blight <gen>
Trigger two
  • Shadowish Spell Create Blight
    • Events
      • Time - Every 0.05 seconds of game time
    • Conditions
    • Actions
      • -------- Here we start with removing the last created blight, so that the whole map won't be filled with blight as he goes about. --------
      • -------- This is so that we can remove the blight region where your unit stood before if he had been moved. --------
      • Environment - Remove Blight for variabletype_Player from variabletype_Point to a radius of 200.00
      • -------- Now we change the point, the location of which the blight is created, to where your unit currently stands --------
      • Set variabletype_Point = (Position of variabletype_Unit)
      • -------- And creates new blight for him. --------
      • Environment - Create Blight for variabletype_Player from variabletype_Point to a radius of 200.00
      • -------- If you have a dummy unit that gives off a shadow you wish to follow your unit around just add the following --------
      • Unit - Move (Your Dummy Unit) instantly to (Position of variabletype_Unit)
Trigger three
  • Timer Expires
    • Events
      • Time - variabletype_Timer expires
    • Conditions
    • Actions
      • -------- When the timer expires it will do these actions, it can be the end of your spell. --------
      • -------- So, we turn of the creation trigger. --------
      • Trigger - Turn off Shadowish Spell Create Blight <gen>
      • -------- Remove any blight that might have been created. --------
      • Environment - Remove Blight for variabletype_Player from variabletype_Point to a radius of 200.00
      • -------- And change back to his normal color and transparency. --------
      • Animation - Change variabletype_Unit's vertex coloring to (100.00%, 100.00%, 100.00%) with 0.00% transparency
 
Level 1
Joined
Jul 19, 2008
Messages
5
This might be of assistance.

There are three seperate triggers.

Trigger one, Shadowish Spell
  • Shadowish Spell
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Your Spell
    • Actions
      • -------- Variables are your friend. Creating them allows you to use more general triggers, not just for a specific unit. --------
      • -------- Open the variable tab by either pressing the X in the trigger editor or by pressing CTRL+B. --------
      • Set variabletype_Unit = (Triggering unit)
      • Set variabletype_Player = (Owner of (Triggering unit))
      • Set variabletype_Point = (Position of (Triggering unit))
      • Set variabletype_TerrainType = (Terrain type at (Position of (Triggering unit)))
      • -------- Create some cool color changes and make him a little transparent. --------
      • Animation - Change (Triggering unit)'s vertex coloring to (50.00%, 50.00%, 50.00%) with 25.00% transparency
      • -------- Set the time for your timer to say how long you want your trigger to be active. --------
      • Countdown Timer - Start variabletype_Timer as a One-shot timer that will expire in 30.00 seconds
      • -------- Turn on the trigger that creates blight. --------
      • Trigger - Turn on Shadowish Spell Create Blight <gen>
Trigger two
  • Shadowish Spell Create Blight
    • Events
      • Time - Every 0.05 seconds of game time
    • Conditions
    • Actions
      • -------- Here we start with removing the last created blight, so that the whole map won't be filled with blight as he goes about. --------
      • -------- This is so that we can remove the blight region where your unit stood before if he had been moved. --------
      • Environment - Remove Blight for variabletype_Player from variabletype_Point to a radius of 200.00
      • -------- Now we change the point, the location of which the blight is created, to where your unit currently stands --------
      • Set variabletype_Point = (Position of variabletype_Unit)
      • -------- And creates new blight for him. --------
      • Environment - Create Blight for variabletype_Player from variabletype_Point to a radius of 200.00
      • -------- If you have a dummy unit that gives off a shadow you wish to follow your unit around just add the following --------
      • Unit - Move (Your Dummy Unit) instantly to (Position of variabletype_Unit)
Trigger three
  • Timer Expires
    • Events
      • Time - variabletype_Timer expires
    • Conditions
    • Actions
      • -------- When the timer expires it will do these actions, it can be the end of your spell. --------
      • -------- So, we turn of the creation trigger. --------
      • Trigger - Turn off Shadowish Spell Create Blight <gen>
      • -------- Remove any blight that might have been created. --------
      • Environment - Remove Blight for variabletype_Player from variabletype_Point to a radius of 200.00
      • -------- And change back to his normal color and transparency. --------
      • Animation - Change variabletype_Unit's vertex coloring to (100.00%, 100.00%, 100.00%) with 0.00% transparency

i have done everything, exept the dummy trigger, thanks for the help, it works fine, but i have a question, can i make the blight black in some way?

I guess you can like create a model for it, or something like that, but nor my friend and i know anything about modeling.

So my question is basicly, if i can make the blight be black/blacker in some easy way?
 
Level 6
Joined
Jul 25, 2005
Messages
221
Yes, I find it fairly easy, what you need is some sort of paint program that can handle .tga files, such as Photoshop.

First, extract the tileset you wish to edit using this program: Warcraft III Image Extractor - The Hive Workshop - A Warcraft III Modding Site, the tilesets are in the mpq files in your warcraft directory. They are in "TerrainArt". Remember to save your extracted image as .tga so that you can edit it.

Secondly, you open it up in a paint program, I myself use Photoshop :cute:
Edit them to your liking, then save them as .tga

Thirdly, you need to convert it back to .blp, doing this you use the Image Extractor once more. Open your edited .tga file in Image Extractor then save it as .blp and import it to your map using the path you extracted the original tile from, example: TerrainArt/Ashenvale/Ashen_Dirt_Edited.blp

Now, restart your WE and it should work.

Also, this is not considered modeling, it's more like editing textures. This can be done with units as well :wink:
 
Level 1
Joined
Jul 19, 2008
Messages
5
Yes, I find it fairly easy, what you need is some sort of paint program that can handle .tga files, such as Photoshop.

First, extract the tileset you wish to edit using this program: Warcraft III Image Extractor - The Hive Workshop - A Warcraft III Modding Site, the tilesets are in the mpq files in your warcraft directory. They are in "TerrainArt". Remember to save your extracted image as .tga so that you can edit it.

Secondly, you open it up in a paint program, I myself use Photoshop :cute:
Edit them to your liking, then save them as .tga

Thirdly, you need to convert it back to .blp, doing this you use the Image Extractor once more. Open your edited .tga file in Image Extractor then save it as .blp and import it to your map using the path you extracted the original tile from, example: TerrainArt/Ashenvale/Ashen_Dirt_Edited.blp

Now, restart your WE and it should work.

Also, this is not considered modeling, it's more like editing textures. This can be done with units as well :wink:

Once more, thanks alot! :)

Edit: Wait, somethings not right here, its black in world editor, but not in the game, any thoughts?
 
Status
Not open for further replies.
Top