PDA

View Full Version : ID-o-Matic


Lycia
09-15-2001, 02:52 PM
Every day, I hold an ID-o-Matic.

What's ID-o-Matic, you say? Well, on my remote control, is a list of players, and each of you are assigned a number so the server knows how to distinguish you between other players. It basically makes you an individual. Your number is beside your account names. You don't get the same one each time. And so, with that said, I have a cup of numbers that I have written out from 1-150, and I select a number from that cup and I search the list and find out who you are. If you win, you get 10 gralats.

And that, my friends, is ID-o-Matic. :)

So, stay tuned every day on Graal 2001 for your chance to win 2 blue shiny gralats.

NeoNPL
09-15-2001, 04:08 PM
Sounds cool *wants 2 shiny blue gralats*;)

toad1413
09-15-2001, 04:14 PM
Good idea. *gives Lycia a cookie*

NeoNPL
09-15-2001, 04:59 PM
Wheres my cookie :(

NeoNPL
09-15-2001, 05:00 PM
BTW what do u think of mah new sig?

SkooL
09-15-2001, 05:04 PM
Originally posted by NeoNPL
BTW what do u think of mah new sig? That's a nice X you have there.

Kaimetsu
09-15-2001, 05:45 PM
You could also make an NPC do this. Just so you don't need to tear up 150 little pieces of paper every time ;)

Lycia
09-15-2001, 06:06 PM
Originally posted by Kaimetsu
You could also make an NPC do this. Just so you don't need to tear up 150 little pieces of paper every time ;)

HEY! One project at a time, dang it.

hehe

Kaimetsu
09-15-2001, 06:23 PM
Originally posted by Lycia


HEY! One project at a time, dang it.

hehe

Just keepin' you on your toes :)

NeoNPL
09-15-2001, 06:28 PM
That NPC would be easy


//NPC Made by NeoNPL For Graal2001 Events Team
if (Playertouchsme){Toweapons ID-O-Matic;
}
if (weaponfired){setplayerprop #c, Winner Player Number:random(1,150);
}


I think that would work

Kaimetsu
09-15-2001, 06:38 PM
Originally posted by NeoNPL
That NPC would be easy


//NPC Made by NeoNPL For Graal2001 Events Team
if (Playertouchsme){Toweapons ID-O-Matic;
}
if (weaponfired){setplayerprop #c, Winner Player Number:random(1,150);
}


I think that would work

That wouldn't work. Behold:

if(playertouchsme) toweapons Yaddayadda;
if(weaponfired) setplayerprop #c, Winner Player Number: #v(int(random(1,151)));


Even then, I wouldn't do it as an NPCw.

AlexH
09-15-2001, 06:42 PM
Originally posted by Kaimetsu


That wouldn't work. Behold:

if(playertouchsme) toweapons Yaddayadda;
if(weaponfired) setplayerprop #c, Winner Player Number: #v(int(random(1,151)));


Even then, I wouldn't do it as an NPCw.

why wouldnt you do it as an NPC
simple and efficiant

NeoNPL
09-15-2001, 06:43 PM
Originally posted by Kaimetsu


That wouldn't work. Behold:

if(playertouchsme) toweapons Yaddayadda;
if(weaponfired) setplayerprop #c, Winner Player Number: #v(int(random(1,151)));


Even then, I wouldn't do it as an NPCw.

You have put me right o scripting god i shall go sulk in my cave now :(

Kaimetsu
09-15-2001, 06:55 PM
Originally posted by AlexH


why wouldnt you do it as an NPC
simple and efficiant

Please read all the letters before you attempt to think. I said I wouldn't do it as an NPCW

toad1413
09-15-2001, 07:05 PM
Originally posted by Kaimetsu


Please read all the letters before you attempt to think. I said I wouldn't do it as an NPCW

That's a big w you have there. Can I borrow it? :)

Kaimetsu
09-15-2001, 07:10 PM
Originally posted by toad1413


That's a big w you have there. Can I borrow it? :)

You may borrow half of it so that we both have a v each.

Slaktmaster
09-15-2001, 07:13 PM
And everybody was happy so they went home to drink beer.

BrianDAPenguin
09-15-2001, 07:18 PM
Good idea, however it might be confusing to those who have never used an rc before.

thotijn
09-15-2001, 07:20 PM
cool idea...

Kaimetsu
09-15-2001, 07:23 PM
Originally posted by BrianDAPenguin
Good idea, however it might be confusing to those who have never used an rc before.

Not really. The players wouldn't need to know how the numbers were allocated.

Hmm... I'm presuming that Lycia's system works on server IDs, which are readable by NPCs. Though I'm not sure if the NPC Server can list all the players on the server. If not, then you could always do something like "come to suchandsuch room for a chance to win". Or maybe you could adapt the concept into a raffle.

BrianDAPenguin
09-15-2001, 07:27 PM
Originally posted by Kaimetsu


Not really. The players wouldn't need to know how the numbers were allocated.

Hmm... I'm presuming that Lycia's system works on server IDs, which are readable by NPCs. Though I'm not sure if the NPC Server can list all the players on the server. If not, then you could always do something like "come to suchandsuch room for a chance to win". Or maybe you could adapt the concept into a raffle.

You seem confused already ;-)
I think she means she will draw a number, (maybe with an npcw) then look at the I.D.'s, and possibly doing a roll-over if nobody wins...

grim_squeaker_x
09-15-2001, 08:03 PM
Hmm... I'm not sure but wouldn't the following script work for that?
if (playerchats) {
if (strequals(#g,Events Team)&&strequals(#c,ID-o-Matic)) {
this.test=0;
while (this.test==0) {
i=int(random(0,150));
with (players[i]) {
this.test=1;
playerrupees+=10;
}
}
}
}

Kaimetsu
09-15-2001, 08:27 PM
Originally posted by BrianDAPenguin


You seem confused already ;-)
I think she means she will draw a number, (maybe with an npcw) then look at the I.D.'s, and possibly doing a roll-over if nobody wins...

Please do not be so stupid. She is picking a random player using their server ids as reference.

Kaimetsu
09-15-2001, 08:29 PM
Originally posted by grim_squeaker_x
Hmm... I'm not sure but wouldn't the following script work for that?
if (playerchats) {
if (strequals(#g,Events Team)&&strequals(#c,ID-o-Matic)) {
this.test=0;
while (this.test==0) {
i=int(random(0,150));
with (players[i]) {
this.test=1;
playerrupees+=10;
}
}
}
}

I dunno, do normal NPCs have access to the players[index] objects of players on other levels?

toad1413
09-15-2001, 08:32 PM
Originally posted by Kaimetsu


You may borrow half of it so that we both have a v each.

Thanks. *whacks Kaimetsu over the head with hes v* Mwahaha. My reign of terror begins!!

toad1413
09-15-2001, 08:34 PM
Originally posted by grim_squeaker_x
Hmm... I'm not sure but wouldn't the following script work for that?
if (playerchats) {
if (strequals(#g,Events Team)&&strequals(#c,ID-o-Matic)) {
this.test=0;
while (this.test==0) {
i=int(random(0,150));
with (players[i]) {
this.test=1;
playerrupees+=10;
}
}
}
}

I'm thinking that would instintanously (sp?) set this.test to 0, get the random number, give the player 10g and then set this.test to 1. Am I right?

LordMatt
09-16-2001, 03:00 AM
how would that work? we wouldn't have the account name or nick of the player

Kaimetsu
09-16-2001, 03:05 AM
Originally posted by LordMatt
how would that work? we wouldn't have the account name or nick of the player

What are you replying to?

grim_squeaker_x
09-16-2001, 03:06 AM
Originally posted by LordMatt
how would that work? we wouldn't have the account name or nick of the player If you're replying to me... It automattically adds the gralats to the drawn person.

grim_squeaker_x
09-16-2001, 03:07 AM
Originally posted by toad1413


I'm thinking that would instintanously (sp?) set this.test to 0, get the random number, give the player 10g and then set this.test to 1. Am I right? You're right.

NeoNPL
09-16-2001, 03:40 AM
Originally posted by grim_squeaker_x
If you're replying to me... It automattically adds the gralats to the drawn person.

but it would need to set the ET's chat to winner:Account,Nick and a say2 command to the play saying such as "Congratulations! You have won the ID-O-Matic prize of 10 gralats!"

toad1413
09-16-2001, 07:59 AM
Originally posted by grim_squeaker_x
You're right.

Aha! Then I may have found a little but in your script. Remember that the chat text stays for about 1 min when you're standing still. All that time qualifys for playerchats. So it would most likely do the actions, then keep repeating the thing over and over until the chat text dissapears. So you might want to add something like setplayerprop #c,; in just after the playerrupees+=10. :)

Kaimetsu
09-16-2001, 07:28 PM
Originally posted by toad1413


Aha! Then I may have found a little but in your script. Remember that the chat text stays for about 1 min when you're standing still. All that time qualifys for playerchats. So it would most likely do the actions, then keep repeating the thing over and over until the chat text dissapears. So you might want to add something like setplayerprop #c,; in just after the playerrupees+=10. :)

On the contrary, playerchats is only called when the chat is first created.

toad1413
09-16-2001, 07:33 PM
Originally posted by Kaimetsu


On the contrary, playerchats is only called when the chat is first created.

It is? Hmm... I've had it called while the chat is still there. Strange...

Kaimetsu
09-16-2001, 07:48 PM
Originally posted by toad1413


It is? Hmm... I've had it called while the chat is still there. Strange...

I assume this was a misunderstanding between you and the game engine. In normal circumstances there's no way playerchats can be called when nobody is actively chatting.

toad1413
09-16-2001, 07:57 PM
Originally posted by Kaimetsu


I assume this was a misunderstanding between you and the game engine. In normal circumstances there's no way playerchats can be called when nobody is actively chatting.

I meant that when you say something, it stays there for about 30 secs if you don't move. I've had a NPC that would lay liek 10g when you said a certain word. So when I said it, it would keep laying 10g over and over again. Either way, it's better to put that in just to be on the safe side. Because lag would probably affect it too.

Kaimetsu
09-16-2001, 08:06 PM
Originally posted by toad1413


I meant that when you say something, it stays there for about 30 secs if you don't move. I've had a NPC that would lay liek 10g when you said a certain word. So when I said it, it would keep laying 10g over and over again. Either way, it's better to put that in just to be on the safe side. Because lag would probably affect it too.

Are you sure you were using playerchats and not just strequals or playersays?

toad1413
09-16-2001, 08:09 PM
Originally posted by Kaimetsu


Are you sure you were using playerchats and not just strequals or playersays?

Yep. I never use playersays anymore and I used strequals as well as playerchats.

Lyndzey
09-16-2001, 08:28 PM
uh bump

Lycia used to hold this when 2001 first came out and she was ET Admin.

KawaiiSaRiA
09-16-2001, 08:29 PM
that's a good idea, Lycia.