| 04-12-2004, 01:06 AM | #1 |
Ok this is my first or second time posting in the JASS forum. But this is a must post. I am stupid when it comes to jass, but no so stupid about understanding some of the things. I took a years course in java but forgot most of it, yet I still understand how things are used. Boy I tend to go out on tangents. But this is what I need help on. I inadvertantly found out a way to grab every single peice of information in a warcraft map that can be transfered from data to text. Variables, comments and triggers of course. At first the triggers looked crazy, non GUI, so I said hey its JASS. I need help deciphering some of the things. Its highlighted in red. [OLOR=Red]//=========================================================================== // Trigger: bloodred //=========================================================================== function Trig_bloodred_Func001001002001 takes nothing returns boolean return ( GetUnitTypeId(GetFilterUnit()) != 'h000' ) endfunction function Trig_bloodred_Func001001002002 takes nothing returns boolean return ( IsUnitSelected(GetFilterUnit(), GetTriggerPlayer()) == true ) endfunction function Trig_bloodred_Func001001002 takes nothing returns boolean return GetBooleanAnd( Trig_bloodred_Func001001002001(), Trig_bloodred_Func001001002002() ) endfunction function Trig_bloodred_Func001A takes nothing returns nothing call GroupAddUnitSimple( GetEnumUnit(), udg_atrakc0rzrf ) endfunction function Trig_bloodred_Actions takes nothing returns nothing call ForGroupBJ( GetUnitsOfPlayerMatching(GetTriggerPlayer(), Condition(function Trig_bloodred_Func001001002)), function Trig_bloodred_Func001A ) endfunction //=========================================================================== function InitTrig_bloodred takes nothing returns nothing set gg_trg_bloodred = CreateTrigger( ) call TriggerRegisterPlayerChatEvent( gg_trg_bloodred, Player(0), "'blood", true ) call TriggerRegisterPlayerChatEvent( gg_trg_bloodred, Player(5), "'blood", true ) call TriggerRegisterPlayerChatEvent( gg_trg_bloodred, Player(4), "'blood", true ) call TriggerRegisterPlayerChatEvent( gg_trg_bloodred, Player(1), "'blood", true ) call TriggerRegisterPlayerChatEvent( gg_trg_bloodred, Player(7), "'blood", true ) call TriggerRegisterPlayerChatEvent( gg_trg_bloodred, Player(3), "'blood", true ) call TriggerRegisterPlayerChatEvent( gg_trg_bloodred, Player(6), "'blood", true ) call TriggerRegisterPlayerChatEvent( gg_trg_bloodred, Player(2), "'blood", true ) call TriggerAddAction( gg_trg_bloodred, function Trig_bloodred_Actions ) endfunction[/color][/indent] Now I get that "call TriggerRegisterPlayerChatEvent( gg_trg_bloodred, Player(3), "'blood", true )" means in player three type the message "blood" then it returns true. But everything else I am clueless about. Except its idiot stuff that even someone who has opened the worldeditor once would get. Such as "Trigger:bloodred". Will you help me understand what it means? [color=Navy]DISCLAIMER: I will not tell how I found out to do this. I will not tell what map it is. I will not tell author(so if you see this send me a PM telling me stop this thread and I will). This is the only peice of information I will give out as if i give out more it might give away the map. Unless I find more discreet triggers I don't understand. I repeat this information will not be handed out to anyone. I repeat ANYONE, I found out how to do this, it is for education purposes only(to find out how its done). Not to rip the map off. K? |
| 04-12-2004, 04:26 AM | #2 |
dubble post alert |
