Author Topic: switch admin orb  (Read 1905 times)

I want create script for admin orbs color , particle switch instead restart your server for pick one admin orb bubble or  star. what the function called?
Ifelse
        do stuff here
Ifelse
        do stuff here

that correct?
I know how make command
function serverCmdAdminOrbRed(%this)
ifelse                                   
                                           do stuff here
function serverCmdAdminOrbBubble(%this)
ifelse
                                           do stuff here

anyone can help me?
I have 14 kind of colors and nice particles.

You'll probably want to use a string switch:


function serverCmdSetOrbColor(%client, %color) {
    switch$(strlwr(%color)) {
        case "red":
            // Change color
        case "green":
            // Change color
        case "blue":
            // Change color
        default:
            messageClient(%client, '', "\c6The color\c3" SPC %color SPC "\c6could not be found.");
            return;
    }
    messageClient(%client, '', "\c6Your orb is now\c3" SPC strlwr(%color) @ "\c6.");
}



If you want to use if else, its syntax is like this:


if (%str $= "a") {
    echo("A");
}
else if (%str $= "b") {
    echo("B");
}
else {
    echo("Neither A nor B");
}

« Last Edit: May 12, 2012, 11:29:22 PM by TheRealMint »

nice script, I could use that. Did you have look zip script inside of bubble, star, etc... bubbleorb.cs stuff like that. when If i want switch the orbs color or other stuffs? I have bubbleorb.cs and starorb.cs  how I able switch of these script cs? what about particle and emitter script come with bubble and star, they are not togeter in one script.
« Last Edit: May 13, 2012, 02:03:54 AM by Cubelands »

That script is not admin only, so non-admins will be able to change the colors. i think

That script is not admin only, so non-admins will be able to change the colors. i think
Oh god, Don't post it, please. that annoying to me.

