Skip to content

Issue with Shoplib #10

@mclevenger75

Description

@mclevenger75

So I've added the shoplib to my quest game, but when I try to buy an item, quest returns an error in the buyingprice function. Even simplifying the library to return the obj.price, I get the following error:

Error running script: Error compiling expression 'obj.price': Unknown object or variable 'obj'

Function name: BuyingPrice
return type: integer
parameters: price

if (game.pov.status = "Merchant's Tongue") {
rate = 75
}
else {
rate = 100
}
return (obj.price)

It seems like it's not getting passed a value or something.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions