I am trying to make a passive spell that will block attacks when the unit is ordered to hold position. The problem is that there is no such order string. WE only knows Smart, attack and Move, and when the unit is ordered to hold, there is no order-string, just empty.
How can i detect if the...
I have a spell that takes the position of a unit every 0.1 sec, picks every destructible within 300 range of his position and destroys all units in this destructible group. This way it looks like he is crushing the trees while walking.
I have fixed the point leak, but was unable to find the...
Well, there are bright and less bringht people. For the less bright people:
Go to that website. I hope its not 2 complex so far. The site will open up. Now at the top select GUIDES. If you look around, there isnt much alternative that can be confusing. I mean, why would u click on store or...
Many many times ive tryed to create a fade filter that would work only for 1 player. However the simple once, that u can find everything will cause the game to split. Now iver found a new one here http://wc3sear.ch/index.php?p=JASS&ID=266&sid= ,but it seems that it wasnt written well, and has a...
I have a custom script that will call a fade filter for a sertain player but it need a simple andjustment
call LocalCinematicFade( bj_CINEFADETYPE_FADEOUTIN, 6.00, "ReplaceableTextures\\CameraMasks\\SpecialSplatMask.blp", 66.00, 66.00, 66.00, 0, Player(bj_forLoopAIndex - 1))...
ManyTimes havent thought about his trigger at all.
Test it out with multiple running timers
If value is greater than 10 (or whatever, as long as its higher than 0), it will just set the TempInteger to the highest running timer array. BTW, [You Just Change It] statement... Change what? Diapers...
Ok, ive found my own, newbie solution, not proud of it, i dont like to work this way, but here it is
release
Events
Time - TimerPlayerJail[1] expires
Time - TimerPlayerJail[2] expires
Time - TimerPlayerJail[3] expires
Time - TimerPlayerJail[5]...
Is it possible, somehow, to get the array value of the expired timer.
More detail:
--------------------------------------------------
there is 1 timer with 2 arrays:
Timer[1]
Timer[2]
Event
Timer[1] expires
Timer[2] expires
action
set TempInteger to The array value of the...
I need a function that will set an Integer_X to the gold cost of an Item.
Ive also found this script:
function GetItemGoldCostById takes integer Uid returns integer
local integer Val = GetPlayerState(Player(15),PLAYER_STATE_RESOURCE_GOLD)
local integer ValB =...
:) HAHAHAH LOOOOOOL
i just ran a wrong trigger. So it kept running 1 same trigger all over. Thats why the game crushed. How stupid am i... :banghead: :nuts:
TNX A LOT Sunny , OMG
--------------------------
Ok, ive tested the fix, and the game crushed again. This time some other bug...
Yes, but you are saying that i have to remove action: Run Trigger. How is it going to start?
Those are 2 different triggers. One is in GUI and it sets integer "SoundVariable" that is equel to the players number
and the second one is in jass, and it plays music to player[SoundVariable]
Ok, ive went through some tutorials and created this trigger, the problem is that every time integer PlayerSide becomes 1, the game crushes....
Ive Made 2 triggers
1st
Setting Randome Sound
Events
Time - Every 5.00 seconds of game time
Conditions
Actions...
Hi, i have found an old code on wc3sear.ch that allows you to play sound only for one player
--------------
function PlaySoundForPlayer takes player whichPlayer, sound whichSound returns nothing
if ( whichPlayer == GetLocalPlayer() ) then
call PlaySoundBJ( whichSound )
endif
endfunction...
Even if i turn of the shared vision Hero X always recieves XP from the fights of his alliance even if the fight is on the other side of the map!!! I could turn of sharing XP but that would be imbalanced cause the second force doesnt has this issue. Sharing has to stay, but only on a short range...