The plugin: https://qiujiu.itch.io/qj-bullet-plugin
The issue: one of the weapons (meteorite dart, in test map it's on top right, second from the rightest one) does not work in my game even if i directly copy all of it's event code. I assume there are a missing component for it, since it summons the dart, but meteorites do not fall - most likely they are the separate entity that are summoned by the throw.
The problem is that i can't find it. There is no global events that would do such thing, and i searched every event on the bullet test map in the demo - there is no parallel process or some other kind of a trigger that would summon the meteorites.
I tried to search plugin's help file, but there are no mentions of meteorites. The only option that remains is to study the code of the original event, and it seems like i found the missing element there, but can't understand how it works.
So the command in the event is:
MoveQT:[[0,12,"redCircle"]],RotationAuto:750,
That lead me to the Text Pre-Set setting of the plugin. Sadly, on that part my brain exploded and i failed to figure out what exactly it does apart from general understanding that it somehow determines the course of events that happen after this exact preset is triggered. At least i think that is what the help file says:
But there seems to be no explanation on how those text id's are made and the logic of their functions.
It looks like this:
Sadly i am code illiterate so i have no idea about the meaning of all those functions.
So i just copied it into my game and... it sort of works, red circles where meteorites will fall appear, but meteorites fall randomly and seems to be most of them appear outside the map. Since i directly copied source material, the only mistake i could done at this point is miss one more component of this event? But... which one?
At this point my understanding of it all hit a brick wall and whatever remains of my intellect admitted utter failure. So maybe someone with better understanding of code can explain that to me.
The issue: one of the weapons (meteorite dart, in test map it's on top right, second from the rightest one) does not work in my game even if i directly copy all of it's event code. I assume there are a missing component for it, since it summons the dart, but meteorites do not fall - most likely they are the separate entity that are summoned by the throw.
The problem is that i can't find it. There is no global events that would do such thing, and i searched every event on the bullet test map in the demo - there is no parallel process or some other kind of a trigger that would summon the meteorites.
I tried to search plugin's help file, but there are no mentions of meteorites. The only option that remains is to study the code of the original event, and it seems like i found the missing element there, but can't understand how it works.
So the command in the event is:
MoveQT:[[0,12,"redCircle"]],RotationAuto:750,
That lead me to the Text Pre-Set setting of the plugin. Sadly, on that part my brain exploded and i failed to figure out what exactly it does apart from general understanding that it somehow determines the course of events that happen after this exact preset is triggered. At least i think that is what the help file says:
But there seems to be no explanation on how those text id's are made and the logic of their functions.
It looks like this:
["{\"name\":\"boom\",\"content1\":\"\\\"QJ.BL.Shooter_ArcRange(0,{\\\\nAnim:131,\\\\nImg:\\\\\\\"dart\\\\\\\",\\\\nTarget:[\\\\\\\"G[enemy]\\\\\\\"],\\\\nAction:[\\\\\\\"C[1,3]\\\\\\\"],\\\\nPierce:999,\\\\nRegions:[1],\\\\nAnchorY:0.5,\\\\nx:this.screenShowXLast(1),\\\\ny:this.screenShowYLast(1),\\\\nPierceAction:true,\\\\nCollisionBox:\\\\\\\"R[24,24]\\\\\\\"\\\\n},[0,359,12,0])\\\"\",\"content2\":\"\",\"content3\":\"\"}","{\"name\":\"electro\",\"content1\":\"\\\"QJ.BL.TwoPoint(\\\\nthis.screenShowX(),this.screenShowY(),\\\\n\\\\\\\"GRR[enemy,\\\\\\\"+this.screenShowX()+\\\\\\\",\\\\\\\"+this.screenShowY()+\\\\\\\",288]\\\\\\\",\\\\n\\\\\\\"GRR[enemy,\\\\\\\"+this.screenShowX()+\\\\\\\",\\\\\\\"+this.screenShowY()+\\\\\\\",288]\\\\\\\",\\\\n{\\\\nTarget:[\\\\\\\"G[enemy]\\\\\\\"],\\\\nAction:[\\\\\\\"C[1,1]\\\\\\\"],\\\\nMax:3,\\\\nDeadCount:0,\\\\nAtkWait:2\\\\n});\\\\n\\\"\",\"content2\":\"\",\"content3\":\"\"}","{\"name\":\"test1\",\"content1\":\"\\\"QJ.BL.Shoot({\\\\ninitialRotation:this.rotation*180/Math.PI+10,\\\\nSpeed:16,Max:120,\\\\nRegions:[1],CollisionBox:\\\\\\\"R[6,26]\\\\\\\",\\\\nAnim:131,Target:[\\\\\\\"G[enemy]\\\\\\\"],\\\\nAction:[\\\\\\\"C[1,5]\\\\\\\"],\\\\nAfterImage:[\\\\\\\"0|#0000FF~10/#00FF00~10/#FF0000~10/#0000FF\\\\\\\",150,15,0],\\\\nx:this.screenShowX(),\\\\ny:this.screenShowY(),\\\\n})\\\"\",\"content2\":\"\\\"QJ.BL.Shoot({\\\\ninitialRotation:this.rotation*180/Math.PI-10,\\\\nSpeed:16,Max:120,\\\\nRegions:[1],CollisionBox:\\\\\\\"R[6,26]\\\\\\\",\\\\nAnim:131,Target:[\\\\\\\"G[enemy]\\\\\\\"],\\\\nAction:[\\\\\\\"C[1,5]\\\\\\\"],\\\\nAfterImage:[\\\\\\\"0|#0000FF~10/#00FF00~10/#FF0000~10/#0000FF\\\\\\\",150,15,0],\\\\nx:this.screenShowX(),\\\\ny:this.screenShowY(),\\\\n})\\\"\",\"content3\":\"\"}","{\"name\":\"laser1\",\"content1\":\"\\\"QJ.BL.Laser({\\\\nRegions:[1],\\\\nWidth:12,ReBound:1,DeadCount:5,\\\\nMax:120,Img:\\\\\\\"WideBeam2\\\\\\\",ImgPoint:\\\\\\\"LaserCircle2\\\\\\\",\\\\ninitialRotation:\\\\\\\"90\\\\\\\",\\\\nx:\\\\\\\"E[0]\\\\\\\",y:\\\\\\\"E[0]\\\\\\\",\\\\nAtkWait:10,ScaleX:\\\\\\\"0|100~15/150\\\\\\\",\\\\nOpacity:\\\\\\\"0|255~5/200~5/255~5/200\\\\\\\",\\\\nTarget:[\\\\\\\"P[]\\\\\\\"],Action:[\\\\\\\"C[2,3]\\\\\\\"],\\\\nRotationAuto:360+0.25,MaxLength:240\\\\n});\\\"\",\"content2\":\"\",\"content3\":\"\"}","{\"name\":\"laser2\",\"content1\":\"\\\"QJ.BL.Laser({\\\\nRegions:[1],\\\\nWidth:12,ReBound:1,DeadCount:5,\\\\nMax:120,Img:\\\\\\\"WideBeam2\\\\\\\",ImgPoint:\\\\\\\"LaserCircle2\\\\\\\",\\\\ninitialRotation:\\\\\\\"90\\\\\\\",\\\\nx:\\\\\\\"E[0]\\\\\\\",y:\\\\\\\"E[0]\\\\\\\",\\\\nAtkWait:10,ScaleX:\\\\\\\"0|100~15/150\\\\\\\",\\\\nOpacity:\\\\\\\"0|255~5/200~5/255~5/200\\\\\\\",\\\\nTarget:[\\\\\\\"P[]\\\\\\\"],Action:[\\\\\\\"C[2,3]\\\\\\\"],\\\\nRotationAuto:360-0.25,MaxLength:240\\\\n});\\\"\",\"content2\":\"\",\"content3\":\"\"}","{\"name\":\"laser3\",\"content1\":\"\\\"QJ.BL.Laser({\\\\nRegions:[1],\\\\nWidth:12,ReBound:0,DeadCount:10,\\\\nMax:90,Img:\\\\\\\"WideBeam2\\\\\\\",ImgPoint:\\\\\\\"LaserCircle2\\\\\\\",\\\\ninitialRotation:\\\\\\\"P[]\\\\\\\",\\\\nx:\\\\\\\"E[0]\\\\\\\",y:\\\\\\\"E[0]\\\\\\\",\\\\nAtkWait:10,ScaleX:20,\\\\nOpacity:\\\\\\\"0|255~5/200~5/255~5/200\\\\\\\",\\\\nMaxLength:48*10,\\\\n});\\\"\",\"content2\":\"\",\"content3\":\"\"}","{\"name\":\"laser4\",\"content1\":\"\\\"QJ.BL.Laser({\\\\nRegions:[1],\\\\nWidth:12,ReBound:0,DeadCount:10,\\\\nMax:30,Img:\\\\\\\"WideBeam2\\\\\\\",ImgPoint:\\\\\\\"LaserCircle2\\\\\\\",\\\\ninitialRotation:\\\\\\\"P[]\\\\\\\",\\\\nx:\\\\\\\"E[0]\\\\\\\",y:\\\\\\\"E[0]\\\\\\\",\\\\nAtkWait:6,ScaleX:\\\\\\\"0|100~15/150\\\\\\\",\\\\nOpacity:\\\\\\\"0|255~5/200~5/255~5/200\\\\\\\",\\\\nTarget:[\\\\\\\"P[]\\\\\\\"],Action:[\\\\\\\"C[2,3]\\\\\\\"],MaxLength:\\\\\\\"0|24~30/480\\\\\\\",\\\\nRotationAuto:0\\\\n});\\\"\",\"content2\":\"\",\"content3\":\"\"}","{\"name\":\"HY1\",\"content1\":\"\\\"QJ.BL.Shoot({\\\\ninitialRotation:\\\\\\\"M[]\\\\\\\",\\\\nSpeed:12,Max:90,\\\\nRegions:[1],CollisionBox:\\\\\\\"R[16,16]\\\\\\\",\\\\nAnim:131,Target:[\\\\\\\"G[enemy]\\\\\\\"],\\\\nAction:[\\\\\\\"C[1,5]\\\\\\\"],Img:\\\\\\\"dart\\\\\\\",\\\\nAfterImage:[\\\\\\\"0|#ec6c51~5/#ffb98f~5/#ec6c51\\\\\\\",255,8,12],\\\\nMoveQT:[[0,3,\\\\\\\"HY3\\\\\\\"]],\\\\nx:this.screenShowX(),\\\\ny:this.screenShowY(),\\\\ninitialRotation:this.rotation*180/Math.PI+10,\\\\nPierce:99999,PierceAction:true\\\\n})\\\"\",\"content2\":\"\",\"content3\":\"\"}","{\"name\":\"HY2\",\"content1\":\"\\\"QJ.BL.Shoot({\\\\ninitialRotation:\\\\\\\"M[]\\\\\\\",\\\\nSpeed:12,Max:90,\\\\nRegions:[1],CollisionBox:\\\\\\\"R[16,16]\\\\\\\",\\\\nAnim:131,Target:[\\\\\\\"G[enemy]\\\\\\\"],\\\\nAction:[\\\\\\\"C[1,5]\\\\\\\"],Img:\\\\\\\"dart\\\\\\\",\\\\nAfterImage:[\\\\\\\"0|#ec6c51~5/#ffb98f~5/#ec6c51\\\\\\\",255,8,12],\\\\nMoveQT:[[0,3,\\\\\\\"HY3\\\\\\\"]],\\\\nx:this.screenShowX(),\\\\ny:this.screenShowY(),\\\\ninitialRotation:this.rotation*180/Math.PI-10,\\\\nPierce:99999,PierceAction:true\\\\n})\\\"\",\"content2\":\"\",\"content3\":\"\"}","{\"name\":\"HY3\",\"content1\":\"\\\"QJ.BL.Shoot({\\\\ninitialRotation:\\\\\\\"M[]\\\\\\\",\\\\nSpeed:1,Max:60,DeadCount:10,Opacity:100,\\\\nRegions:[1],CollisionBox:\\\\\\\"R[16,16]\\\\\\\",\\\\nAnim:131,Target:[\\\\\\\"G[enemy]\\\\\\\"],\\\\nAction:[\\\\\\\"C[1,5]\\\\\\\"],Img:\\\\\\\"dart\\\\\\\",\\\\nx:this.screenShowX(),\\\\ny:this.screenShowY(),\\\\ninitialRotation:this.rotation*180/Math.PI-10\\\\n})\\\"\",\"content2\":\"\",\"content3\":\"\"}","{\"name\":\"redCircle\",\"content1\":\"\\\"QJ.BL.Shoot({\\\\nImg:\\\\\\\"F\\\\\\\",Speed:0,Max:90,DeadCount:0,\\\\nx:this.screenShowX(),\\\\ny:this.screenShowY(),\\\\nscaleX:\\\\\\\"0|0~90/100\\\\\\\",\\\\nscaleY:\\\\\\\"0|0~90/100\\\\\\\",\\\\nBit:true,AnchorY:0.5,\\\\nOpacity:\\\\\\\"0|200~90/50\\\\\\\",\\\\nMoveQT:[[50,9999,\\\\\\\"meteorite\\\\\\\"]],\\\\n});\\\"\",\"content2\":\"\",\"content3\":\"\"}","{\"name\":\"meteorite\",\"content1\":\"\\\"QJ.BL.Shoot({\\\\nImg:\\\\\\\"meteorite\\\\\\\",Speed:48,Max:8,DeadCount:0,\\\\nx:this.screenShowX(),\\\\ny:this.screenShowY()-48*8,\\\\ninitialRotation:180,Bit:true,Anim:132,\\\\nAtkRange:72,NoCollisionAnim:true,NoCollisionAction:true,\\\\nTarget:[\\\\\\\"G[enemy]\\\\\\\"],Action:[\\\\\\\"C[1,99]\\\\\\\"]\\\\n});\\\"\",\"content2\":\"\",\"content3\":\"\"}","{\"name\":\"sakuraShoot\",\"content1\":\"\\\"QJ.BL.Shoot({\\\\nImg:\\\\\\\"sakura\\\\\\\",Target:[\\\\\\\"G[enemy]\\\\\\\"],Action:[\\\\\\\"C[1,25]\\\\\\\"],\\\\nPierce:9999,PierceAction:true,\\\\nDeadCount:15,initialRotation:this.showRotation()+180,\\\\nx:this.screenShowX(),RotationAuto:this.showRotation(),\\\\ny:this.screenShowY(),\\\\nMax:180,Speed:16,CollisionBox:\\\\\\\"R[72,96]\\\\\\\",\\\\nAfterImage:[\\\\\\\"#f59ef3\\\\\\\",255,30,36],\\\\n});\\\"\",\"content2\":\"\",\"content3\":\"\"}","{\"name\":\"Slalom\",\"content1\":\"\\\"QJ.BL.Shoot({\\\\ninitialRotation:this.showRotation()+180,\\\\nImg:\\\\\\\"dart2\\\\\\\",RotationAuto:390,\\\\nSpeed:8,Pierce:999,\\\\nRegions:[1],CollisionBox:\\\\\\\"R[32,32]\\\\\\\",\\\\nAnim:131,\\\\nx:this.screenShowX(),\\\\ny:this.screenShowY(),\\\\nAnchorY:0.5,\\\\nTarget:[\\\\\\\"G[enemy]\\\\\\\"],PierceAction:true,\\\\nAction:[\\\\\\\"C[1,2]\\\\\\\"],\\\\nMoveType:\\\\\\\"TP[7]\\\\\\\",\\\\nMax:\\\\\\\"T[this.colliedWith(-1)]\\\\\\\",\\\\nAfterImage:[\\\\\\\"#f13c32\\\\\\\",\\\\\\\"0|255~16|255\\\\\\\",16,\\\\\\\"0|16~16%0\\\\\\\"]\\\\n})\\\"\",\"content2\":\"\",\"content3\":\"\"}","{\"name\":\"laser5\",\"content1\":\"\\\"let color = [Math.random()*300-150,Math.random()*300-150,Math.random()*300-150,0];\\\\nQJ.BL.Laser({\\\\nRegions:[1],Width:12,ReBound:0,Tone:color,\\\\nMax:120,Img:\\\\\\\"WideBeam3\\\\\\\",ImgPoint:\\\\\\\"LaserCircle3\\\\\\\",\\\\ninitialRotation:45,\\\\nx:\\\\\\\"B[\\\\\\\"+this.index+\\\\\\\"]\\\\\\\",y:\\\\\\\"B[\\\\\\\"+this.index+\\\\\\\"]\\\\\\\",\\\\nAtkWait:20,Target:[\\\\\\\"G[enemy]\\\\\\\"],Action:[\\\\\\\"C[1,2]\\\\\\\"],\\\\nRotationAuto:360-2,MaxLength:\\\\\\\"0|0~120/240\\\\\\\",Opacity:\\\\\\\"0|255~120/0\\\\\\\",\\\\n});\\\\nQJ.BL.Laser({\\\\nRegions:[1],Width:12,ReBound:0,Tone:color,\\\\nMax:120,Img:\\\\\\\"WideBeam3\\\\\\\",ImgPoint:\\\\\\\"LaserCircle3\\\\\\\",\\\\ninitialRotation:135,\\\\nx:\\\\\\\"B[\\\\\\\"+this.index+\\\\\\\"]\\\\\\\",y:\\\\\\\"B[\\\\\\\"+this.index+\\\\\\\"]\\\\\\\",\\\\nAtkWait:20,Target:[\\\\\\\"G[enemy]\\\\\\\"],Action:[\\\\\\\"C[1,2]\\\\\\\"],\\\\nRotationAuto:360-2,MaxLength:\\\\\\\"0|0~120/240\\\\\\\",Opacity:\\\\\\\"0|255~120/0\\\\\\\",\\\\n});\\\\nQJ.BL.Laser({\\\\nRegions:[1],Width:12,ReBound:0,Tone:color,\\\\nMax:120,Img:\\\\\\\"WideBeam3\\\\\\\",ImgPoint:\\\\\\\"LaserCircle3\\\\\\\",\\\\ninitialRotation:225,\\\\nx:\\\\\\\"B[\\\\\\\"+this.index+\\\\\\\"]\\\\\\\",y:\\\\\\\"B[\\\\\\\"+this.index+\\\\\\\"]\\\\\\\",\\\\nAtkWait:20,Target:[\\\\\\\"G[enemy]\\\\\\\"],Action:[\\\\\\\"C[1,2]\\\\\\\"],\\\\nRotationAuto:360-2,MaxLength:\\\\\\\"0|0~120/240\\\\\\\",Opacity:\\\\\\\"0|255~120/0\\\\\\\",\\\\n});\\\\nQJ.BL.Laser({\\\\nRegions:[1],Width:12,ReBound:0,Tone:color,\\\\nMax:120,Img:\\\\\\\"WideBeam3\\\\\\\",ImgPoint:\\\\\\\"LaserCircle3\\\\\\\",\\\\ninitialRotation:315,\\\\nx:\\\\\\\"B[\\\\\\\"+this.index+\\\\\\\"]\\\\\\\",y:\\\\\\\"B[\\\\\\\"+this.index+\\\\\\\"]\\\\\\\",\\\\nAtkWait:20,Target:[\\\\\\\"G[enemy]\\\\\\\"],Action:[\\\\\\\"C[1,2]\\\\\\\"],\\\\nRotationAuto:360-2,MaxLength:\\\\\\\"0|0~120/240\\\\\\\",Opacity:\\\\\\\"0|255~120/0\\\\\\\",\\\\n});\\\"\",\"content2\":\"\",\"content3\":\"\"}","{\"name\":\"love\",\"content1\":\"\\\"let dataList = {'0':1,'-30':1.62,'-60':1.64,'-90':1.28,'-120':1.04,'-150':0.98,'-180':1.18,'150':0.98,'120':1.04,'90':1.28,'60':1.64,'30':1.62};\\\\nfor (let i in dataList) {\\\\nQJ.BL.Shoot({\\\\ninitialRotation:this.showRotationMove()+Number(i),\\\\nx:this.screenShowX(),y:this.screenShowY(),\\\\nRegions:[1],Speed:dataList,scaleX:200,scaleY:200,\\\\nCollisionBox:\\\\\\\"C[3]\\\\\\\",Max:50,Target:[\\\\\\\"G[enemy]\\\\\\\"],\\\\nImg:\\\\\\\"love\\\\\\\",DeadCount:30,DeadScale:200,\\\\nAction:[\\\\\\\"C[1,3]\\\\\\\"]\\\\n});\\\\n}\\\"\",\"content2\":\"\",\"content3\":\"\"}"]
Sadly i am code illiterate so i have no idea about the meaning of all those functions.
So i just copied it into my game and... it sort of works, red circles where meteorites will fall appear, but meteorites fall randomly and seems to be most of them appear outside the map. Since i directly copied source material, the only mistake i could done at this point is miss one more component of this event? But... which one?
At this point my understanding of it all hit a brick wall and whatever remains of my intellect admitted utter failure. So maybe someone with better understanding of code can explain that to me.