EDIT: Something like this correct or not?
Code: [Select]
function serverCmdSetOrbColor(%client, %color) {
    switch$(strlwr(%color)) {
        case "heart":
            // Change heart
datablock ParticleData(CameraParticleA)
{
dragCoefficient      = 3;
gravityCoefficient   = -0.0;
inheritedVelFactor   = 1;
constantAcceleration = 0.0;
lifetimeMS           = 600;
lifetimeVarianceMS   = 0;
textureName          = "base/data/particles/heart";
spinSpeed = 0.0;
spinRandomMin = 0.0;
spinRandomMax = 0.0;
colors[0]     = "1.0 0.0 0.0 0.2";
colors[1]     = "1.0 0.0 0.2 0.2";
colors[2]     = "1.0 0.0 0.0 0.2";
sizes[0]      = 1.50;
sizes[1]      = 0.75;
sizes[2]      = 0.25;
times[0]      = 0;
times[1]      = 0.5;
times[2]      = 1;

useInvAlpha = false;
};
datablock ParticleEmitterData(CameraEmitterA)
{
   ejectionPeriodMS = 1.0;
   periodVarianceMS = 0;
   ejectionVelocity = 1.0;
   velocityVariance = 0.5;
   ejectionOffset   = 0.0;
   thetaMin         = 1.5;
   thetaMax         = 90;
   phiReferenceVel  = 0;
   phiVariance      = 360;
   overrideAdvance = false;
   particles = "CameraParticleA";
   
   useEmitterColors = 0;
};

datablock ParticleData(playerTeleportParticleB)
{
dragCoefficient      = 3;
gravityCoefficient   = -0.0;
inheritedVelFactor   = 1;
constantAcceleration = 0.0;
lifetimeMS           = 100;
lifetimeVarianceMS   = 0;
textureName          = "base/data/particles/heart";
spinSpeed = 0.0;
spinRandomMin = 0.5;
spinRandomMax = 1.0;
colors[0]     = "1.0 0.0 0.2 0.2";
colors[1]     = "1.0 0.0 0.2 0.2";
colors[2]     = "1.0 0.0 0.2 0.2";
sizes[0]      = 0.25;
sizes[1]      = 0.20;
sizes[2]      = 0.15;
times[0]      = 0;
times[1]      = 0.5;
times[2]      = 1;

useInvAlpha = false;
};
datablock ParticleEmitterData(playerTeleportEmitterB)
{
   ejectionPeriodMS = 3.0;
   periodVarianceMS = 0.5;
   ejectionVelocity = 1.5;
   velocityVariance = 0.6;
   ejectionOffset   = -0.5;
   thetaMin         = 1.5;
   thetaMax         = 90;
   phiReferenceVel  = 0;
   phiVariance      = 360;
   overrideAdvance = false;
   particles = "playerTeleportEmitterB";
   
   useEmitterColors = 0;
};

datablock ParticleData(playerTeleportParticleA)
{
dragCoefficient      = 3;
gravityCoefficient   = -0.0;
inheritedVelFactor   = 1;
constantAcceleration = 1.0;
lifetimeMS           = 1500;
lifetimeVarianceMS   = 130;
textureName          = "base/data/particles/heart";
spinSpeed = 0.5;
spinRandomMin = 0.1;
spinRandomMax = 0.5;
colors[0]     = "1.0 0.0 0.0 0.3";
colors[1]     = "1.0 0.0 1.0 0.5";
colors[2]     = "0.0 0.0 1.0 1.0";
sizes[0]      = 1.50;
sizes[1]      = 0.75;
sizes[2]      = 0.25;
times[0]      = 0;
times[1]      = 0.5;
times[2]      = 1;

useInvAlpha = false;
};
datablock ParticleEmitterData(playerTeleportEmitterA)
{
   ejectionPeriodMS = 10.0;
   periodVarianceMS = 1.0;
   ejectionVelocity = 1.5;
   velocityVariance = 10.0;
   ejectionOffset   = 0.5;
   thetaMin         = 1.5;
   thetaMax         = 90;
   phiReferenceVel  = 0;
   phiVariance      = 360;
   overrideAdvance = false;
   particles = "playerTeleportEmitterA";
   
   useEmitterColors = 0;
};

        case "star":
            // Change star
datablock ParticleData(CameraParticleA)
{
dragCoefficient      = 3;
gravityCoefficient   = -0.0;
inheritedVelFactor   = 1;
constantAcceleration = 0.0;
lifetimeMS           = 600;
lifetimeVarianceMS   = 0;
textureName          = "base/data/particles/star1";
spinSpeed = 0.0;
spinRandomMin = 0.0;
spinRandomMax = 0.0;
colors[0]     = "1.0 0.9 0.0 0.2";
colors[1]     = "1.0 0.8 0.0 0.2";
colors[2]     = "0.9 1.0 0.0 0.2";
sizes[0]      = 1.50;
sizes[1]      = 0.75;
sizes[2]      = 0.25;
times[0]      = 0;
times[1]      = 1.5;
times[2]      = 1;

useInvAlpha = false;
};
datablock ParticleEmitterData(CameraEmitterA)
{
   ejectionPeriodMS = 6.5;
   periodVarianceMS = 0;
   ejectionVelocity = 1.0;
   velocityVariance = 0.6;
   ejectionOffset   = 0.5;
   thetaMin         = 1.5;
   thetaMax         = 90;
   phiReferenceVel  = 0;
   phiVariance      = 360;
   overrideAdvance = false;
   particles = "CameraParticleA";
   
   useEmitterColors = 0;
};

datablock ParticleData(playerTeleportParticleB)
{
dragCoefficient      = 3;
gravityCoefficient   = -0.0;
inheritedVelFactor   = 1;
constantAcceleration = 0.0;
lifetimeMS           = 1500;
lifetimeVarianceMS   = 10;
textureName          = "base/data/particles/star1";
spinSpeed = 0.0;
spinRandomMin = 0.5;
spinRandomMax = 1.0;
colors[0]     = "1.0 0.9 0.0 0.2";
colors[1]     = "1.0 0.8 0.0 0.2";
colors[2]     = "0.9 1.0 0.0 0.2";
sizes[0]      = 0.25;
sizes[1]      = 0.10;
sizes[2]      = 0.15;
times[0]      = 0;
times[1]      = 0.5;
times[2]      = 1;

useInvAlpha = false;
};
datablock ParticleEmitterData(playerTeleportEmitterB)
{
   ejectionPeriodMS = 10.5;
   periodVarianceMS = 1.0;
   ejectionVelocity = 1.0;
   velocityVariance = 0.6;
   ejectionOffset   = 0.5;
   thetaMin         = 1.5;
   thetaMax         = 90;
   phiReferenceVel  = 0;
   phiVariance      = 360;
   overrideAdvance = false;
   particles = "playerTeleportEmitterB";
   
   useEmitterColors = 0;
};

datablock ParticleData(playerTeleportParticleA)
{
dragCoefficient      = 3;
gravityCoefficient   = -0.0;
inheritedVelFactor   = 1;
constantAcceleration = 0.5;
lifetimeMS           = 200;
lifetimeVarianceMS   = 100;
textureName          = "base/data/particles/star1";
spinSpeed = 0.5;
spinRandomMin = 0.1;
spinRandomMax = 0.5;
colors[0]     = "1.0 0.9 0.0 0.2";
colors[1]     = "1.0 0.8 0.0 0.2";
colors[2]     = "0.9 1.0 0.0 0.2";
sizes[0]      = 1.50;
sizes[1]      = 0.75;
sizes[2]      = 0.25;
times[0]      = 0;
times[1]      = 1.5;
times[2]      = 1;

useInvAlpha = false;
};
datablock ParticleEmitterData(playerTeleportEmitterA)
{
   ejectionPeriodMS = 10.0;
   periodVarianceMS = 1.0;
   ejectionVelocity = 1.5;
   velocityVariance = 10.0;
   ejectionOffset   = 0.5;
   thetaMin         = 1.5;
   thetaMax         = 90;
   phiReferenceVel  = 0;
   phiVariance      = 360;
   overrideAdvance = false;
   particles = "playerTeleportEmitterA";
   
   useEmitterColors = 0;
};
        case "water":
            // Change water
datablock ParticleData(CameraParticleA)
{
dragCoefficient      = 3;
gravityCoefficient   = -0.0;
inheritedVelFactor   = 1;
constantAcceleration = 0.0;
lifetimeMS           = 600;
lifetimeVarianceMS   = 0;
textureName          = "base/data/particles/bubble";
spinSpeed = 0.0;
spinRandomMin = 0.0;
spinRandomMax = 0.0;
colors[0]     = "0.0 0.9 1.0 0.2";
colors[1]     = "0.0 0.8 1.0 0.2";
colors[2]     = "0.0 0.9 1.0 0.2";
sizes[0]      = 1.50;
sizes[1]      = 0.75;
sizes[2]      = 0.25;
times[0]      = 0;
times[1]      = 1.5;
times[2]      = 1;

useInvAlpha = false;
};
datablock ParticleEmitterData(CameraEmitterA)
{
   ejectionPeriodMS = 6.5;
   periodVarianceMS = 0;
   ejectionVelocity = 1.0;
   velocityVariance = 0.6;
   ejectionOffset   = 0.5;
   thetaMin         = 1.5;
   thetaMax         = 90;
   phiReferenceVel  = 0;
   phiVariance      = 360;
   overrideAdvance = false;
   particles = "CameraParticleA";
   
   useEmitterColors = 0;
};

datablock ParticleData(playerTeleportParticleB)
{
dragCoefficient      = 3;
gravityCoefficient   = -0.0;
inheritedVelFactor   = 1;
constantAcceleration = 0.0;
lifetimeMS           = 1500;
lifetimeVarianceMS   = 10;
textureName          = "base/data/particles/bubble";
spinSpeed = 0.0;
spinRandomMin = 0.5;
spinRandomMax = 1.0;
colors[0]     = "0.0 0.9 1.0 0.2";
colors[1]     = "0.0 0.8 1.0 0.2";
colors[2]     = "0.0 0.9 1.0 0.2";
sizes[0]      = 0.25;
sizes[1]      = 0.10;
sizes[2]      = 0.15;
times[0]      = 0;
times[1]      = 0.5;
times[2]      = 1;

useInvAlpha = false;
};
datablock ParticleEmitterData(playerTeleportEmitterB)
{
   ejectionPeriodMS = 10.5;
   periodVarianceMS = 1.0;
   ejectionVelocity = 1.0;
   velocityVariance = 0.6;
   ejectionOffset   = 0.5;
   thetaMin         = 1.5;
   thetaMax         = 90;
   phiReferenceVel  = 0;
   phiVariance      = 360;
   overrideAdvance = false;
   particles = "playerTeleportEmitterB";
   
   useEmitterColors = 0;
};

datablock ParticleData(playerTeleportParticleA)
{
dragCoefficient      = 3;
gravityCoefficient   = -0.0;
inheritedVelFactor   = 1;
constantAcceleration = 0.5;
lifetimeMS           = 200;
lifetimeVarianceMS   = 100;
textureName          = "base/data/particles/bubble";
spinSpeed = 0.5;
spinRandomMin = 0.1;
spinRandomMax = 0.5;
colors[0]     = "0.0 0.9 1.0 0.2";
colors[1]     = "0.0 0.8 1.0 0.2";
colors[2]     = "0.0 0.9 1.0 0.2";
sizes[0]      = 1.50;
sizes[1]      = 0.75;
sizes[2]      = 0.25;
times[0]      = 0;
times[1]      = 1.5;
times[2]      = 1;

useInvAlpha = false;
};
datablock ParticleEmitterData(playerTeleportEmitterA)
{
   ejectionPeriodMS = 10.0;
   periodVarianceMS = 1.0;
   ejectionVelocity = 1.5;
   velocityVariance = 10.0;
   ejectionOffset   = 0.5;
   thetaMin         = 1.5;
   thetaMax         = 90;
   phiReferenceVel  = 0;
   phiVariance      = 360;
   overrideAdvance = false;
   particles = "playerTeleportEmitterA";
   
   useEmitterColors = 0;
};
        default:
            messageClient(%client, '', "\c6The color\c3" SPC %color SPC "\c6could not be found.");
            return;
    }
    messageClient(%client, '', "\c6Your orb is now\c3" SPC strlwr(%color) @ "\c6.");
}
« Last Edit: May 13, 2012, 02:59:17 AM by Cubelands »

