I want to make 1 enemy random within a premade troop event.
EG. I want a character to fight alongside a familiar what is random
How could this be done
I thought of:
Character Battle event
if variable = 1:
Familiar 1 Battle Event
if variable = 2:
Familiar 2 Battle event
....
But this doesn't work, can somebody help
please show us a screenshot of the troop event.
what is the condition under which the event runs? how often can it be triggered (span)?
so, you want a set group of enemies, and one additional left to chance?
please show the full troop event, not only the contents.
most likely you either messed up the condition or the span of the event.
and you don't have to set a variable to zero before randomizing, one control variable for the random effect is enough.
I know a few things about eventing, but I am puzzled here.
In this it's only 25% of the time, and what about test 2 = 5 or 6?
So it's 5/7 chance that the enemy would transform into another enemy.
You should make a troop event like this:
When enemy (1) <50 %
Control variable 0-4
if variable = 0 then ...Sea angel appear
if variable = 1 then ...Blob appear
if variable = 2 then ...Wazard angel appear
if variable = 3 then ...Cerberous appear
if variable = 4 then ...Wasp appear
You will have to set the enemies in each troop, but then with (right mouse click) Appear Halfway.
You could do it like this, but why not make a troops with these enemies, so you could
run a variable when you touch your enemy (if you have that on the map) and set it to troops.
If var 1 = 1 then troop 1, if 2 then troop 2 and so on....
It's random also, I use it in my game.
Oh wait, I see what you mean, you would not a random enemy, but a random ally to fight with you!
In that case: control variable 0-4.
if 0 then add party member X,
if 1 then add party member Y.
and you'll need a troop event when all enemies are dead that the party member leaves the party.