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

Possible to create a effect only visable for 1 player?

Status
Not open for further replies.
Level 16
Joined
Mar 3, 2006
Messages
1,564
Yes, here
  • Actions
    • Custom script: if GetLocalPlayer() == Player(0) then
    • -------- Change the string variable of the effect pathing to the path containing the effect you want --------
    • Custom script: endif
    • -------- Create the effect --------
______
_EDIT_

The trigger above is modified (corrected).
 
Last edited:

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,258
I think the effect has to be created for everyone otherwise it will cause the player to desynchronize. You can however change the path of the effect created to a null string so that no visible effect is created for some players. Remember that all players need the string to be cached otherwise they will desynchronize (best done in an initilization function).
 
Level 16
Joined
Mar 3, 2006
Messages
1,564
This is true, and the correct method is in the link I posited.

Starquizer's method will cause desync.

I tested it and it sadly desynced so sorry for that false info I gave earlier, I thought that only things that affect the map pathing and map pausing cause desync but I never knew about that thing Dr.S.G. mentioned "string is cached".
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,258
You just need to preload all string possibilites for the path on map initialization and it will never desynchronize. Once a string is made in WC3, it remains until the end of the map session.

You do still need to make the effect for everyone though, just you can change the model of the effect dependant on player. The reason for this is effects are a handle and any kind of handle creation or destruction outside of a few select types will cause players to desynchronize.
 
Status
Not open for further replies.
Top