In W3edit i want to make it so no matter who i am i can do a act.
Like for jj's cheatpack, no matter what player you are, you can do that activator for cheats.
How do u do this in warcraft WE and in jass can u do it by itself and what would the code look like?
[Trigger Question] W3EDIT AND JASS
Moderator: Cheaters
-
- Senior Member
- Posts: 102
- Joined: June 17th, 2009, 11:31 pm
- Title: Assassin
-
- Grammar King
- Posts: 2119
- Joined: June 22nd, 2008, 10:11 pm
- Title: Worst human for 4eva
- Location: Mostly USEast
Re: [Trigger Question] W3EDIT AND JASS
I think the *fastest* (meaning the code runs fastest using this) way would be
call TriggerRegisterPlayerChatEvent( trigger, Player(0), "whateveryouwanttosay", true )
call TriggerRegisterPlayerChatEvent( trigger, Player(1), "whateveryouwanttosay", true )
etc.etc. all the way up to however many players you have, 11 being the very last player.
call TriggerRegisterPlayerChatEvent( trigger, Player(0), "whateveryouwanttosay", true )
call TriggerRegisterPlayerChatEvent( trigger, Player(1), "whateveryouwanttosay", true )
etc.etc. all the way up to however many players you have, 11 being the very last player.
(20:53:52) Bartimaeus: Thank you, Jen.
(20:53:56) Bartimaeus: Truly, you are wise.
Learn how to extract and read RAW Codes here!(23:44:12) Bartimaeus: I was in pubic school until middle school...
Need help? Click here and ask your question!
-
- Banned-To-Be
- Posts: 1378
- Joined: July 28th, 2008, 6:28 pm
- Title: Administrator
Re: [Trigger Question] W3EDIT AND JASS
or this
its what JJ uses
Code: Select all
function InitTrig_Gold takes nothing returns nothing
local integer hillo=0
set gg_trg_Gold = CreateTrigger( )
loop
exitwhen hillo>11
call TriggerRegisterPlayerChatEvent( gg_trg_Gold, Player(hillo), "-gold", false )
set hillo=hillo+1
endloop
call TriggerAddCondition( gg_trg_Gold, Condition( function Trig_Gold_Conditions ) )
call TriggerAddAction( gg_trg_Gold, function Trig_Gold_Actions )
endfunction

League of legends North America - Nietono
-
- Junior Member
- Posts: 36
- Joined: May 13th, 2007, 5:56 pm
Re: [Trigger Question] W3EDIT AND JASS
or just use
call TriggerRegisterPlayerEvent(Trig, "-", false) and then use substrings to detect the real command so you have the fewest amounts of events possible.
call TriggerRegisterPlayerEvent(Trig, "-", false) and then use substrings to detect the real command so you have the fewest amounts of events possible.