Poll | | What game does everyone play now? | Starcraft 2 | | 26% | [ 8 ] | Warcraft 3 | | 35% | [ 11 ] | League of Legends | | 19% | [ 6 ] | World of Warcraft | | 0% | [ 0 ] | Diablo 2 | | 0% | [ 0 ] | No games at all | | 10% | [ 3 ] | Other game not listed | | 10% | [ 3 ] |
| Total Votes : 31 |
|
| | Locust in RoC ? | |
| | Author | Message |
---|
NiTnEuQs Recruit
| Subject: Locust in RoC ? Sun Mar 21, 2010 3:22 pm | |
| Hi all, I recently want to put Locust in my map but when i convert it, locust disapear... I have import AbilityData.slk but doesn't work. - Code:
-
function Trig_LocustCheck_Func001Func001001 takes nothing returns boolean return ( UnitHasBuffBJ(GetEnumUnit(), 'Aloc') == false ) endfunction
function Trig_LocustCheck_Func001A takes nothing returns nothing if ( Trig_LocustCheck_Func001Func001001() ) then call UnitAddAbilityBJ( 'Aloc', GetEnumUnit() ) else call DoNothing( ) endif endfunction
function Trig_LocustCheck_Actions takes nothing returns nothing call ForGroupBJ( GetUnitsOfPlayerAll(Player(11)), function Trig_LocustCheck_Func001A ) endfunction
//=========================================================================== function InitTrig_LocustCheck takes nothing returns nothing set gg_trg_LocustCheck = CreateTrigger( ) call TriggerRegisterTimerEventPeriodic( gg_trg_LocustCheck, 0.10 ) call TriggerAddAction( gg_trg_LocustCheck, function Trig_LocustCheck_Actions ) endfunction This is my JASS trigger, work on TFT but not on RoC. Help me plz ^^' | |
| | | FaMoUs Recruit
| Subject: Re: Locust in RoC ? Sun Mar 21, 2010 6:40 pm | |
| You need to change your import path to Units\AbilityData.slk Should work after that.. | |
| | | NiTnEuQs Recruit
| Subject: Re: Locust in RoC ? Mon Mar 22, 2010 12:02 pm | |
| I've already test it but doesn't work.. I put again my code: - Code:
-
function Trig_LocustCheck_Func001Func001001 takes nothing returns boolean return ( UnitHasBuffBJ(GetEnumUnit(), 'Aloc') == false ) endfunction
function Trig_LocustCheck_Func001A takes nothing returns nothing if ( Trig_LocustCheck_Func001Func001001() ) then call UnitAddAbilityBJ( 'Aloc', GetEnumUnit() ) else call DoNothing( ) endif endfunction
function Trig_LocustCheck_Actions takes nothing returns nothing call ForGroupBJ( GetUnitsOfPlayerAll(Player(11)), function Trig_LocustCheck_Func001A ) endfunction
//=========================================================================== function InitTrig_LocustCheck takes nothing returns nothing set gg_trg_LocustCheck = CreateTrigger( ) call TriggerRegisterTimerEventPeriodic( gg_trg_LocustCheck, 0.10 ) call TriggerAddAction( gg_trg_LocustCheck, function Trig_LocustCheck_Actions ) endfunction My Way: Sry for my bad English Help me ^^' | |
| | | Pat1487 Moderator
| Subject: Re: Locust in RoC ? Mon Mar 22, 2010 1:44 pm | |
| I looks like you imported everything properly Although i dont know much about putting TFT features in ROC It might be your trigger though Im pretty sure your Trig_LocustCheck_Func001Func001001 function is wrong Really you dont need a function for that anyway, you can just reuse Trig_LocustCheck_Func001A over again if you need to give locust to a unit that spawns later in the game Try this: - Code:
-
function Trig_LocustCheck_Func001A takes nothing returns nothing if ( not(UnitHasBuffBJ(GetEnumUnit(), 'Aloc')) ) then call UnitAddAbilityBJ( 'Aloc', GetEnumUnit() ) else call DoNothing( ) endif endfunction
function Trig_LocustCheck_Actions takes nothing returns nothing call ForGroupBJ( GetUnitsOfPlayerAll(Player(11)), function Trig_LocustCheck_Func001A ) endfunction
//=========================================================================== function InitTrig_LocustCheck takes nothing returns nothing set gg_trg_LocustCheck = CreateTrigger( ) call TriggerRegisterTimerEventPeriodic( gg_trg_LocustCheck, 0.10 ) call TriggerAddAction( gg_trg_LocustCheck, function Trig_LocustCheck_Actions ) endfunction You dont really even need to check if they already have locust since adding locust to something that already has it doesnt change anything, and you wouldnt be adding it twice anyway | |
| | | NiTnEuQs Recruit
| Subject: Re: Locust in RoC ? Mon Mar 22, 2010 1:55 pm | |
| I didn't understand everything because i'm french ^^' but i've just tested your code and doesn't work ..
If you have your own system, send me if you can =) | |
| | | Pat1487 Moderator
| Subject: Re: Locust in RoC ? Mon Mar 22, 2010 2:46 pm | |
| Oh Then it is the import for TFT->ROC Cause that should work
I have no experience with importing TFT stuff into ROC so i cant help you Sorry | |
| | | NiTnEuQs Recruit
| Subject: Re: Locust in RoC ? Mon Mar 22, 2010 2:55 pm | |
| Okay, np ^^ Thanks for helping If someone else can help me | |
| | | FaMoUs Recruit
| Subject: Re: Locust in RoC ? Mon Mar 22, 2010 3:26 pm | |
| Your not converting right. Post the map and ill convert. Also i got a smaller slk file. 196KB | |
| | | NiTnEuQs Recruit
| Subject: Re: Locust in RoC ? Mon Mar 22, 2010 3:35 pm | |
| Stay online i send you And if you can, tell me how convert | |
| | | NiTnEuQs Recruit
| Subject: Re: Locust in RoC ? Mon Mar 22, 2010 3:40 pm | |
| | |
| | | FaMoUs Recruit
| Subject: Re: Locust in RoC ? Mon Mar 22, 2010 3:53 pm | |
| You should finish it before i convert because if you do any changes... it changes back to tft. | |
| | | NiTnEuQs Recruit
| Subject: Re: Locust in RoC ? Mon Mar 22, 2010 3:55 pm | |
| I know , you can tell me the way and i'll convert later. Plz ^^ I have to change much things Plz plz plz | |
| | | FaMoUs Recruit
| Subject: Re: Locust in RoC ? Mon Mar 22, 2010 4:07 pm | |
| Sure ill show you later when i got time. | |
| | | NiTnEuQs Recruit
| Subject: Re: Locust in RoC ? Mon Mar 22, 2010 4:10 pm | |
| It's very important Just how convert, with WinMPQ ? My way is good but just there is a little error ? After I let you in peace | |
| | | NiTnEuQs Recruit
| Subject: Re: Locust in RoC ? Wed Mar 24, 2010 1:55 pm | |
| I'm ready for the lesson ^^. PM me or send a message on this topic | |
| | | FaMoUs Recruit
| Subject: Re: Locust in RoC ? Thu Mar 25, 2010 7:05 pm | |
| We should teamview it be a lot easier this way. | |
| | | NiTnEuQs Recruit
| Subject: Re: Locust in RoC ? Fri Mar 26, 2010 7:55 am | |
| | |
| | | FaMoUs Recruit
| Subject: Re: Locust in RoC ? Sat Mar 27, 2010 12:55 pm | |
| NiTnEuQs can you get on USEast server? If you can do so. Whisper me if you get on so we can team view. Ill be on like at 5pm USEast time or you can try anytime as long as im online.
*Edit* I'm online right now so we can teamview right now... find me in clan tmmm. | |
| | | Sponsored content
| Subject: Re: Locust in RoC ? | |
| |
| | | | Locust in RoC ? | |
|
Similar topics | |
|
| Permissions in this forum: | You cannot reply to topics in this forum
| |
| |
| |