| 01-25-2007, 01:31 PM | #1 |
Here is the trigger ------------------- Trigger: What is the problem? It should get the owner of the units who has the buff get white screen. |
| 01-25-2007, 02:01 PM | #2 |
Triggering Player won't work, because there's no player in the event. set a var = Target Unit and then use OwnerOfUnit(var). |
| 01-25-2007, 02:07 PM | #3 |
it still won't work :( but it laggs when i am casting it! |
| 01-25-2007, 02:10 PM | #4 |
Uhm, this may work, not 100% sure don't have WE atm. JASS:function Trig_FlashBang_Conditions takes nothing returns boolean return GetSpellAbilityId() == 'AUan' //Put your raw code here endfunction function Trig_FlashBang_Actions takes nothing returns nothing local player p = GetOwningPlayer(GetSpellTargetUnit()) if GetLocalPlayer() == p then call CinematicFadeBJ( bj_CINEFADETYPE_FADEOUT, 0.10, "ReplaceableTextures\\CameraMasks\\White_mask.blp", 100.00, 100.00, 100.00, 0 ) endif call TriggerSleepAction( 4 ) if GetLocalPlayer() == p then call CinematicFadeBJ( bj_CINEFADETYPE_FADEIN, 0.10, "ReplaceableTextures\\CameraMasks\\White_mask.blp", 100.00, 100.00, 100.00, 0 ) endif endfunction //=========================================================================== function InitTrig_FlashBang takes nothing returns nothing set gg_trg_FlashBang = CreateTrigger( ) call TriggerRegisterAnyUnitEventBJ( gg_trg_FlashBang, EVENT_PLAYER_UNIT_SPELL_EFFECT ) call TriggerAddCondition( gg_trg_FlashBang, Condition( function Trig_FlashBang_Conditions ) ) call TriggerAddAction( gg_trg_FlashBang, function Trig_FlashBang_Actions ) endfunction |
| 01-25-2007, 02:14 PM | #5 |
Can you please make me a DEMO map? I can't figure JASS or ''RAW codes'' :( But anywhy thanks for trying to help me :) |
| 01-25-2007, 02:22 PM | #6 |
Alright, i made 1 map to check. To view the raw code, go into the object editor and view, there you can find the option (ctrl+d if i remember correvtly). However, if you cast chain lightning ONLY the Owner of the target unit will be affected, but i don't know if GetLocalPlayer() can cause desync. |
| 01-25-2007, 02:48 PM | #7 |
thank you but how to make it AOE? |
| 01-25-2007, 03:21 PM | #8 |
Give me some time to change it the needed way. ---Edit--- It's a targeted AoE right? |
| 01-25-2007, 04:01 PM | #9 |
yep :) |
| 01-25-2007, 04:04 PM | #10 |
alright here's the new version, if you search the function Flashbang, you find it in the Custom Script Section. |
| 01-25-2007, 04:12 PM | #11 |
well thank you! I just need to overwrite the spell RAW CODE with the one in my map and copy the variables and spell to make it work right? +rep and credits! But how to make the radius bigger? EDIT: nvm with the radius bigger i just found out :) thank you very much, but now i have to get rid of ''Check who is the Host'' script. But nvm the flashbang works 100% and is awesome! But isn't there a way to make it activate a little bit more late? |
| 01-25-2007, 09:41 PM | #12 |
Ok, that is just sad... you give but do not teach? Fireeye do you think mikke95 who cannot read JASS is going to understand how that works!?! you need to explain that if GetLocalPlayer() == (yourplayer) then is the most important thing in this whole aspect!!! and that he should never forget his endifs!! and that he can do that with most anything, he should just make sure that it does not cause a desync!!!!!!! (mikke95, you can use custom script to do that just make your trigger that you want to happen to a player and then do |
| 01-26-2007, 09:44 AM | #13 | ||||||
Alright, alright, i'll explain here what each line make, updated the AoE Trigger, saved 2 line of script, just c'n'p all between function ... and endfunction. Ohh, btw. Maker don't blame me i were busied, and you made an unlogical if directly after the loop.
|
| 01-26-2007, 12:06 PM | #14 |
Thank you it really helped i am thinking that i actually can learn to make JASS by my own soon :P thanks |
