Castle Paradox Forum Index Castle Paradox

 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 Gamelist   Review List   Song List   All Journals   Site Stats   Search Gamelist   IRC Chat Room

Running from battles

 
Post new topic   Reply to topic    Castle Paradox Forum Index -> HELP!
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.

PostPosted: Sat Feb 26, 2005 3:35 pm    Post subject: Running from battles Reply with quote

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
View user's profile Send private message Visit poster's website
Machu
Righter, a person who rights wrongs




Joined: 09 Jul 2003
Posts: 737

PostPosted: Sat Feb 26, 2005 4:16 pm    Post subject: Reply with quote

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
View user's profile Send private message
Moogle1
Scourge of the Seas
Halloween 2006 Creativity Winner
Halloween 2006 Creativity Winner



Joined: 15 Jul 2004
Posts: 3377
Location: Seattle, WA

PostPosted: Sat Feb 26, 2005 8:26 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website AIM Address
Operation Freedom
It was my idea in the first place




Joined: 24 Feb 2005
Posts: 12
Location: Next stop, Iran.

PostPosted: Sun Feb 27, 2005 5:23 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Sephyroth
Renegade Rebel Redmage
Class A Minstrel



Joined: 04 Feb 2003
Posts: 644
Location: Schmocation

PostPosted: Sun Feb 27, 2005 7:07 pm    Post subject: Reply with quote

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 Sad...
Back to top
View user's profile Send private message Send e-mail AIM Address
Moogle1
Scourge of the Seas
Halloween 2006 Creativity Winner
Halloween 2006 Creativity Winner



Joined: 15 Jul 2004
Posts: 3377
Location: Seattle, WA

PostPosted: Sun Feb 27, 2005 10:35 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website AIM Address
Display posts from previous:   
Post new topic   Reply to topic    Castle Paradox Forum Index -> HELP! All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group