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

[JASS] Custom script

Status
Not open for further replies.
Level 1
Joined
Oct 25, 2016
Messages
4
hello guys

how to to change custom script to triggeringplayer

event: redplayer type "-music nightelf1"
blueplayer type "-music nightelf1"
etc.

action:
Sound - Stop music Immediately
Custom script: call PlayMusic (udg_Music[1])

for random
when player type -music random

Custom script: call PlayMusic (udg_Music[GetRandomInt(1,22)])

just like dota thank you.
 
Status
Not open for further replies.
Top