kallekukhuve Posted October 4, 2013 Share Posted October 4, 2013 Hello everyone. It is very late and i am tired. But i have to ask. I finally got into modding on my own and its really awesome! There are so many ideas i have that i want to see in the game that ive been thinkin about and that i couldnt find on nexus. Well nexus is really the only place i look but its the best place to find cool stuff for oblivion isnt it. Well i learned some scripting from the cs homepage as well and i got some of my stuff functioning and that is so cool! But there is one thing i tried over and over again and it just killed two weeks for me, because it should be so simple but i dont know how to get it to work however hard i tried with different ways. I want to bring parrying into the game. Parrying as in not blocking as it is now, but blocking with your blade. And when the player misses a block he takes full damage from the attack. My formula was going to be like this: parry skill = (equipped weapon skill + agility + luck) * weapon speed so a fast weapon is easier to parry with then i calculate the enemys parry skill as well, and when the enemy attacks, players parry skill is divided by the enemys skill. if the parry fails, i tried to make it so the player stops the block animation so that the enemys weapon hits the player by itself. but i couldnt get it to work, i tried starting a new animation loop and stuff and i tried casting a spell but it was too late by many seconds. i also used fquestdelay but it didnt help. i also tried to make it simple so that insted of the blocking animation stops the player just take damage from the hit. (i changed the fBlock settings so blocking always blocks 100% no matter the blocking skill) but this simpler version didnt work either.i think my main problem is i cannot get the players target ref. i tried with getcrosshairref and i tried with tokens and quest variables but i just cant get it to work. if someone has an idea i would be truly grateful because this would raise the game in my eyes alot! especially if someone knows how to make it so that when the player or the enemy blocks with a weapon and fails to parry he/she stops the blocking animation so the weapon hits the body. cheers anton Link to comment Share on other sites More sharing options...
Recommended Posts