View previous topic :: View next topic |
Author |
Message |
Operation Freedom It was my idea in the first place

Joined: 24 Feb 2005 Posts: 12 Location: Next stop, Iran.
|
Posted: Sat Feb 26, 2005 3:35 pm Post subject: Running from battles |
|
|
Forgive me for asking, what might be a stupid question.
Is there someway to make battles escapeable 50% of the times you try to escape, without using a instead of battle script.
It would be nice if their was some kind of before battle script. _________________ Georgie, am i right to think, that electric chairs now bores you?
Oh show me, the american way of armageddon. |
|
Back to top |
|
 |
Machu Righter, a person who rights wrongs

Joined: 09 Jul 2003 Posts: 737
|
Posted: Sat Feb 26, 2005 4:16 pm Post subject: |
|
|
It's been a long time since I've plotscripted in OHR, but I'm sure there's a command to start a battle, so when using an instead-of-battle script, you can easily do stuff before starting the normal battle (and after it, too).
EDIT: I just looked up the documentation, and this is what it says for instead-of-battle scripts:
"Instead-of-Battle Script
In the "General Map Data" menu of the Map editor, you can set a script that will be run instead whenever a random battle would have been triggered. It automatically gets two arguments passed to it, the first is the formation number of the battle you would have fought (in case you want to go ahead and trigger the battle from your script with the fight formation command), and the second argument is the number of the battle-formation-set that the random battle was chosen from."
As it says there, in order to make the normal battle occur in the middle of the script, use the "fight formation" command using the first argument. _________________
Code: | [*]That's it
[*]I'm done reasoning with you
[*]Starting now, there's going to be a lot less conversation and a lot more killing |
|
|
Back to top |
|
 |
Moogle1 Scourge of the Seas Halloween 2006 Creativity Winner


Joined: 15 Jul 2004 Posts: 3377 Location: Seattle, WA
|
Posted: Sat Feb 26, 2005 8:26 pm Post subject: |
|
|
The problem with your question is that the OHR isn't turn-based. Unless you mean 50% of the battles and not 50% of the run away attempts, your question doesn't make sense in the context of the battle engine. _________________
|
|
Back to top |
|
 |
Operation Freedom It was my idea in the first place

Joined: 24 Feb 2005 Posts: 12 Location: Next stop, Iran.
|
Posted: Sun Feb 27, 2005 5:23 am Post subject: |
|
|
I mean 50% of all the battles in the game.
Does that thing Machu said mean you can have a instead of battle script for all the battles in the game and make the script know which formation set it would have been.
In other words: Can you make a script run before every battle without making a script for each fomation set.
I hope this makes sense... _________________ Georgie, am i right to think, that electric chairs now bores you?
Oh show me, the american way of armageddon. |
|
Back to top |
|
 |
Sephyroth Renegade Rebel Redmage Class A Minstrel

Joined: 04 Feb 2003 Posts: 644 Location: Schmocation
|
Posted: Sun Feb 27, 2005 7:07 pm Post subject: |
|
|
Someone needs to jog my memory: For the instead of battle script, will the default first variable be the ID of the battle that you would've gotten into without the script?
If so, you could probably do something like this:
Code: | script,battle,battleid,begin
fight formation(battleid+random(0,1))
end |
This way, you can have your normal battles be those with even numbers, then have an "unescapable" version of the battle for its odd counterparts (i.e. battle 24 is normal, battle 25 is an unescapable version of battle 24, etc) _________________ im realy ded  |
|
Back to top |
|
 |
Moogle1 Scourge of the Seas Halloween 2006 Creativity Winner


Joined: 15 Jul 2004 Posts: 3377 Location: Seattle, WA
|
Posted: Sun Feb 27, 2005 10:35 pm Post subject: |
|
|
That's the solution I was thinking of -- except you don't even really need plotscripting. Just include both formations in the formation sets. _________________
|
|
Back to top |
|
 |
|