No town portals for heros - where is the setting ?

gjcraig

New Member
Reaction score
2
I don't want the first hero you get to get a town portal. Is there something in the game constants ? I have looked and can't find it to stop it from just giving first heros one.
 

Exide

I am amazingly focused right now!
Reaction score
448
It's a trigger in the standard Map Initialization trigger.
You'll find it.
 

Sgqvur

FullOfUltimateTruthsAndEt ernalPrinciples, i.e shi
Reaction score
62
It's a trigger in the standard Map Initialization trigger.
You'll find it.
In case he does not.
Go to Trigger Editor (F4), between Terrain Editor (F3) and Sound Editor (F5)
After that just delete this line: (see Attachment)
 

Attachments

  • Scroll of Town Portal.JPG
    Scroll of Town Portal.JPG
    63.7 KB · Views: 103

gjcraig

New Member
Reaction score
2
re

Ok I found the trigger but its in jass how do I edit it or turn it back into gui ?
Here's the trigger.

function Trig_Melee_Initialization_Actions takes nothing returns nothing
call MeleeStartingHeroLimit( )
call MeleeGrantHeroItems( )
call SetPlayerStateBJ( Player(0), PLAYER_STATE_RESOURCE_GOLD, 900 )
call SetPlayerStateBJ( Player(1), PLAYER_STATE_RESOURCE_GOLD, 900 )
call SetPlayerStateBJ( Player(2), PLAYER_STATE_RESOURCE_GOLD, 900 )
call SetPlayerStateBJ( Player(3), PLAYER_STATE_RESOURCE_GOLD, 900 )
call SetPlayerStateBJ( Player(4), PLAYER_STATE_RESOURCE_GOLD, 900 )
call SetPlayerStateBJ( Player(5), PLAYER_STATE_RESOURCE_GOLD, 900 )
call SetPlayerStateBJ( Player(6), PLAYER_STATE_RESOURCE_GOLD, 900 )
call SetPlayerStateBJ( Player(7), PLAYER_STATE_RESOURCE_GOLD, 900 )
call SetPlayerStateBJ( Player(8), PLAYER_STATE_RESOURCE_GOLD, 900 )
call SetPlayerStateBJ( Player(9), PLAYER_STATE_RESOURCE_GOLD, 900 )
call ForceAddPlayerSimple( Player(0), udg_Human )
call ForceAddPlayerSimple( Player(1), udg_Human )
call ForceAddPlayerSimple( Player(2), udg_Human )
call ForceAddPlayerSimple( Player(3), udg_Human )
call ForceAddPlayerSimple( Player(4), udg_Human )
call ForceAddPlayerSimple( Player(5), udg_Orc )
call ForceAddPlayerSimple( Player(6), udg_Orc )
call ForceAddPlayerSimple( Player(7), udg_Orc )
call ForceAddPlayerSimple( Player(8), udg_Orc )
call ForceAddPlayerSimple( Player(9), udg_Orc )
call ForceAddPlayerSimple( Player(10), udg_Human )
call ForceAddPlayerSimple( Player(11), udg_Orc )
endfunction

//===========================================================================
function InitTrig_Melee_Initialization takes nothing returns nothing
set gg_trg_Melee_Initialization = CreateTrigger( )
call TriggerAddAction( gg_trg_Melee_Initialization, function Trig_Melee_Initialization_Actions )
endfunction
 

Dinowc

don't expect anything, prepare for everything
Reaction score
223
you can't convert Jass into GUI...

did you pressed Edit > Convert to Custom Text?

just go to Actions > Melee and locate it
 

gjcraig

New Member
Reaction score
2
re

you can't convert Jass into GUI...

did you pressed Edit > Convert to Custom Text?

just go to Actions > Melee and locate it

Cool thanks for the info never done that but I just deleated the call hero items from the jass trigger and it worked. Thanks again guys.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top