change player abilities (faint)

DonoVane

New member
In the game I am modifying, I want to remove some abilities from the player when in a weakened state (faint).

Someone suggested that I add a line with weaponframe in the anim faint block of the original character. Apparently you have to treat it as a weapon and I tried as much as possible to follow the guide about that from the openbormanual. Creating a separate file (type none) with the changed abilities, adding a path in models.txt which loads the faint model file. But I can't make it work. Does someone know how to do this?

EDIT: I finally made it work. There was an issue with the order of weapons. The only issue I have with it still is that the changed form doesn't apply until you let the faint anim appear. If you start running/dodging immediately at low life before the faint state has the time to activate, the changes don't take effect yet. I would still like to get a solution for that, if possible.

EDIT2: I first used the wrong weapon number, but then I also didn't copy enough from the original file into the faint model file so that graphics didn't show up right.
 
I'm kinda puzzled with your description.
Do you want to disable FAINT animation or do you want to disable certain attacks when player's health is below certain limit?
 
Faint animation should not be disabled. But when player's health is below a certain limit (which corresponds to when faint status is reached), the player becomes weaker. Slower, attack chain limit, no mp regeneration. It works fine now for me, except that it doesn't trigger right away when health reaches faint level (standard = 25%), but only when the first frame of the faint animation is shown.
Actually, I would like to know also if it's possible to change faint level to for example 10%. Can't find it in the manual.
 
I only started learning openbor since last week and I didn't make any new scripts yet. There's no takedamagescript in the game I am modifying now I think. I am always checking the online manual and then changing small things to see what difference it makes until I get it right :-\

But in this case, I am not sure yet how to make such a script.
 
Back
Top Bottom