XRPS API Sample Code

From XRPSAPIWiki

Jump to: navigation, search

The sample source code below is provided for reference to aid you in the creation of your own unique RP objects. If you have a code submission to share with the community, we'd love to see it! Contact Baron Nowhere in-world for more information.


When creating your own objects using "dice rolls" you do not have to conform to the XRPS definitions, but to ease the learning curve and prevent confusion for your users, we highly recommend you read our XRPS RP Dice Definitions, and try to abide by these guidelines whenever it is possible.


Although we make our bests attempts to make sure all scripts are save and secure, all scripts provided below are certified by the authors as original creations, and released to the community as public domain, all scripts are provided as-is and without warranty. Investigate the scripts closely and use at your own risk.


Contents

Full Source XRPS API Examples

Script Name Description
XRPS Heal On Touch A video-game like feel, where the object rotates (if the scripts is in the base prim) and heals upon touch. This script demonstrates several key features of the XRPS API.
XRPS Door A locking door with settable # combination. Players can attempt to break down the door based on their MOD_MELEE, or pick the lock based on their MOD_HITCHANCE
XRPS Dynamite The dynamite has 3 wires that can be cut. Players must cut the wires to disable the timer. This performs a dice roll against MOD_HITCHANCE and MOD_EVADE
XRPS Rock A heavy object that users attempt to move by using their MOD_MELEE
XRPS Give Notecard A heavy object that users attempt to obtain a notecard by using their MOD_HIT


Code Snippets and Functions using XRPS API

Script Name Description

Other LSL References


LSL Utilities

  • LSLEditor is great because it offers a great runtime environment that Baron Nowhere uses to execute offline tests and evaluations
  • LSL IDE for Eclipse is an environment Baron Nowhere uses for other development outside of LSL, and occasionally for LSL too
  • KDiff3 is a file/directory comparison tool


References

Personal tools