You chose to pick up the sword.
You begin to weaken because of your hunger. You hear footsteps coming toward you. You duck down behind a barrel of rum. The pirate has come for a drink.
Do you wish to kill him or wait for another means of getting clothes.