No, not like that, like this:

Code: [Select]
function serverCmdSetOrbColor(%client, %color) {
if(!%client.isSuperAdmin) //Check if we're super admin
return;
%color = strlwr(%color);

    switch$(%color) {
        case "heart":
            // Change to heart
//psuedo code
OrbDatablockThing.particle = CameraParticleHeart;

        case "water":
            // Change to water

        case "star":
            // Change to star

        default:
            messageClient(%client, '', "\c6The color\c3" SPC %color SPC "\c6could not be found.");
            return;
    }
transmitDatablocks(); //Very important
    messageClient(%client, '', "\c6Your orb is now\c3" SPC %color @ "\c6.");
}

//Define heart datablocks, referenced above
datablock ParticleData(CameraParticleHeartA)
{
dragCoefficient      = 3;
gravityCoefficient   = -0.0;
inheritedVelFactor   = 1;
constantAcceleration = 0.0;
lifetimeMS           = 600;
lifetimeVarianceMS   = 0;
textureName          = "base/data/particles/heart";
spinSpeed = 0.0;
spinRandomMin = 0.0;
spinRandomMax = 0.0;
colors[0]     = "1.0 0.0 0.0 0.2";
colors[1]     = "1.0 0.0 0.2 0.2";
colors[2]     = "1.0 0.0 0.0 0.2";
sizes[0]      = 1.50;
sizes[1]      = 0.75;
sizes[2]      = 0.25;
times[0]      = 0;
times[1]      = 0.5;
times[2]      = 1;

useInvAlpha = false;
};
datablock ParticleEmitterData(CameraEmitterHeartA)
{
   ejectionPeriodMS = 1.0;
   periodVarianceMS = 0;
   ejectionVelocity = 1.0;
   velocityVariance = 0.5;
   ejectionOffset   = 0.0;
   thetaMin         = 1.5;
   thetaMax         = 90;
   phiReferenceVel  = 0;
   phiVariance      = 360;
   overrideAdvance = false;
   particles = "CameraParticleA";
   
   useEmitterColors = 0;
};

