It is currently 02 Aug 2025, 03:32
   
Text Size

Shandalar - Feature Requests

Choose randomly from a pool of appropriate AI decks (new)

 

Instead of all Merfolk Shamans having exactly the same deck at decks/0150.dck, when a duel starts, choose one out of all files in decks/0150/*.dck.

Just picking a random file is easy; it'll go in TENTATIVE_SHANDALAR_read_enemy_deck(). The problem is ensuring that that's called exactly once per encounter - for all I know, it might read the deck before choosing an ante card, then read it again at duel start, etc. If so, maybe assign the random number to choose which deck to a global, and only generate a new random number at each new encounter.

Comments

Posted by Korath » 24 Aug 2015, 18:25

Secondary consideration when I get to this: #682.

Posted by Thesaguy » 02 Dec 2015, 17:57

IT would also be cool if you beat an opponent, that it won't use the same deck again, until it has cycled through all available decks.

So let's say Merfolk Shaman has 3 decks in it's folder "decks/0150/*.dck"

1.dck
2.dck
3.dck

If you beat deck 1, then next time it would randomly select between deck 2 & 3. If you beat deck 3 next time you please, it will only select deck 3 the 3rd time you play. If you beat that, then all 3 would be back in the selection pool.

Ticket details

  • Ticket ID: 576
  • Project: Shandalar
  • Status: New
  • Component: (unknown)
  • Project version: (unknown)
  • Priority: Normal
  • Assigned to: (unassigned)
  • Reported by: Korath
  • Reporter's tickets: List all tickets
  • Reported on: 26 May 2015, 22:05
  • Last visited by Korath » 04 Mar 2016, 20:38.
 

Main Menu

User Menu

Our Partners


Login Form