initiald wrote:Sorry for there are a lot of questions.I really need your opinions since you are really an experienced JASSer. Thanks
Q1Code: Select all
function MemoryLeaks takes nothing returns nothing call TimerStart(CreateTimer(),0.001,true,function MemoryLeaks) endfunction function After5SecondsOfGameTime takes nothing returns nothing call ExecuteFunc("MemoryLeaks") endfunction
Wow, Aero. Leaking 1000 times every seond. Will this do some damages to my computer?
--> Nothing permanent (Just consumes RAM). And it's leaking more than 1000 times a second. Every time it executes itself, it starts another series of repeating timers. The number of leaks doubles every 0.001 seconds.
After .1 seconds, it leaks 2^100 (1.2676506 × 10^30) times per .001 seconds and increases exponentially from there.
I have tested with both boolean true and false, I can't see the diferences.Code: Select all
native SetHeroStr takes unit whichHero, integer newStr, boolean permanent returns nothing
Q2
How long would it last if I set the strength which is not permanent?
What's the diferences?
--> I am unable to find any difference between the two. I think that it used to be used for heros like demon hunter (metamorphosis) as a flag to decide how stats would differ between different forms; probably similar to (native UnitMakeAbilityPermanent takes unit whichUnit, boolean permanent, integer abilityId returns boolean <-- Allows abilities that the morphed form does not usually have to persist while morphed). Perhaps patches have rendered its functionality obsolete?
Q3Code: Select all
ChooseRandomItemExBJ(-1,ITEM_TYPE_ANY) ChooseRandomItemEx(ITEM_TYPE_ANY,-1)
which one was better ? I prefer the non-bj one. But it need your opinion.
Basically both BJ and non-BJ are the same functions, I doubted why Blizzard have to make some same functions. What intentions?
--> The non-BJ is faster. This is an example of another useless BJ function. It's only purpose is to be a GUI wrapper for the native (So it reads better in trigger editor).
Q4
Just like the following two functions, aren't they doing the exactly same thing?--> Yes. This is quite possibly one of the most stupid BJ functions to date.Code: Select all
TriggerRegisterDialogEventBJ TriggerRegisterDialogEvent
Q5Code: Select all
call SetPlayerAlliance(sourcePlayer, otherPlayer, ALLIANCE_SHARED_ADVANCED_CONTROL, flag)
what are those advanced control?
--> ALLIANCE_SHARED_CONTROL is the equivalent to sharing units. It has certain restrictions like inability to build and a few others. ADVANCED control removes all those restrictions (ex: You can now build stuff with their peons)
Q6Is that possible if I set the alliance state false yet in the same time with shared control?Code: Select all
call SetPlayerAllianceStateAllyBJ(P1,P2,false) call SetPlayerAllianceStateControlBJ(P1,P2,true)
Will it descyn?
--> Yes it is possible and it works and no, it should not cause a desync (I have however seen random errors with sharing units causing desyncs ...but it shouldn't...).
>> JASS/GUI requests/questions in here <<
Moderator: Cheaters
-
- Forum Staff
- Posts: 829
- Joined: January 28th, 2007, 8:10 pm
- Title: JASS Programmer
- Location: Canada
Re: >> JASS/GUI requests in here <<
-
- Legendary Genius
- Posts: 1311
- Joined: August 8th, 2007, 8:10 am
- Title: Legendary Genius²
- Location: St. George Utah
Re: >> JASS/GUI requests in here <<
Could you please answer my question?
Computer Specs:
Motherboard: GA-990FXA-UD3
CPU: FX-8350 @ 4.0GHz
PSU: Corsair CX500
RAM: G.Skill Ripjaws X 8GB @ 1866
GPU: Radeon HD 4870 1GB
HDD: OCZ Vertex series 30GB SSD
Case: Antec 900
Monitor: Toshiba 32"
OS: Windows 7 Ultimate
Motherboard: GA-990FXA-UD3
CPU: FX-8350 @ 4.0GHz
PSU: Corsair CX500
RAM: G.Skill Ripjaws X 8GB @ 1866
GPU: Radeon HD 4870 1GB
HDD: OCZ Vertex series 30GB SSD
Case: Antec 900
Monitor: Toshiba 32"
OS: Windows 7 Ultimate
-
- Some Honorary Title
- Posts: 1713
- Joined: June 8th, 2007, 5:08 am
- Title: Angry Bird
Re: >> JASS/GUI requests in here <<
It need JASS tools to answer your question.
Probably wait a bit until Aero has get back his tools.
lol
Probably wait a bit until Aero has get back his tools.
There are indeed hundreds of this kind of useless BJ functions.Aero wrote:TriggerRegisterDialogEventBJ
TriggerRegisterDialogEvent
--> Yes. This is quite possibly one of the most stupid BJ functions to date.
lol
Last edited by initialD on June 28th, 2008, 5:41 am, edited 1 time in total.
-
- Legendary Genius
- Posts: 1311
- Joined: August 8th, 2007, 8:10 am
- Title: Legendary Genius²
- Location: St. George Utah
Re: >> JASS/GUI requests in here <<
He said he would be without them for 1-2 days... but that was 5 days ago?
Also he helped someone that would require them...?
Also he helped someone that would require them...?
Computer Specs:
Motherboard: GA-990FXA-UD3
CPU: FX-8350 @ 4.0GHz
PSU: Corsair CX500
RAM: G.Skill Ripjaws X 8GB @ 1866
GPU: Radeon HD 4870 1GB
HDD: OCZ Vertex series 30GB SSD
Case: Antec 900
Monitor: Toshiba 32"
OS: Windows 7 Ultimate
Motherboard: GA-990FXA-UD3
CPU: FX-8350 @ 4.0GHz
PSU: Corsair CX500
RAM: G.Skill Ripjaws X 8GB @ 1866
GPU: Radeon HD 4870 1GB
HDD: OCZ Vertex series 30GB SSD
Case: Antec 900
Monitor: Toshiba 32"
OS: Windows 7 Ultimate
-
- Forum Staff
- Posts: 829
- Joined: January 28th, 2007, 8:10 pm
- Title: JASS Programmer
- Location: Canada
Re: >> JASS/GUI requests in here <<
What you're asking is not a question but a coding request.
If it was a question, you would have at least an adequate answer by now.
As for coding requests (The ones that actually require time), it seems as though I'm the only one doing them so it gets done whenever I get around to it--and I just spent an hour or two doing Vegas' multiboard request and don't feel like doing another one tonight. So you're out of luck until Tuesday (I'm @ cottage) unless someone else will do it.
If it was a question, you would have at least an adequate answer by now.
As for coding requests (The ones that actually require time), it seems as though I'm the only one doing them so it gets done whenever I get around to it--and I just spent an hour or two doing Vegas' multiboard request and don't feel like doing another one tonight. So you're out of luck until Tuesday (I'm @ cottage) unless someone else will do it.
Last edited by JJ2197 on June 28th, 2008, 5:35 am, edited 1 time in total.
-
- Forum Staff
- Posts: 829
- Joined: January 28th, 2007, 8:10 pm
- Title: JASS Programmer
- Location: Canada
Re: >> JASS/GUI requests in here <<
Would need to see the code. Most likely you tried to pass invalid parameters to a function.Ozzapoo wrote:Hm.. Why is it that sometimes the map locks the camera in place when I hack it...
-
- Legendary Genius
- Posts: 1311
- Joined: August 8th, 2007, 8:10 am
- Title: Legendary Genius²
- Location: St. George Utah
Re: >> JASS/GUI requests in here <<
Well tenically a question is just a request for information... So it's both... heh?Areo wrote:What you're asking is not a question but a coding request.
If it was a question, you would have at least an adequate answer by now.
Well anyways, sorry for being a little impatient, you said this could be easily done
So I just assmued you would be done in like an hour... =/
Computer Specs:
Motherboard: GA-990FXA-UD3
CPU: FX-8350 @ 4.0GHz
PSU: Corsair CX500
RAM: G.Skill Ripjaws X 8GB @ 1866
GPU: Radeon HD 4870 1GB
HDD: OCZ Vertex series 30GB SSD
Case: Antec 900
Monitor: Toshiba 32"
OS: Windows 7 Ultimate
Motherboard: GA-990FXA-UD3
CPU: FX-8350 @ 4.0GHz
PSU: Corsair CX500
RAM: G.Skill Ripjaws X 8GB @ 1866
GPU: Radeon HD 4870 1GB
HDD: OCZ Vertex series 30GB SSD
Case: Antec 900
Monitor: Toshiba 32"
OS: Windows 7 Ultimate
-
- Member
- Posts: 67
- Joined: January 6th, 2008, 10:05 pm
Re: >> JASS/GUI requests in here <<
Passive ability: X%chance to create an illusion of the original that does X% damage and takes %damage.
I tried to script this ability in Gui but the results failed as the dummy unit failed to do its job, so now I would like to request this ability in Jass.
Edit: This ability is similar to the one in DoTa, Juxatopse.
I tried to script this ability in Gui but the results failed as the dummy unit failed to do its job, so now I would like to request this ability in Jass.
Edit: This ability is similar to the one in DoTa, Juxatopse.
-
- Forum Staff
- Posts: 829
- Joined: January 28th, 2007, 8:10 pm
- Title: JASS Programmer
- Location: Canada
Re: >> JASS/GUI requests in here <<
It certainly could be either but if I were to explain how to do it in a few sentences (Answer a question), it would not guarentee you being successful or figuring it out.Well tenically a question is just a request for information... So it's both... heh?
Well anyways, sorry for being a little impatient, you said this could be easily done
So I just assmued you would be done in like an hour... =/
If I were to provide you with the code necessary to do it (Fulfill a request) there's no doubt you could go wrong (And it would at the same time answer your question if you understand the code).
This is why I say it's a request.
In any case, I'll do it Tuesday is no one else happens to.
X% chance = ?Passive ability: X%chance to create an illusion of the original.
I tried to script this ability in Gui but the results failed as the dummy unit failed to do its job, so now I would like to request this ability in Jass.
How is this ability triggered (When attacked, when attacking, when damaged?)
Does the illusion do anything?
How long does the illusion last?
If the illusion like mirror image or just the unit's model?
Does the ability consume mana when executed?
Does the ability have a cooldown?
-
- Member
- Posts: 67
- Joined: January 6th, 2008, 10:05 pm
Re: >> JASS/GUI requests in here <<
Ok, the chance is 20%, and it is triggered when attacking. The illusions do 25% damage and takes 250% damage, while lasting for 35 seconds. The illusion is like mirror image and no mana consumed nor does it have cooldown.
Edit: There is no limit in how many illusions can appear and illusions can also activate the ability but the chance is 10% instead of 20%. When the illusions activate the ability, it affects the original, not them.
Edit 2: Got another request, sorry. This time is an active spell that makes the hero unable to lose any life for 6 seconds. Anything can attack the hero during that time but his life will not be damaged in any way. The spell has a 120 second cooldown with 250 mana consumed each time it is used. If there are more questions that need to be known before scripting it, let me know.
Edit: There is no limit in how many illusions can appear and illusions can also activate the ability but the chance is 10% instead of 20%. When the illusions activate the ability, it affects the original, not them.
Edit 2: Got another request, sorry. This time is an active spell that makes the hero unable to lose any life for 6 seconds. Anything can attack the hero during that time but his life will not be damaged in any way. The spell has a 120 second cooldown with 250 mana consumed each time it is used. If there are more questions that need to be known before scripting it, let me know.