Jump to content


Photo

What is the string name for the Create A Hero enabler?

string game settings

  • Please log in to reply
4 replies to this topic

#1 Jokuc

Jokuc

    Hardcore Procrastinator

  • Members
  • 187 posts
  • Location:Sweden
  •  Mapper

Posted 06 April 2017 - 02:20 PM

I want to run scripts on certain maps to check if the player has enabled the "Allow Custom Heroes" box. To do this you run the script "**IF** String: 'SettingNameHere' game mode is active".

 

The string name for the Allow Ring Heroes checkbox is "RingHeroes", but I don't know what it is for Custom Heroes and I don't know where to find it. I looked in a lot of game files but couldn't find what I was looking for. I tried "CustomHero", "CustomHeroes", "CreateAHero", "CreateAHeroes", "AllowBuildCreateAHero", "CAH" and a bunch of other stuff but neither worked.

 

Does anyone know the name or where I can find it? Thanks.


Edited by Jokuc, 06 April 2017 - 03:47 PM.


#2 aleex

aleex
  • Members
  • 25 posts

Posted 23 June 2017 - 01:13 PM

Problably CustomHeroes based on the clue below (but apparently you tried that, perhaps you made capitalization error)

 

RULE:AllowRingHeroes
// On rule tab for game setup.
"Allow Ring Heroes"
END
 
RULE:AllowCustomHeroes
"Allow Custom Heroes"
END

Edited by aleex, 23 June 2017 - 01:16 PM.


#3 Jokuc

Jokuc

    Hardcore Procrastinator

  • Members
  • 187 posts
  • Location:Sweden
  •  Mapper

Posted 23 June 2017 - 03:05 PM


Problably CustomHeroes based on the clue below (but apparently you tried that, perhaps you made capitalization error)

RULE:AllowRingHeroes
// On rule tab for game setup.
"Allow Ring Heroes"
END

RULE:AllowCustomHeroes
"Allow Custom Heroes"
END


I have indeed already tried both CustomHeroes and AllowCustomHeroes, With the caps, but it shouldn't matter. The things you list above are the string names for the text next to the settings, not the string names for the settings themselves (the names for the checkboxes, basically). The setting has a boolean value attached which detects whether the checkbox is selected or not.

#4 Zakabuzz

Zakabuzz
  • Members
  • 5 posts

Posted 25 June 2017 - 08:22 PM

Well as far as I know the game never refers the heroes as "Custom Heroes" but always as "Create A Hero" so I'd definitely not go with this one!

I've found this in the createaherosystem.ini file, might worth a look :

 

Spoiler



#5 Jokuc

Jokuc

    Hardcore Procrastinator

  • Members
  • 187 posts
  • Location:Sweden
  •  Mapper

Posted 25 June 2017 - 09:39 PM

Well as far as I know the game never refers the heroes as "Custom Heroes" but always as "Create A Hero" so I'd definitely not go with this one!

I've found this in the createaherosystem.ini file, might worth a look :

 

Spoiler

 

Yeah, I've seen those before. I tried CreateAHeroGameMode, didn't work. Tried "If player 1 built upgrade 'Upgrade_CreateAHeroGameMode' " but that didnt work either.. Looked in the Skrimsh.ini file in the mybfme2 files folder and I tried to look in the big files for the multiplayer settings found in the game's installation folder... but those are apparently unreadable as I just saw a bunch of random symbols.


Edited by Jokuc, 25 June 2017 - 09:39 PM.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users