First of all, I finally found my password for this site!
Secondly, I took a break from my "RPG making" for a while, and now i need a little help. Namely, i have questions about setting up, yes, a CBS.
Essentially what i've done so far, is i edited the default script that usually transfers you to the battle screen, to send you to a different map instead.
(eventually i want to have different places depending on where you are, using a variable i title "Battle Grounds." So when you enter a grassy area, the variable will be set to 1, and when you get in a battle, you'll go to a battle in a grassy field, or if youre in a forest, you go to a wooded area, etc. But for now im trying to work on the turn based stuff)
Next, I've set up 3 "enemies." basically i used variables, representing an enemy's health, attack, etc. All the enemy stats are based off of your character's stats, that way they kind of level up as you do. So weaker enemies may have 50% of your health, while stronger ones may have 150% of your health.
Now i get to the weird part. The random selection of 1 of 3 enemies, 1 being easy, 2 being on par with you, and 3 being hard.
However i can't seem to get it to select a random event! I have something set up so it randomly sets my "Enemy Select" variable to a random amount from 1 to 3. Then I have a situational script (i forget the actual term for it) that has it as if the variable=1, then it retrieves the stats/graphic for enemy one, and so on.
But it only ever chooses 1 enemy. I've tried setting it so it picks a random amount from 0 to 4, but that didnt help either. I also tried expanding the range, from 1 to 30, where 1-10 would bring up my "enemy 1," 11-20 brings up "enemy 2" and 21-30 should bring up "enemy 3." (Right now i'm dealing with just 1 on 1 fights) But everytime it chooses the same "enemy." (I'm using character graphics for these by the way) If nothing else, it seems as though the graphic should at least change, if not the variables representing enemy health.
So in short, how would I go about making it spawn a random event? (the event being my "enemy" of course) Thanks in advance, and let me know if I'm doing something/trying to do something retarded and/or impossible
Secondly, I took a break from my "RPG making" for a while, and now i need a little help. Namely, i have questions about setting up, yes, a CBS.
Essentially what i've done so far, is i edited the default script that usually transfers you to the battle screen, to send you to a different map instead.
(eventually i want to have different places depending on where you are, using a variable i title "Battle Grounds." So when you enter a grassy area, the variable will be set to 1, and when you get in a battle, you'll go to a battle in a grassy field, or if youre in a forest, you go to a wooded area, etc. But for now im trying to work on the turn based stuff)
Next, I've set up 3 "enemies." basically i used variables, representing an enemy's health, attack, etc. All the enemy stats are based off of your character's stats, that way they kind of level up as you do. So weaker enemies may have 50% of your health, while stronger ones may have 150% of your health.
Now i get to the weird part. The random selection of 1 of 3 enemies, 1 being easy, 2 being on par with you, and 3 being hard.
However i can't seem to get it to select a random event! I have something set up so it randomly sets my "Enemy Select" variable to a random amount from 1 to 3. Then I have a situational script (i forget the actual term for it) that has it as if the variable=1, then it retrieves the stats/graphic for enemy one, and so on.
But it only ever chooses 1 enemy. I've tried setting it so it picks a random amount from 0 to 4, but that didnt help either. I also tried expanding the range, from 1 to 30, where 1-10 would bring up my "enemy 1," 11-20 brings up "enemy 2" and 21-30 should bring up "enemy 3." (Right now i'm dealing with just 1 on 1 fights) But everytime it chooses the same "enemy." (I'm using character graphics for these by the way) If nothing else, it seems as though the graphic should at least change, if not the variables representing enemy health.
So in short, how would I go about making it spawn a random event? (the event being my "enemy" of course) Thanks in advance, and let me know if I'm doing something/trying to do something retarded and/or impossible

Comment