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

*thread number 2*

Status
Not open for further replies.
Level 2
Joined
Jul 9, 2011
Messages
15
Would you please translate this to JASS?
Code:
if(playername(red)!=XXX) then
Will help alot! Thanks!
 
Last edited:
I need function which by a certain string typed by red, map will go back and forth between as if A or B was written: (eg: *game acts as if A was written* *red: "dodo"* *game acts as if B was written* *red: "dodo"* *game acts as if A was written*)

if you want a correct answer then I guess you should clear what you really want, map back and forth from what I understand is switch between maps and uses game caches...

but if you just want to type(chat) to execute A & B, then the code you made is poor, use this instead...

JASS:
function face takes nothing returns nothing
    call SetUnitFacing(udg_testunit, GetUnitFacing(udg_testunit)+180)
endfunction

function InitTrig_Chat takes nothing returns nothing
    set gg_trg_Chat = CreateTrigger(  )
    call TriggerRegisterPlayerChatEvent(gg_trg_Chat, Player(0), "chat", true)
    call TriggerAddAction( gg_trg_Chat, function face)
endfunction
 
Status
Not open for further replies.
Top