- Mar 27, 2020
- Reaction score
- First Language
- Primarily Uses
@boomyDo you mean like this:
I adjusted the WAIT from 25 to 4 (so the arrow appears during the missile action). I forced the unit to use the missile action; by default the bow weapon has an arrow appear on the last frame.Code:
<target action> MOTION MISSILE: user WAIT: 4 create object: 1, sv_arrow, user, 0, -15 SE: Wind7 MOVE object 1: target, CENTER, 30 WAIT: 30 DELETE object: 1 ACTION EFFECT: target if !target.result().missed && !target.result().evaded ATTACK ANIMATION: target WAIT FOR ANIMATION else WAIT: 24 end </target action>
I also achieved pathfinding in the game. It has some bugs which I have pasted below but works alright. I will release the script once I fix the bugs up (or give up on fixing bugs):
The nymph hero is under attraction (confusion with self-target friendlies) and the enemy has a short ranged attack. Harold is on the same team as the nymph but is paralyzed.
about the "bow-solution":
I think that wont solve it ..
(Actors have no proplem using bows and dont need this^^). This has to work with Enemy Units like the "Naughty Fairy" (enemyID_4) .. That is the point on this issue.Like MetalKing11417 explained(#935) our problem is that Enemies don't have attack animations by default ,so we try to recreate it with the Action Sequence..
Sidenote for other readers who dont know the context:
After MetalKing showed how to build the arrow object and let it fly to target..,only the Motion "show bow before shoot" is missing.. thats what boomy tried to solve here..
after thinking and testing more ,Im pretty sure that this Motion "show bow before shoot" cant work for enemys,because they dont use a "Chibi character Image" and these "Attack Motions", where the actors hold the weapons are made for the "Chibi character Image" by default..
(so it would need more edited Art to improve this part, and thats probably a lot of work)
But i thank you for trying(the bow solution),..
about the Pathfinding Bug:
I got no idea what you did and without more infos about that and some Console F8 Screenshots, i cant say why the "-property of event id" is missing..
Pls give us more info about your Pathfinding solution and its bugs,perhaps we can figure it out^^
Also i forgot to mention that earlier:
..on the first Example(#933) you used 2 "Nymphe Actors" (same Actor 2 times).This would make conflicts doing this in a real game.Enemys can be used as often you want ,but Actors should be used only 1 time (no actor clone) ,to avoid Conflicts that can and will happen later,..
about "fun little ideas"(#939):
Thx i like it and will proably try editing some arrow Images ,to create "ice & fire & thunder" Arrows for Example..
Thats just the first idea i got in Mind,but you are also right that this can also be used for magic skills with using completly other images^^ ..thx for the help!