|
| 20 Jan 2012 10:18 PM |
| How could you make it so when you killed someone, you gained points... |
|
|
| Report Abuse |
|
|
blockoo
|
  |
| Joined: 08 Nov 2007 |
| Total Posts: 17202 |
|
|
| 20 Jan 2012 10:20 PM |
I have the answer, but I'm not miz... oh well
~Would you like some butter with that latetoast? |
|
|
| Report Abuse |
|
|
| |
|
blockoo
|
  |
| Joined: 08 Nov 2007 |
| Total Posts: 17202 |
|
|
| 20 Jan 2012 10:33 PM |
:D Well, it depends on what weapons you're using. Usually how people do this is making "creator tags" - ObjectValues that are put into the character. Let me explain a little:
Person1 shoots Person2 with a gun. When the gun shoots, it puts an ObjectValue (or creator tag) into the bullet with a value of the person who fired, being Person1. When the bullet collides with Person2, the creator tag gets cloned into Person2's humanoid. That creator tag remains there until Person2 gets shot again. It removes all previous creator tags and puts in a new one.
Anyway, when Person2 dies, a game script checks the creator tag in Person2's humanoid. It sees that the killer is Person1, and awards Person1 with kills or points, whichever you prefer. |
|
|
| Report Abuse |
|
|
miz656
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 15336 |
|
|
| 20 Jan 2012 11:37 PM |
| Wow! I so would of answered this if I was here now ! |
|
|
| Report Abuse |
|
|
| |
|
miz656
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 15336 |
|
|
| 20 Jan 2012 11:40 PM |
Too bad I took your dog and clipped it to a mans toenipples HA HA HA HHA
YOUR TOO LATE FOR NEWNIPPPPLES HA HA HA HA HA |
|
|
| Report Abuse |
|
|
|
| 20 Jan 2012 11:41 PM |
.... uh, what???
~I've been to nil and back. |
|
|
| Report Abuse |
|
|
|
| 20 Jan 2012 11:41 PM |
| took bad I didn't have a dog in the first place... *OH SNAP* |
|
|
| Report Abuse |
|
|
| |
|
|
| 20 Jan 2012 11:44 PM |
@blockoo
Nonononononono! Actually, that method of doing it is what ROBLOX's join script uses to count KOs on the website (you know, it shows your KOs and your WOs on the website, in your stats, on your profile. That's what I'm talking about). However, it doesn't need to be named 'creator'.
Here's a leaderboard that works exactly the same way as ROBLOX's official KOs/Wipeouts system: http://www.roblox.com/Kills-Deaths-Leaderboard-item?id=68109227
By looking at the code, you'll understand how it works.
When a player dies, you look in the humanoid for an objectvalue. You search the first one whose value is a Player. And you give a KO to that player. Then, you break the loop, as only one player can get a KO when a player dies.
That's how ROBLOX does it. Check the join script for more information. |
|
|
| Report Abuse |
|
|
|
| 20 Jan 2012 11:46 PM |
| @jul, I <3 it when people show that things dont need to be in a special format just because roblox does it that way :3 |
|
|
| Report Abuse |
|
|
|
| 20 Jan 2012 11:48 PM |
Actually, I'd suppose that, if you made a war game, you'd want the KOs to transfer on the website, as that's also part of what your users want (they want to get KOs on the website!).
Therefore, considering ROBLOX's system is the only way to get them KOs on the website, either you use ROBLOX's system too, either you use both ROBLOX's system and another system, meaning you'd use two systems at once.
Personally, I think the first way, using a single system: ROBLOX's system, is the most logical. |
|
|
| Report Abuse |
|
|
miz656
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 15336 |
|
|
| 20 Jan 2012 11:56 PM |
@blue
Aren't youadog? You do remind meofassluuttt
OHHHHHHHHHHHHHH :P |
|
|
| Report Abuse |
|
|
|
| 20 Jan 2012 11:58 PM |
| nope, im a maddog :P theres a difference trolololololololol |
|
|
| Report Abuse |
|
|
|
| 21 Jan 2012 12:01 AM |
:P
I got banned from this XD |
|
|
| Report Abuse |
|
|
|
| 21 Jan 2012 12:08 AM |
| It was time you would. I wish my moral values teacher would know english. -.- |
|
|
| Report Abuse |
|
|