You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think it's not possible to make bombs with only one script, because at present there is no method to make the hero lift/carry a custom entity. First, you would need the custom bomb to follow the hero above him when lifted, which is easy, but you would also need to change the tunic of the hero to simulate the carrying state, and change the "custom state" to avoid using other weapons when carrying the bomb (which involves modifying the event game:on_command_pressed(command), and maybe more things). So it would be necessary to modify several important events and other things. I think that scripting the bombs is not worth it.
PS: I made scripts for items that can be carried and not destroyed when thrown (they just bounce three times), but I don't think it would be useful since it is needed to modify important functions which are usually defined in other scripts. (I will probably get rid of these scripts the day when the engine allow to carry custom entities.) Anyway, I can share that code if you want.
Each entity should be named builtin_${entity}.lua, to allow for other versions of the same entities. See solarus-games/solarus#517 for discussion.
The text was updated successfully, but these errors were encountered: