• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Change Water (Get/For Triggering Player)

Status
Not open for further replies.
Level 16
Joined
May 1, 2008
Messages
1,605
Seas =)

Hey I want create a trigger that change the water color for the triggering player but I got some problems.

I added the event with another trigger:
  • Trigger - Add to Change Water <gen> the event (Player - (Picked player) types a chat message containing -water as A substring)
Now 1 Player type: -water red. I check the "red" ok - but how I get the "triggering Player" and only change the water for him?
I only find
  • Environment - Change water tinting color to (100.00%, 100.00%, 100.00%) with 0.00% transparency
but this would change the water for all T_T
 
  • Trigger
  • Events
    • Player - Player 1 (Red) types a chat containing -water as A substring
    • Player - Player 2 (Blue) types a chat containing -water as A substring
    • Player - Player 3 (Teal) types a chat containing -water as A substring
    • ...
  • Conditions
  • Actions
    • Custom script: if GetLocalPlayer() == GetTriggerPlayer() then
    • Environment - Change water tinting color to (100.00%, 100.00%, 100.00%) with 0.00% transparency
    • Custom script: endif
 
Status
Not open for further replies.
Top