[Trigger Question] W3EDIT AND JASS

General talk about editing, cheating, and deprotecting maps.

Moderator: Cheaters

User avatar
ilovepie
Senior Member
Posts: 102
Joined: June 17th, 2009, 11:31 pm
Title: Assassin

[Trigger Question] W3EDIT AND JASS

Post by ilovepie »

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?
User avatar
UndeadxAssassin
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

Post by UndeadxAssassin »

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.
(20:53:52) Bartimaeus: Thank you, Jen.
(20:53:56) Bartimaeus: Truly, you are wise.
(23:44:12) Bartimaeus: I was in pubic school until middle school...
Learn how to extract and read RAW Codes here!

Need help? Click here and ask your question!
User avatar
Lanaya
Banned-To-Be
Posts: 1378
Joined: July 28th, 2008, 6:28 pm
Title: Administrator

Re: [Trigger Question] W3EDIT AND JASS

Post by Lanaya »

or this

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
its what JJ uses
Image
League of legends North America - Nietono
Gwypaas
Junior Member
Posts: 36
Joined: May 13th, 2007, 5:56 pm

Re: [Trigger Question] W3EDIT AND JASS

Post by Gwypaas »

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.