bonjour à tous,
content de voir que sur JOL il y a toujours des gens ouverts au partage de connaissances.
je vais aller droit au but, je sais qu il y a déjà au moins une discussion sur ce sujet mais justement c'est la mon soucis.
'j'ai un script tipjar, j'ai un script de particules sensé s’intégrer à celui-ci ( récupéré sur une discussion similaire .
Et là vous me voyez arriver à 10 km, lol et vous avez raison, les deux fonctionnent super mais quand j’essaie de les assembler, ben voila la partie tip fonctionne mais pas l'envoie des particules, et j' avoue je comprends pas pourquoi, je vous met mon script complet, si quelqu'un veut bien y regarder pour m'apporter la correction, ce serait vraiment génial. merci a vous tous
integer totaldonated;
string owner;
MakeParticles(key keydest)//This is the function that actually starts the particle system.
{
llParticleSystem([ //KPSv1.0
PSYS_PART_FLAGS , 0 //Comment out any of the following masks to deactivate them
| PSYS_PART_INTERP_COLOR_MASK //Colors fade from start to end
| PSYS_PART_INTERP_SCALE_MASK //Scale fades from beginning to end
| PSYS_PART_FOLLOW_VELOCITY_MASK //Particles are created at the velocity of the emitter
| PSYS_PART_EMISSIVE_MASK //Particles are self-lit (glow)
| PSYS_PART_TARGET_POS_MASK
| PSYS_PART_WIND_MASK
,PSYS_SRC_PATTERN, 2
,PSYS_SRC_TARGET_KEY, keydest
,PSYS_SRC_TEXTURE, llGetInventoryName(INVENTORY_TEXTURE,0) //desired particle texture
,PSYS_PART_MAX_AGE, 2.5 //Lifetime, in seconds, that a particle lasts
,PSYS_SRC_BURST_RATE, .5 //How long, in seconds, between each emission
,PSYS_SRC_BURST_PART_COUNT, 10 //Number of particles per emission
,PSYS_SRC_BURST_RADIUS, 1.0 //Radius of emission
,PSYS_SRC_ACCEL, <3.0,3.0,0.0> //Acceleration of particles each second
,PSYS_PART_START_ALPHA, 1.0 //Starting transparency, 1 is opaque, 0 is transparent.
,PSYS_PART_END_ALPHA, 0.0 //Ending transparency
,PSYS_PART_START_SCALE, <.35,.35,.35> //Starting particle size
,PSYS_PART_END_SCALE, <0.35,0.35,0.35> //Ending particle size, if INTERP_SCALE_MASK is on
,PSYS_SRC_OMEGA, <1.0,0.0,0.0> //Rotation of ANGLE patterns, similar to llTargetOmega()
]);
}
default
{
on_rez( integer sparam )
{
llResetScript();
}
state_entry()
{
owner = llKey2Name( llGetOwner() );
llSetText( "owner's Tip Jar.\merci pour votre tip !\n$L0 don de la tip jar",<.25,1,.65>,1);
}
money(key id, integer amount)
{
MakesParticles(key id);
totaldonated += amount;
llSetText( "owner's Tip Jar.\merci pour votre don !\n$L" + (string)amount + " verssement !\n" + "$L" + (string)totaldonated + " gros bisous",<.25,1,.65>,1);
llInstantMessage(llGetOwner(),(string)llKey2Name(id)+" donated $" + (string)amount);
}
}
|