datablock ParticleData(playerTeleportParticleHeartB)
{
dragCoefficient      = 3;
gravityCoefficient   = -0.0;
inheritedVelFactor   = 1;
constantAcceleration = 0.0;
lifetimeMS           = 100;
lifetimeVarianceMS   = 0;
textureName          = "base/data/particles/heart";
spinSpeed = 0.0;
spinRandomMin = 0.5;
spinRandomMax = 1.0;
colors[0]     = "1.0 0.0 0.2 0.2";
colors[1]     = "1.0 0.0 0.2 0.2";
colors[2]     = "1.0 0.0 0.2 0.2";
sizes[0]      = 0.25;
sizes[1]      = 0.20;
sizes[2]      = 0.15;
times[0]      = 0;
times[1]      = 0.5;
times[2]      = 1;

useInvAlpha = false;
};
datablock ParticleEmitterData(playerTeleportEmitterHeartB)
{
   ejectionPeriodMS = 3.0;
   periodVarianceMS = 0.5;
   ejectionVelocity = 1.5;
   velocityVariance = 0.6;
   ejectionOffset   = -0.5;
   thetaMin         = 1.5;
   thetaMax         = 90;
   phiReferenceVel  = 0;
   phiVariance      = 360;
   overrideAdvance = false;
   particles = "playerTeleportEmitterB";
   
   useEmitterColors = 0;
};

datablock ParticleData(playerTeleportParticleHeartA)
{
dragCoefficient      = 3;
gravityCoefficient   = -0.0;
inheritedVelFactor   = 1;
constantAcceleration = 1.0;
lifetimeMS           = 1500;
lifetimeVarianceMS   = 130;
textureName          = "base/data/particles/heart";
spinSpeed = 0.5;
spinRandomMin = 0.1;
spinRandomMax = 0.5;
colors[0]     = "1.0 0.0 0.0 0.3";
colors[1]     = "1.0 0.0 1.0 0.5";
colors[2]     = "0.0 0.0 1.0 1.0";
sizes[0]      = 1.50;
sizes[1]      = 0.75;
sizes[2]      = 0.25;
times[0]      = 0;
times[1]      = 0.5;
times[2]      = 1;

useInvAlpha = false;
};
datablock ParticleEmitterData(playerTeleportEmitterHeartA)
{
   ejectionPeriodMS = 10.0;
   periodVarianceMS = 1.0;
   ejectionVelocity = 1.5;
   velocityVariance = 10.0;
   ejectionOffset   = 0.5;
   thetaMin         = 1.5;
   thetaMax         = 90;
   phiReferenceVel  = 0;
   phiVariance      = 360;
   overrideAdvance = false;
   particles = "playerTeleportEmitterA";
   
   useEmitterColors = 0;
};


//Define star datablocks, referenced above
datablock ParticleData(CameraParticleStarA)
{
dragCoefficient      = 3;
gravityCoefficient   = -0.0;
inheritedVelFactor   = 1;
constantAcceleration = 0.0;
lifetimeMS           = 600;
lifetimeVarianceMS   = 0;
textureName          = "base/data/particles/star1";
spinSpeed = 0.0;
spinRandomMin = 0.0;
spinRandomMax = 0.0;
colors[0]     = "1.0 0.9 0.0 0.2";
colors[1]     = "1.0 0.8 0.0 0.2";
colors[2]     = "0.9 1.0 0.0 0.2";
sizes[0]      = 1.50;
sizes[1]      = 0.75;
sizes[2]      = 0.25;
times[0]      = 0;
times[1]      = 1.5;
times[2]      = 1;

useInvAlpha = false;
};
datablock ParticleEmitterData(CameraEmitterStarA)
{
   ejectionPeriodMS = 6.5;
   periodVarianceMS = 0;
   ejectionVelocity = 1.0;
   velocityVariance = 0.6;
   ejectionOffset   = 0.5;
   thetaMin         = 1.5;
   thetaMax         = 90;
   phiReferenceVel  = 0;
   phiVariance      = 360;
   overrideAdvance = false;
   particles = "CameraParticleA";
   
   useEmitterColors = 0;
};

datablock ParticleData(playerTeleportParticleStarB)
{
dragCoefficient      = 3;
gravityCoefficient   = -0.0;
inheritedVelFactor   = 1;
constantAcceleration = 0.0;
lifetimeMS           = 1500;
lifetimeVarianceMS   = 10;
textureName          = "base/data/particles/star1";
spinSpeed = 0.0;
spinRandomMin = 0.5;
spinRandomMax = 1.0;
colors[0]     = "1.0 0.9 0.0 0.2";
colors[1]     = "1.0 0.8 0.0 0.2";
colors[2]     = "0.9 1.0 0.0 0.2";
sizes[0]      = 0.25;
sizes[1]      = 0.10;
sizes[2]      = 0.15;
times[0]      = 0;
times[1]      = 0.5;
times[2]      = 1;

useInvAlpha = false;
};
datablock ParticleEmitterData(playerTeleportEmitterStarB)
{
   ejectionPeriodMS = 10.5;
   periodVarianceMS = 1.0;
   ejectionVelocity = 1.0;
   velocityVariance = 0.6;
   ejectionOffset   = 0.5;
   thetaMin         = 1.5;
   thetaMax         = 90;
   phiReferenceVel  = 0;
   phiVariance      = 360;
   overrideAdvance = false;
   particles = "playerTeleportEmitterB";
   
   useEmitterColors = 0;
};

datablock ParticleData(playerTeleportParticleStarA)
{
dragCoefficient      = 3;
gravityCoefficient   = -0.0;
inheritedVelFactor   = 1;
constantAcceleration = 0.5;
lifetimeMS           = 200;
lifetimeVarianceMS   = 100;
textureName          = "base/data/particles/star1";
spinSpeed = 0.5;
spinRandomMin = 0.1;
spinRandomMax = 0.5;
colors[0]     = "1.0 0.9 0.0 0.2";
colors[1]     = "1.0 0.8 0.0 0.2";
colors[2]     = "0.9 1.0 0.0 0.2";
sizes[0]      = 1.50;
sizes[1]      = 0.75;
sizes[2]      = 0.25;
times[0]      = 0;
times[1]      = 1.5;
times[2]      = 1;

useInvAlpha = false;
};
datablock ParticleEmitterData(playerTeleportEmitterStarA)
{
   ejectionPeriodMS = 10.0;
   periodVarianceMS = 1.0;
   ejectionVelocity = 1.5;
   velocityVariance = 10.0;
   ejectionOffset   = 0.5;
   thetaMin         = 1.5;
   thetaMax         = 90;
   phiReferenceVel  = 0;
   phiVariance      = 360;
   overrideAdvance = false;
   particles = "playerTeleportEmitterA";
   
   useEmitterColors = 0;
};

