Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

need help for this commands
tebessa
#1 Posted : Wednesday, February 28, 2018 4:01:06 AM(UTC)

Rank: Advanced Member

Groups: Registered
Posts: 49

Thanks: 9 times
Was thanked: 19 time(s) in 16 post(s)
hi
i want see sample example for this commands "played_turn","played_duplicate"
what deference between "spellcard","spell"
and deference between "my_hero","my_player","my_self"
and a sample for OnBoardPlayPriority i dont see one using it

thanks
JoyAdmin
#2 Posted : Wednesday, February 28, 2018 11:44:12 AM(UTC)
Rank: Administration

Groups: Administrators
Posts: 4,847

Thanks: 805 times
Was thanked: 4539 time(s) in 1637 post(s)
The following condition means before turn 6, opponent's has at least 2 pirate minions were killed.

opp_graveyard(count(), played_turn<6,pirate=true) > 2


The following condition means opponent has played 2 same cards, it may don't have 'Reno Jackson'.

opp_player(count(),played_duplicate=true) > 0


"spellcard" and "spell" are almost no difference, you can use it as alias.

my_hero - it's your hero card in the center board.

my_player - it's the controller, holds all the global board data like mana, turn etc.

my_self - it's the card itself defined in .json file.

If there are minions A,B and C on board, if you want to set minion C attack first ( the search tree node to be expanded first ), you can set card C's OnBoardPlayPriority value higher.

Remember 'Priority' value can not affect board's final value, it only controls the best move search tree expanding priority, so affected branch can be searched earlier or later.
Nataniel88
#3 Posted : Wednesday, February 28, 2018 11:48:23 AM(UTC)

Rank: Advanced Member

Groups: Registered
Posts: 87

Thanks: 5 times
Was thanked: 27 time(s) in 13 post(s)
JoyAdmin;54854 wrote:
opp_graveyard(count(), played_turn<6, race=pirate) > 2

"Race"? So it seems that page http://www.hearthranger....erstand_json_config.htm is not updated? ;)
tebessa
#5 Posted : Wednesday, February 28, 2018 11:58:16 AM(UTC)

Rank: Advanced Member

Groups: Registered
Posts: 49

Thanks: 9 times
Was thanked: 19 time(s) in 16 post(s)
Thanks Joy for useful info
JoyAdmin
#4 Posted : Wednesday, February 28, 2018 12:45:24 PM(UTC)
Rank: Administration

Groups: Administrators
Posts: 4,847

Thanks: 805 times
Was thanked: 4539 time(s) in 1637 post(s)
Nataniel88;54855 wrote:
"Race"? So it seems that page http://www.hearthranger....erstand_json_config.htm is not updated? ;)


Sorry it's my fault, used old version keyword here, it should be corrected to

opp_graveyard(count(), played_turn<6, pirate=true) > 2
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF | YAF © 2003-2011, Yet Another Forum.NET
This page was generated in 0.057 seconds.