Working Around with Orc (Chaos)

Somatic

You can change this now in User CP.
Reaction score
84
Any Idea how do I play with the idea around with the Orc (Chaos) 's ability?
If in the case i need to change a building from let say a Barracks to a Higher Barracks, all i need is to change the ability's "New Unit Type" to the Higher Barracks, and then give the player to research the ability?
 

Somatic

You can change this now in User CP.
Reaction score
84
I tried adding the ability directly, and it does not work.
Meaning i remove the requirment, and just add the ability directly to the structure.

Also, Does the wait from different functions stack on the main program?
 

Sooda

Diversity enchants
Reaction score
318
> I tried adding the ability directly, and it does not work.

It would be wise to remove 'Techtree Requirements' and set 'Techtree - Check Dependencies' to false before adding it directly :eek:

> Also, Does the wait from different functions stack on the main program?

Do you mean functions as JASS functions? All waits stack, your trigger gets executed action by action. Trigger will wait whenever it mets Wait action and then continues.
 

Somatic

You can change this now in User CP.
Reaction score
84
I did, but appreantly it failed.

Yar, in JASS, as in like this

Code:
Function Test_Test takes nothing returns nothing
call triggersleepaction ("5.00")
endfunction

Function Main takes nothing returns nothing
call function Test_Test()
call triggersleepaction ("2.00")
endfunction

How long would this trigger takes to finish?
 

Sooda

Diversity enchants
Reaction score
318
Yes, it stacks because it's all in same thread. Thread is equivalent to 'Trigger fires'. If these waits happen in one trigger they happen in one thread. You have to create new thread to functions what needs independent waits.
We got JASS sub forum for such questions. If you got in future any questions about JASS, ask them there.

> I did, but apparently it failed.

How can that ability fail if you have no techtree requirements and checking techtree dependencies is false?
 

GoGo-Boy

You can change this now in User CP
Reaction score
40
I did, but appreantly it failed.

Yar, in JASS, as in like this

Code:
[COLOR="Red"]F[/COLOR]unction Test_Test takes nothing returns nothing
call [COLOR="Red"]t[/COLOR]rigger[COLOR="Red"]s[/COLOR]leep[COLOR="Red"]a[/COLOR]ction ([COLOR="Red"]"[/COLOR]5.00[COLOR="Red"]"[/COLOR])
endfunction

[COLOR="Red"]F[/COLOR]unction Main takes nothing returns nothing
call [COLOR="Red"]function[/COLOR] Test_Test()
call triggersleepaction ([COLOR="Red"]"[/COLOR]2.00[COLOR="Red"]"[/COLOR])
endfunction

How long would this trigger takes to finish?

Hell that really hurts my eyes >____<

JASS:
function Test_Test takes nothing returns nothing
call TriggerSleepAction(5)
endfunction

function Main takes nothing returns nothing
call Test_Test()
call TriggerSleepAction(2)
endfunction


If you post JASS code then with JASS tags and correctly, else you might confuse some guys :O
Aside of that 7 seconds.
 

Somatic

You can change this now in User CP.
Reaction score
84
GoGo - Like its freehand

Sooda - Ill retry again. If i see a problem ill reply here
 

Sooda

Diversity enchants
Reaction score
318
If you add custom Chaos (dependencies false, requirements none) ability with GUI action it works 100%. I suspect your custom JASS (if you use, I think so) just dosn' t add it.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top