HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Advanced Obs ( modify TC's Chat )

06-03-2008, 02:46 PM#1
C0mm4nd3r
Hi im making a melee map like NGL Echo isles but with more functions for observers... but i thoug that i cant do it for observers... so i made 2 slots for player sand teh rest for observers.. now i added the functions etc.. but i dont want them to talk or to tell the players what the enemy is doneg so i hidded the chat, also from the F12 menu. Some days ago i finded the phantastic Tc's Chat ( http://wc3campaigns.net/showthread.php?t=91072 ), i want to implement it on my map but, if i do so observers ( as players ) will still be able to talk to players so waht i want is to only show the multyboard to the observers ( i will add a group of players and show it for them ) but i dont know jass, so i cant edit it.. well, i can read jass and understan some of it so i think i got the parts whitch i need to edit but as i said i dont know how to edit it... also i want to erase the "-name" function..

ChatStuff:
Collapse JASS:
function echo takes string s returns nothing
    call DisplayTextToPlayer(GetLocalPlayer(),0,0,s)
endfunction
i think that if instead of GetLocalPlayer etc i put in there the palyer group if will be done, isnt it?

CahtConverter:
Collapse JASS:
if SubString(GetEventPlayerChatString(),0,5)=="-name" then
     call SetPlayerName(p,SubString(GetEventPlayerChatString(),6,StringLength(GetEventPlayerChatString())))
   elseif SubString(GetEventPlayerChatString(),0,6)=="-color" then
     call SetPlayerColor(p,i2pc(S2I(SubString(GetEventPlayerChatString(),7,StringLength(GetEventPlayerChatString())))))
   endif
endif
endfunction

Maybe errassing "SetPlayerName(p,SubString(GetEventPlayerChatString(),6,StringLength(GetEventPlayerChatString()) ))" and instead putting " do nothing " will do it.

Please could someone help me? , Ty for all!

GGL&HF! CYA!


PD: i will release my map as open source for anybody who wants odd observer functions into theyr maps use mine as a base if they want even a tutorial ^^
The point of my map is to make ones like NGL but with new /better stuff, i will also add camera stuff and others. ALSO I ALLWAYS WILL GIVE CREDIT TO ORIGINAL AUTORS.