//Define bubble datablocks, referenced above
datablock ParticleData(CameraParticleBubbleA)
{
dragCoefficient      = 3;
gravityCoefficient   = -0.0;
inheritedVelFactor   = 1;
constantAcceleration = 0.0;
lifetimeMS           = 600;
lifetimeVarianceMS   = 0;
textureName          = "base/data/particles/bubble";
spinSpeed = 0.0;
spinRandomMin = 0.0;
spinRandomMax = 0.0;
colors[0]     = "0.0 0.9 1.0 0.2";
colors[1]     = "0.0 0.8 1.0 0.2";
colors[2]     = "0.0 0.9 1.0 0.2";
sizes[0]      = 1.50;
sizes[1]      = 0.75;
sizes[2]      = 0.25;
times[0]      = 0;
times[1]      = 1.5;
times[2]      = 1;

useInvAlpha = false;
};
datablock ParticleEmitterData(CameraEmitterBubbleA)
{
   ejectionPeriodMS = 6.5;
   periodVarianceMS = 0;
   ejectionVelocity = 1.0;
   velocityVariance = 0.6;
   ejectionOffset   = 0.5;
   thetaMin         = 1.5;
   thetaMax         = 90;
   phiReferenceVel  = 0;
   phiVariance      = 360;
   overrideAdvance = false;
   particles = "CameraParticleA";
   
   useEmitterColors = 0;
};

datablock ParticleData(playerTeleportParticleBubbleB)
{
dragCoefficient      = 3;
gravityCoefficient   = -0.0;
inheritedVelFactor   = 1;
constantAcceleration = 0.0;
lifetimeMS           = 1500;
lifetimeVarianceMS   = 10;
textureName          = "base/data/particles/bubble";
spinSpeed = 0.0;
spinRandomMin = 0.5;
spinRandomMax = 1.0;
colors[0]     = "0.0 0.9 1.0 0.2";
colors[1]     = "0.0 0.8 1.0 0.2";
colors[2]     = "0.0 0.9 1.0 0.2";
sizes[0]      = 0.25;
sizes[1]      = 0.10;
sizes[2]      = 0.15;
times[0]      = 0;
times[1]      = 0.5;
times[2]      = 1;

useInvAlpha = false;
};
datablock ParticleEmitterData(playerTeleportEmitterBubbleB)
{
   ejectionPeriodMS = 10.5;
   periodVarianceMS = 1.0;
   ejectionVelocity = 1.0;
   velocityVariance = 0.6;
   ejectionOffset   = 0.5;
   thetaMin         = 1.5;
   thetaMax         = 90;
   phiReferenceVel  = 0;
   phiVariance      = 360;
   overrideAdvance = false;
   particles = "playerTeleportEmitterB";
   
   useEmitterColors = 0;
};

datablock ParticleData(playerTeleportParticleBubbleA)
{
dragCoefficient      = 3;
gravityCoefficient   = -0.0;
inheritedVelFactor   = 1;
constantAcceleration = 0.5;
lifetimeMS           = 200;
lifetimeVarianceMS   = 100;
textureName          = "base/data/particles/bubble";
spinSpeed = 0.5;
spinRandomMin = 0.1;
spinRandomMax = 0.5;
colors[0]     = "0.0 0.9 1.0 0.2";
colors[1]     = "0.0 0.8 1.0 0.2";
colors[2]     = "0.0 0.9 1.0 0.2";
sizes[0]      = 1.50;
sizes[1]      = 0.75;
sizes[2]      = 0.25;
times[0]      = 0;
times[1]      = 1.5;
times[2]      = 1;

useInvAlpha = false;
};
datablock ParticleEmitterData(playerTeleportEmitterBubbleA)
{
   ejectionPeriodMS = 10.0;
   periodVarianceMS = 1.0;
   ejectionVelocity = 1.5;
   velocityVariance = 10.0;
   ejectionOffset   = 0.5;
   thetaMin         = 1.5;
   thetaMax         = 90;
   phiReferenceVel  = 0;
   phiVariance      = 360;
   overrideAdvance = false;
   particles = "playerTeleportEmitterA";
   
   useEmitterColors = 0;
};

WOW, that wonderful! I got errors

