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

[Solved] Chat Bubble display when talking

Status
Not open for further replies.
Level 20
Joined
Jul 14, 2011
Messages
3,213
Hi!

I'd like to know how to display the "Silence" icon/Buff/model for 1 second over the player hero in the RPG who's talking.

I Say: Me! -> Silence model appear in my hero overhead for 1 sec, with no effect at all.
 
Level 37
Joined
Mar 6, 2006
Messages
9,243
  • Untitled Trigger 004 Copy
    • Events
      • Player - Player 1 (Red) skips a cinematic sequence
    • Conditions
    • Actions
      • Custom script: local effect e
      • Set u = Paladin 0059 <gen>
      • Custom script: set e = AddSpecialEffectTarget("Abilities\\Spells\\Other\\Silence\\SilenceTarget.mdl", udg_u, "overhead" )
      • Custom script: call TriggerSleepAction(1)
      • Custom script: call DestroyEffect(e)
      • Custom script: set e = null
When ESC is pressed, the effect will appear on unit u for 1 second.
 
Level 20
Joined
Jul 14, 2011
Messages
3,213
GREAT! EXCELENT!

Two things:

1) How can I trigger when the player types anything?
2) How can I avoid the "OOOUUUHM" sound? i just want the icon :D
 
Level 20
Joined
Jul 14, 2011
Messages
3,213
It means it can't be removed?

  • Untitled Trigger 001
    • Events
      • Player - Player 1 (Red) types a chat message containing as A substring
    • Conditions
    • Actions
      • Custom script: local effect e
      • Set u = Heroes[(Player number of (Triggering player))]
      • Custom script: set e = AddSpecialEffectTarget("Abilities\\Spells\\Other\\Silence\\SilenceTarget.mdl", udg_u, "overhead" )
      • Custom script: call TriggerSleepAction(1)
      • Custom script: call DestroyEffect(e)
      • Custom script: set e = null
The "Exact Match" don't have a "True" or "False"...
 
Level 20
Joined
Jul 14, 2011
Messages
3,213
Like this?

  • Untitled Trigger 001
    • Events
      • Player - Player 1 (Red) types a chat message containing as A substring
    • Conditions
    • Actions
      • Set u = Heroes[(Player number of (Triggering player))]
      • Custom script: AddSpecialEffectTarget("Abilities\\Spells\\Other\\Silence\\SilenceTarget.mdl", udg_u, "overhead" )
      • Custom script: call TriggerSleepAction(1)
      • Custom script: call DestroyEffect(AddSpecialEffectTarget("Abilities\\Spells\\Other\\Silence\\SilenceTarget.mdl", udg_u, "overhead" ))
 
Maker has shown him that and since he quite don't get whats going around he probably didn't get that idea too ^^

Pharaoh_ actually meant to cut this part:
  • Custom script: local effect e
  • Custom script: set e = AddSpecialEffectTarget("Abilities\\Spells\\Other\\Silence\\SilenceTarget.mdl", udg_u, "overhead" )
  • Custom script: call DestroyEffect(e)
  • Custom script: set e = null
Into:
  • Custom script: call DestroyEffect(AddSpecialEffectTarget("Abilities\\Spells\\Other\\Silence\\SilenceTarget.mdl", udg_u, "overhead"))
Although there is one problem Pharaoh_ -> he wants the effect to stay for a while, thats why local is needed.
 
Level 20
Joined
Jul 14, 2011
Messages
3,213
Oh! Don't worry!

I tested what Pharaoh_ said and works good. I just wanted to difference the heros. Since they are based on the Villager model, they don't have custom player colors, and if one of them is saying "HEAL" or "HELP ME" the others know who said it. =)

EDIT: Hmmmmm.. the health bar sometimes hides the icon I guess players will have to live with it xD

The other problem remains :p How to make it display when anything is typed? I set it when a space is typed :p But would work only for two words messages :D

EDIT: Ok... made 5 events for typing a blank space on any message, and another 5 events when any of the 5 players skips a cinematic. If a player needs help or something he can just press Esc repetidly and the icon will display =)
 
Lol..
For any chat message just enter: <Empty string>. To do so, click on red underlined keyword 'Text' (while event Player - Chat Message is selected) so new window will appear. Now just click 'Ok' and you have your 'every message'. Ensure that 'A substring' option is chosen too.

  • Player - Player 1 (Red) types a chat message containing <Empty String> as A substring
Will react on each message written by player 1 (red).
 
Status
Not open for further replies.
Top