Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Swapping Item Issue

A topic by sunteam created Jun 22, 2020 Views: 85 Replies: 2
Viewing posts 1 to 3
Submitted

I have code to fill up an object which swaps one item for another, for example:

: match "fill bottle"  {
: if (is_at "kitchen") {
: if (is_carried "bottle") {
: print "You hold the bottle under the tap, filling it to the brim." ;   
: swap o1 = "bottle"  o2 = "full_bottle_1" ; 
 }}}

This works fine in Adventuron, however when exported and played on the Next, it works, but after displaying the message, also says 'You cannot do that' (even though it already has).

Submitted

Maybe there's a missing 'Done;' after swap.

Submitted

Thanks, that seems to work