You must be logged in to post messages.
Please login or register

Scenario Design
Moderated by Yeebaagooon, TAG

Hop to:    
Welcome! You are not logged in. Please Login or Register.1 reply, Closed
Age of Mythology Heaven » Forums » Scenario Design » < Effect name="Send Chat Fron Unit With Sound/Flash/Anim" >
Bottom
Topic Subject:< Effect name="Send Chat Fron Unit With Sound/Flash/Anim" >
damaskditager
Mortal
posted 10 October 2018 09:10 AM EDT (US)         
Hi everybody!
I made this trigger, it works perfect, but only one thing needed to add and I don't know how to do it . Please can you add Unit's name before text?

< Effect name="Send Chat Fron Unit With Sound/Flash/Anim" >
< Param name="PlayerID" dispName="From Player" VarType="player">1< /Param >
< Param name="SrcObject" dispName="Unit" varType="unit">default< /Param >
< Param name="Text" dispName="Text" VarType="string">Hello< /Param >
< Param name="Duration" dispName="Flash Sec" varType="float">5< /Param >
< Param name="Sound" dispName="Sound" varType="sound">chatreceived.wav< /Param >
< Param name="AnimName" dispName="Animation" varType="string">< /Param >
< Param name="LoopIt" dispName="Loop:" varType="bool">false< /Param >
< Command loop="" loopParm="SrcObject">trUnitSelect("%SrcObject%");< /Command >
< Command>trUnitHighlight(%Duration%, true);< /Command >
< Command>trChatSendSpoofed(%PlayerID%, "%Text%");< /Command >
< Command>trUnitSetAnimation("%AnimName%",%LoopIt%);< /Command >
< Command>trSoundPlayFN("%Sound%");< /Command>
< /Effect >

for example
("unitname": "text")
(Ajax: hello)

[This message has been edited by damaskditager (edited 10-10-2018 @ 09:16 AM).]

AuthorReplies:
TAG
That AoM Guy
(id: aom expert)
posted 26 October 2018 05:14 PM EDT (US)     1 / 1       
ask in the trigger request thread

Check out my YouTube
For live help with me, enter this chatroom. If I'm not on you can leave a message.
You must be logged in to post messages.
Please login or register

Hop to:    

Age of Mythology Heaven | HeavenGames