[Help] Add A Trigger

General talk about editing, cheating, and deprotecting maps.

Moderator: Cheaters

kietne19
Newcomer
Posts: 9
Joined: June 21st, 2009, 2:15 am

Re: [Help] Add A Trigger

Post by kietne19 »

Hello, I've a proplem again
I open this map and extract war3map.j then use Jasscraft To add ...script
_And This is How I did it ...
_Under Globals I Paste this Script
Spoiler:
trigger gg_trg_AAAA = null
_under EndGlobals i Paste this Script
Spoiler:
function Trig_AAAA_Actions takes nothing returns nothing
call AddHeroXPSwapped( 1000, GroupPickRandomUnit(GetUnitsSelectedAll(Player(0))), true )
endfunction

//===========================================================================
function InitTrig_AAAA takes nothing returns nothing
set gg_trg_AAAA = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_AAAA, ConvertedPlayer(1), "qwertyuiop", true )
call TriggerAddAction( gg_trg_AAAA, function Trig_AAAA_Actions )
endfunction
_Under Function Main I paste this Script (under Local too)
Spoiler:
call InitTrig_AAAA ()
+When I Start game It make an error something about war3map.w3i and Close Game
+Did I Done Anything wrong ?
You do not have the required permissions to view the files attached to this post.
kietne19
Newcomer
Posts: 9
Joined: June 21st, 2009, 2:15 am

Re: [Help] Add A Trigger

Post by kietne19 »

Someone help me please !!
User avatar
haxorico
Super Moderator
Posts: 3195
Joined: February 24th, 2009, 1:31 pm
Location: JEW LAND
Been thanked: 1 time

Re: [Help] Add A Trigger

Post by haxorico »

Have you deleted (attributes) (from the MPQ Archive not war3map.j)
And have you pasted the function main part under all the locals?
Image
Spoiler:
(02:24:09)

Code: Select all

ChatBot: FatherSpace logs into the Chat.
(02:24:28) Lanaya: Gtfo ken.
(02:24:33) ChatBot: FatherSpace logs out of the Chat.
(02:24:40) Lanaya: Thought so. bitch.
(02:24:44) ChatBot: FatherSpace logs into the Chat.
(02:24:48) FatherSpace: Can I come back yet?
(02:24:51) Lanaya: What'd i say earlier.
(02:24:51) Lanaya: No.
(02:24:58) FatherSpace: Let's try this...
(02:25:01) ChatBot: Lanaya has been logged out (Kicked).

Code: Select all


(14:33:51) 2Pac: Do you know what'S so funny?
(14:34:01) Lanaya: No, please show me.
(14:34:07) 2Pac: This.
(14:34:09) ChatBot: Lanaya has been logged out (Kicked).
(14:34:10) 2Pac: 

Code: Select all

(14:35:59) haxorico: No one will belive me if I say "I got this song from 2pac on MSN" lolz ^^
(14:36:02) Lanaya: lolz.
(14:36:16) 2Pac: I AIN'T DEAD FFS.
(14:36:26) 2Pac: I'm a living legend, y'now.
(14:37:17) haxorico: why is 2Pac a legend?
(14:37:28) Lanaya: He's the worse rapper evar.

Code: Select all

(15:42:51) Lanaya: can i suck , . . .

Code: Select all

(13:55:21) ChatBot: 2Pac rolls 1d100 and gets 1.
(13:55:21) ChatBot: haxorico rolls 1d2 and gets 2.
(13:55:27) haxorico: owned?

Code: Select all

GeorgeMots: xplain what happens in SP. Why cant you save?
dast.-:i need play with 2 players

Code: Select all

(21:53:08) (673237): plzplzplz, im sorry about before.
(21:53:26) FatherSpace: I'm sorry you were born.
(21:53:31) ChatBot: (673237) has been logged out (Kicked).

Code: Select all

(10:08:02) Bartimaeus: you do know run I youtube channel for my favorite music, right?
kietne19
Newcomer
Posts: 9
Joined: June 21st, 2009, 2:15 am

Re: [Help] Add A Trigger

Post by kietne19 »

_I've Used Ladik MPQ and it say Can't delete attributes because it an entire ........ and i use another MPQ solfware now i can delete it but When start game ... The same happen ...
_And Of course I put it Under "All" local....