GetTransactionInfo
Jump to navigation
Jump to search
< [[::Category:Functions|Category:Functions]]
A function added by the Oblivion Script Extender.
Syntax:
(transactionInfo:Stringmap) GetTransactionInfo transactionType:string
Returns information about the most recent barter transaction completed by the player as a Stringmap.
Specify "buy" for information about the player's most recent purchase, or "sell" for his most recent sale to a merchant.
Once a transaction has been returned to a particular script, subsequent calls to this function requesting the same type of transaction ("buy" or "sell") will return zero until a new transaction of that type takes place.
The returned Stringmap contains the following information:
"seller" (ref): The actor who sold the item "buyer" (ref): The actor who purchased the item "item" (base object): The item purchased or sold "quantity" (short): The number of items purchased or sold "price" (short): The total cost of the transaction.