Glitch
Member
Hi guys, I have began my foray into scripting, I have no experience in programming other then Excel formulas, so even though I have an understanding of the logical steps in variable interaction I am unable as yet to write my own scripts in Openbor. I could really use some help.
I have a drum obstacle that I need to react differently based on the attack type that has hit it.
If it is hit by:
attack1 or attack2: (normal attacks)
fall down and roll a little (depending on direction of attack), remain in floor in a idle2 position being vulnerable to all attacks, all attacks would then make it roll a little more (depending on direction of attack)
attack3 to attack 6: (hard attacks)
get damaged and fall down being damaged (depending on direction of attack), remain on floor in damaged state vulnerable too all attacks, all attacks will not move it in anyway
attack7: (shoot attack)
play explode animation
attack8: (player use/interact animation)
would play an attack animation (0 damage) that would then make player kneel/crouch to hide using drum as cover
I have researched the many different scripts available on the forum, so many that can do so much, however I am unable to understand scripting enough to modify them.
I have tried with some success in regards to Ilu’s obstacle pain and facing script (
[http://www.chronocrash.com/forum/index.php?topic=3973.msg54825#msg54825), which is the base for what I require. However there is the ’’react differently based on the attack type that has hit it’’ problem which I can not solve.
Any help and/or suggestions would be greatly appreciated.
Below are the current drum obstacle text files, and the image files:
I have a drum obstacle that I need to react differently based on the attack type that has hit it.
If it is hit by:
attack1 or attack2: (normal attacks)
fall down and roll a little (depending on direction of attack), remain in floor in a idle2 position being vulnerable to all attacks, all attacks would then make it roll a little more (depending on direction of attack)
attack3 to attack 6: (hard attacks)
get damaged and fall down being damaged (depending on direction of attack), remain on floor in damaged state vulnerable too all attacks, all attacks will not move it in anyway
attack7: (shoot attack)
play explode animation
attack8: (player use/interact animation)
would play an attack animation (0 damage) that would then make player kneel/crouch to hide using drum as cover
I have researched the many different scripts available on the forum, so many that can do so much, however I am unable to understand scripting enough to modify them.
I have tried with some success in regards to Ilu’s obstacle pain and facing script (
[http://www.chronocrash.com/forum/index.php?topic=3973.msg54825#msg54825), which is the base for what I require. However there is the ’’react differently based on the attack type that has hit it’’ problem which I can not solve.
Any help and/or suggestions would be greatly appreciated.
Below are the current drum obstacle text files, and the image files: