Ray of light - Item sparkle on the ground for one particular item

So in gameengine.dbr there is a sparkle for every kind of item (rare, epic, legendary…) like
legendaryItemSparkle,records/fx/itemfx/lootsparkle04_fx.dbr
I would like to make a special ray of light for one item on the ground that replace/adds to the original sparkle, is it possible?

I don’t know if it’s possible because you need to add something to the template.

You should actually be able to do that by looking at the fx dbr file and locating what .pfx file it is looking at for the sparkle. Then, in the Particle Editor, you can add a beam of light by fiddling with the options or finding a different effect that has a beam of light, editing it to your preference, and then pointing the sparkle dbr to that pfx instead of the normal one.

Yes but I don’t want to change the sparkle of all items from a category only a few special items.

Not going to work if you want this ray only visible when the special items lay on the ground as long as it is not an entire item type.

Edit: Wait…we have lua lol. Not really used to this yet.

You can create an effect entity and spawn it at the exact same coordinates as the item on the ground using the OnAddToWorld lua trigger. You just need to figure out how to destroy it afterwards again when the item is picked up.

Thank you Elfe, at least I could spawn an entity for 2-3 seconds that project a ray of light on the item location an notify the player that a special object lays on the ground.
The ray of light won’t last as long as the item is on the ground but the player will be aware.
But I think only questitem have a trigger for onpickup.

But how do you get the variable “objectID” that is needed to get the entity coordinates ?
For example I can call ItemonAddToWorld()
if I write ItemonAddToWorld into the trigger onAddtoWorld but if I can not call a function like
ItemonAddToWorld(objectID) ?

I think it gives the function the id as parameter by default but I didn’t test it.

It works ! Thanks!
Sorry , I did a mistake in the code on the first test.