Code: [Select]
ParticleEmitterData(playerTeleportEmitterHeartB) ejectionOffset < 0
ParticleEmitterData(playerTeleportEmitterHeartB) unable to find particle datablock: playerTeleportEmitterB
ParticleEmitterData(playerTeleportEmitterHeartB) unable to find any particle datablocks
Add-Ons/Script_AdminOrbChange/Script_AdminOrbChange.cs (0): Register object failed for object playerTeleportEmitterHeartB of class ParticleEmitterData.
ParticleEmitterData(playerTeleportEmitterHeartA) velocityVariance > ejectionVelocity
ParticleEmitterData(playerTeleportEmitterHeartA) unable to find particle datablock: PlayerTeleportEmitterA
ParticleEmitterData(playerTeleportEmitterHeartA) unable to find any particle datablocks
Add-Ons/Script_AdminOrbChange/Script_AdminOrbChange.cs (0): Register object failed for object playerTeleportEmitterHeartA of class ParticleEmitterData.
ParticleData(CameraParticleStarA) times[2] < times[1]
ParticleEmitterData(playerTeleportEmitterStarB) unable to find particle datablock: playerTeleportEmitterB
ParticleEmitterData(playerTeleportEmitterStarB) unable to find any particle datablocks
Add-Ons/Script_AdminOrbChange/Script_AdminOrbChange.cs (0): Register object failed for object playerTeleportEmitterStarB of class ParticleEmitterData.
ParticleData(playerTeleportParticleStarA) times[2] < times[1]
ParticleEmitterData(playerTeleportEmitterStarA) velocityVariance > ejectionVelocity
ParticleEmitterData(playerTeleportEmitterStarA) unable to find particle datablock: PlayerTeleportEmitterA
ParticleEmitterData(playerTeleportEmitterStarA) unable to find any particle datablocks
Add-Ons/Script_AdminOrbChange/Script_AdminOrbChange.cs (0): Register object failed for object playerTeleportEmitterStarA of class ParticleEmitterData.
ParticleData(CameraParticleBubbleA) times[2] < times[1]
ParticleEmitterData(playerTeleportEmitterBubbleB) unable to find particle datablock: playerTeleportEmitterB
ParticleEmitterData(playerTeleportEmitterBubbleB) unable to find any particle datablocks
Add-Ons/Script_AdminOrbChange/Script_AdminOrbChange.cs (0): Register object failed for object playerTeleportEmitterBubbleB of class ParticleEmitterData.
ParticleData(playerTeleportParticleBubbleA) times[2] < times[1]
ParticleEmitterData(playerTeleportEmitterBubbleA) velocityVariance > ejectionVelocity
ParticleEmitterData(playerTeleportEmitterBubbleA) unable to find particle datablock: PlayerTeleportEmitterA
ParticleEmitterData(playerTeleportEmitterBubbleA) unable to find any particle datablocks
Add-Ons/Script_AdminOrbChange/Script_AdminOrbChange.cs (0): Register object failed for object playerTeleportEmitterBubbleA of class ParticleEmitterData.

what happened here?

No idea.

I do, however, know that that code wasn't supposed to work out of the box.
Hence:
Code: [Select]
//psuedo code
OrbDatablockThing.particle = CameraParticleHeart;

No idea.

I do, however, know that that code wasn't supposed to work out of the box.
Hence:
CameraParticleHeartA; will not work, unless I put CameraParticleHeart; not A, correct?

OrbDatablockThing does not exist.

You're going to have to figure out what the admin orbs datablock or whatever is.

Oh I see. what I can find what admin orb has name for datablock.

OrbDatablockThing does not exist.

You're going to have to figure out what the admin orbs datablock or whatever is.

Didn't you make the admin orb name mod?

Didn't you make the admin orb name mod?
Irrelevant.

All that does is set the shapename of the player's camera.

Irrelevant.

All that does is set the shapename of the player's camera.
correct.
I did look at manual book of Torque language not say anything. I cannot find what real admin default orb name was. Dunno...

correct.
I did look at manual book of Torque language not say anything. I cannot find what real admin default orb name was. Dunno...
Because the 'admin orb' particle effects are unique to Blockland, they're not default to TGE