|
Zaplok Riggles
Registered User
Join date: 25 Feb 2008
Posts: 119
|
03-19-2008 09:11
Anyway to force a payment menu from a script? I want my script to know whether the game is running in free mode or not. If in free mode, the user touches me to play. IF not in free mode, I want the touch to force a pay menu to appear. It's sort of awkward having to tell the person to right click the object and click Buy (anyway to change it from Buy to Join Game or something?)
|
|
DoteDote Edison
Thinks Too Much
Join date: 6 Jun 2004
Posts: 790
|
03-19-2008 17:03
Use the "default action on touch" drop-down under the object edit general tab. Set the default action from touch to pay. In your script, use llSetPayPrice() to set a quick-pay option (only one button, no direct-entry). If the machine is in free-play, that price would be L$0, otherwise, the button is set to whatever the join price.
Using the pay option, even for free-play, is good because you can track the transactions by default (they're listed on your transactions page). You can see who is playing without having to script that feature.
|