I'm new to scripting and I figured out what I could but now I need a little help, I'm making a plinko/pachinko game and the ball shoots up into the area then bounces around and falls, depending where it lands it will give the person playing a certain amount of points. What I need help with: 1) Score - Keeping track of each users score (tell them their score each time they get points) 2) Scoreboard - Show high scorers 3) Implament a Ball System - Touch an object that gives them a certain amount of balls to play with. 4) Winning Ball System - Turns their points into balls (could it be combined with the Ball System?) 5) Make sure only one person can use the machine at a time Help is greatly appreciated, I got this far on my own and then I got stuck for a while trying to figure it out, I think I need a dataserver, (which I can make a database for this if I need to on my web hosting account), but it has gotten out of my league now. I would pay someone if they will do it for me (just let me know how much you would charge) Anyway I have my lever script: float power;
string object = "Pachinko Ball";
vector relativePosOffset = <8.1, -1.9, 8.2>;
vector relativeVel = <0.0, 0.0, 0.0>;
integer startParam = 10;
default
{
state_entry()
{
}
touch_start(integer total_number)
{
power = 0;
}
touch(integer total_number)
{
llSetTimerEvent(0.2); //set timer
}
touch_end(integer total_number)
{
vector myPos = llGetPos();
vector rezPos = myPos+relativePosOffset;
vector rezVel = relativeVel + <power*-1, 0.0, power*2>;
rotation rezRot = <0.0, 0.0, 0.0, 0.0>;
llRezObject(object, rezPos, rezVel, rezRot, startParam);
llResetScript();
}
timer() {
if(power<10){
power++;
}
else if(power==10){
power=1;
}
llSetText((string) power, <1.0, 1.0, 1.0>, 1.0);
}
} ball script: integer listener;
default
{
state_entry()
{
listener = llListen(-0416, "", "score", "");
}
listen( integer channel, string name, key id, string message)
{
if( message == "die")
{
llListenRemove(listener); //stop listening
llDie(); //de-rez the ball
}
else
{
llWhisper(0, "Something unexpected happened");
}
}
on_rez(integer param)
{
llResetScript(); //reset script so it can listen again
}
} My Jackpot collision: integer jackpot_points; //how much is the jackpot worth
default
{
state_entry()
{
llCollisionFilter("Pachinko Ball","",TRUE);
}
collision_start(integer total_number)
{
llSay(0, "Jackpot!");
//Add points to score
//send message to ball to de-res
llSay(-0416, "die");
}
} My Normal Score Collision: integer score_points; //how much is the score worth
default
{
state_entry()
{
llCollisionFilter("Pachinko Ball","",TRUE);
}
collision_start(integer total_number)
{
llSay(0, "Score!");
//Add points to score
//send message to ball to de-res
llSay(-0416, "die");
}
}