Tipping Scripts

From Virtual World Web Wiki
Jump to: navigation, search

Scripts

Tips.js The script that registers the Tipping actions with the action manager and handles the exchange of Rays when tipping occurs.

Dependencies

Object Types

Tips

The script that registers the Tipping actions with the action manager and handle the exchange of Rays when tipping occurs.

Configuration

Property Type Description
1RayOffIconURL Resource The icon to display for offering a 1 Ray tip
5RayOffIconURL Resource The icon to display for offering a 5 Ray tip
20RayOffIconURL Resource The icon to display for offering a 20 Ray tip
MoneyObjectTitle String The name of the renderable node under the script to place in the user's hand for 1 and 5 Ray tips
MoneyStackObjectTitle String The name of the renderable node under the script to place in the user's hand for 20 Ray tip
MoneyParticleEffectObjectTitle String The name of the renderable node under the script to attach to the user's hand for the 20 Ray tip (for the particles)
TippingAnimationLength Float How long to play the hand waving animation for the 1 and 5 Ray tips
TippingStartedAnimationEventName String The name of the animation event in the Making it Rain animation that indicates when the particle effect should begin
TippingStoppedAnimationEventName String The name of the animation event in the Making it Rain animation that indicates when the particle effect should stop

Current Functionality

When set up, The user should be able to:

  • Target any other user
  • Be presented with 3 tipping actions in the actions bar: Tip 1 Ray, Tip 5 Rays and Tip 20 Rays
  • When clicking the 1 or 5 Ray tip actions, the user will transfer the appropriate amount of Rays to the target user, a bill will appear in their hand, and they will wave the money in the air for the configured amount of time
  • When clicking the 20 Ray tip action, the user will transfer 20 Rays to the target user, a stack of bills will appear in their hand, and they will play the Make it Rain animation which also throws bills into the air until the animation is finished.

Future Functionality

  • It would be good if then the user tries to tip when they don't have enough Rays, they are offered the chance to purchase more Rays immediately.
  • Tipping could be made into a more interactive experience by allowing the user to keep hitting the tip actions resulting in the tip growing larger with accompanying visual flourishes