Hello,
I've run into a headache of a problem with a battle system I'm making in VX Ace; not a full on custom scripted system, just an amalgamation of eventing and pre-made scripts like Yanfly and Luna stuff. I'm honestly no good with scripting from scratch.
Basically, each turn of battle I want to select a random item from a list, but that list is hand-picked by the player outside of battle. It's somewhat like a trading card game - the player builds a "deck" with a variable amount of "cards", then draws randomly from it during the battle.
The main problem I have is that the only "random" functionality I'm familiar with is generating a number from X to Y, and I would need to know how many "cards" are in a "deck" in order to determine the value of Y. Then, of course, I'd have to remove those items without permanently altering the composition of the deck. Let alone what interface to use that lets a player move things in and out of a list en masse (my current idea is to retrofit Yanfly's Equip Engine and have actors that represent the decks with 20/30/etc equipment slots that you fill with cards).
Really, I'm just looking for whatever help I can get on handling variable lists of items and random selections. I feel like this probably relies a lot on script calls, which are not my specialty at all. Thanks for any input on this. ^_^
I've run into a headache of a problem with a battle system I'm making in VX Ace; not a full on custom scripted system, just an amalgamation of eventing and pre-made scripts like Yanfly and Luna stuff. I'm honestly no good with scripting from scratch.
Basically, each turn of battle I want to select a random item from a list, but that list is hand-picked by the player outside of battle. It's somewhat like a trading card game - the player builds a "deck" with a variable amount of "cards", then draws randomly from it during the battle.
The main problem I have is that the only "random" functionality I'm familiar with is generating a number from X to Y, and I would need to know how many "cards" are in a "deck" in order to determine the value of Y. Then, of course, I'd have to remove those items without permanently altering the composition of the deck. Let alone what interface to use that lets a player move things in and out of a list en masse (my current idea is to retrofit Yanfly's Equip Engine and have actors that represent the decks with 20/30/etc equipment slots that you fill with cards).
Really, I'm just looking for whatever help I can get on handling variable lists of items and random selections. I feel like this probably relies a lot on script calls, which are not my specialty at all. Thanks for any input on this. ^_^