Staredit Network

Staredit Network -> UMS Assistance -> Random battles help
Report, edit, etc...Posted by Cloak(U) on 2005-04-01 at 22:58:07
can some1 help me with random battles? like the ones in final fantasy games? make it clear too plz
Report, edit, etc...Posted by LegacyWeapon on 2005-04-01 at 23:37:39
Do you mean you walk around and you have to hit an enemy to go into battle or you just walk around and suddenly you say "you found an enemy" and you go into the battle mode?
Report, edit, etc...Posted by pimpinelephant on 2005-04-01 at 23:49:32
i think he means the actual Final Fantasy games where u just walk around and the screen shatters and all of a sudden ur in a battle. i think he's asking how would u make it just randomly have a battle.
Report, edit, etc...Posted by LegacyWeapon on 2005-04-01 at 23:55:12
It's kinda like footsteps. When you leave the location, randomize a few switches and Set one. Then center location back onto the unit.

Steps:
1) Footsteps trigger where you leave the location, randomizes switches 2-3 and Sets switch 1.

2) If switch 2 and 3 are both set and switch 1 is set, then initiate battling sequence.

3) Clear switch 1.

Just calculate the possibilities by doing 2^x where x is the number of switches used.

Here are some other ways of doing randomization plus an extensive tutorial on switch randomization:
http://www.staredit.net/index.php?tutorial=61
Report, edit, etc...Posted by Alex Lifeson on 2005-04-02 at 00:02:58
Actually, this reminds me of a system I made.
There would be a dropship with a unit in it called [Battler] that when dropped would switch the death counts of itself and when death counts reach [on position] every second a few switches would be thrown and depending on the combo would 1. Randomize switches again or 2. Send the players into a random battle with random enemies depending on switch combination and location of players. The goal of this system is so if you're weak or impatient you could escape enemies, but if you wanted experience you have to flip the switch yourself. It helps when you aren't paying attention and you start getting murdered. My RPG was also going to be based upon my clan trying to survive Battle.net to reach Blizzard headquarters so we could make SC2...
Report, edit, etc...Posted by Cloak(U) on 2005-04-02 at 11:13:14
lol okay i get that part but, what if I wanted it to be randomized time as well?
Report, edit, etc...Posted by LegacyWeapon on 2005-04-02 at 11:16:16
Then have a deathcounter running that constantly down. And after a battle, set it to a certain number.

Afterbattle: Set death counter up

Constantly: Set death counter 1 down


So when it's at 0 then you are allowed to battle. Add it to the conditions of step 2.
Report, edit, etc...Posted by Cloak(U) on 2005-04-02 at 11:18:35
lol i have to do deatth counters or can i use diff thing? like?
Report, edit, etc...Posted by LegacyWeapon on 2005-04-02 at 11:23:37
Physical Timer: Make the unit walk a certain distance. Move it to the starting place when a battle ends. Only allow battles to initiate when the unit is at the end.

Countdown Timer: Use a countdown timer... you know it

The randomized timer is kinda pointless because every step you take will have a randomized chance of battling. So the time is also "randomized" in a sense. If you wanted a lower chance of battling, use more switches.
Report, edit, etc...Posted by Cloak(U) on 2005-04-02 at 11:26:11
oh okay cool
Next Page (1)