Starting from the top here. You gave no information about how advanced in programming or math you are, so I'm covering it all.
Say that you have two circular objects, and you have a radius defined for each one (r1 and r2). In order to check if they are colliding, you must check the distance between the two object centers. It is easy to see that if the objects are, say, 20 pixels in radius each, and they're less than 40 pixels away from each other, there is a collision. In other words, if the distance between the objects is less than (r1+r2), then they are colliding.
Now, how would you find the distance between two points? All you have are the X and Y coordinates, which don't directly say how far apart. If you paid attention in math class, you probably learned about the Pythagorean Theorem, which states that you can find the hypotenuse of a right triangle if you know the other two sides. In this case, the two sides are the X distance between the objects and the Y distance between the objects, and the hypotenuse is the distance between said objects.
a2 + b2 = c2. A and B are the X and Y distances between the objects, so distance2 = (x1-x2)2 + (y1-y2)2. Converted to Danmakufu code, with two objects obj1 and obj2, and assuming a constant radius:
if( (Obj_GetX(obj1)-Obj_GetX(obj2))^2 + (Obj_GetY(obj1)-Obj_GetY(obj2))^2 < radius * radius){
collision stuff here;
}
Assuming you're going to be colliding every bullet with every other bullet, the problem is how to get other bullet IDs in the bullet task. To do this, you put them all into an array (as Mewkyuu said with his very vague and not-explanatory explanation). You might have a global array called bullets (let bullets = [];), and at the beginning of each bullet task after you get its ID (the let obj = Obj_Create(OBJ_SHOT); line), you would put bullets = bullets~obj; to add the bullet ID to the array. In the bullet task, loop through the array and check collision if the bullet ID is less than the current one (so it only checks each pair once, and doesn't check collision with itself).
So then the only thing left to do would be removing the bullet ID from the array if the bullet is deleted. I'm not sure if I need to explain that, but I'd explain it anyway if I wasn't really hungry right now. Hopefully you can handle it from here!
(I probably wrote way too much.)