Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - dpro_games

#46
Code of the small_key:
local item = ...

function item:on_created()

   
    item:set_shadow("small")
    item:set_can_disappear(false)
    item:set_brandish_when_picked(true)
    item:set_sound_when_picked("picked_small_key")
end

function item:on_obtaining()
 
end


And the door is create with solarus with the option : hero need an item to open the door (small_key)
#47
I have a problem to initialize the "small_key" save. :-\

I want to create a door in a dongeon which can be open with a small key but solarus display an error in the consol...I still read the documentation but i don't understand how can I do to solarus doesn't display that: : Error: In create_door: bad argument #1 to ? (Bad field 'opening_condition' (equipment item 'small_key' is not saved)).
:'( Thank to help me !!!

Sorry for the bad translation, I'm french...