Bitmap {
Image "",
ReplaceableId 1,
}
Thanks for the explanation, but I wanted to add the object models of the items with each one having a glow of a color based on the rarity of the item.Of course it is possible. You can use
as a texture for your material.JASS:Bitmap { Image "", ReplaceableId 1, }
Keep in mind that applies for geosets and not for ParticleEmitters.
The color of a particle effect in Warcraft III cannot be directly changed to player color using the ParticleEmitter2 system or its configuration. ParticleEmitter2 is limited in its ability to dynamically adapt to player colors because it relies on static values for its parameters.
Can you post the special effect you used?Thanks for the explanation, but I wanted to add the object models of the items with each one having a glow of a color based on the rarity of the item.
Example uncommon item with green glow, rare item with blue glow and so on.
Thanks, I'll try that.You can create a Special Effect anywhere on the map using triggers:
So nothing is stopping you from creating a Special Effect at the position of an Item.
- Set Variable Point = ...
- Special Effect - Create a special effect at Point using Glow.mdl
You can then use an Item Indexer to link the Item and the Special Effect together:
Which makes destroying the Special Effect later on as simple as this:
- Set Variable Item = (Some item)
- Set Variable Point = (Position of Item)
- Special Effect - Create a special effect at Point using Glow.mdl
- Set Variable Item_Glow[(Custom value of Item)] = (Last created special effect)
Then when a unit Loses an item you can repeat this process and create the Special Effect again. Just remember to check if the lost item actually exists, since it may have been sold to a shop and removed from the game permanently.
- Events
- Unit - A unit Acquires an item
- Conditions
- Actions
- Set Variable Item = (Item being manipulated)
- Special Effect - Destroy Item_Glow[(Custom value of Item)]
Thank you, it was exactly what I was looking for.There you go, thats the chest used in the map.