Jump to content

Need Help


EternalKing
 Share

You are about to reply to a thread that has been inactive for 4065 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

Hi Everyone, Its my first time posting on this and I am not sure what to say really but I'm giving it a go.

 

Basically what it is, is that I am stuck on making something for myself which is that I am creating a sort of game that fires bullets at objects (which I have already done) and when the object is destroyed it gives out individual points and each one of these objects (I have about 10 or so) does this when they are destroyed and was wondering if someone could help me/show me how to make a script that takes the score points from each of them and totals it all together one by one to make a final score at the end and show it up as something like 'this person scored "blah, blah"' and also if it is possible to make a timer for it so that the game might end before all objects are destroyed so that you can get different score every time. I would really really appreciate it if someone could help me or at least point me in the right direction as I am really stuck and I am not that bothered about the timer part.

 

Also I don't know if this is asking too much or not but I'd also reallyappreciate as well is that if someonecouldalsotell/showmehow to go about adapting it afterwards to make asortofminiscoreindicator/updater bythatwhenoneoftheobjectsisdestroyedandthepointsare meant to be given, it goes to thescoreindicatorwhichwillmakethenumberontheindicatorgoup to the new score and so on e.g. first object destroyed give 5 points to score indicator that make it go from 0 to 5, then destroy 2nd object gives 7 points, score indicator goes from 5 to 12 and it keeps updating it till either all objects are destroyed or that a timer runs out (if that can be done at all), ifthat's at all possible.

 

I'm sorry if I am asking for too much but would appreciate any time/help that any of you's can give as I am really really stuck and don't know what to do.

 

Thanks, EternalKing

Link to comment
Share on other sites

I think you're trying to make this sound more complicated than it is.  To boil it down to essentials

1. Scorekeeper says "Start firing" and activates a timer.  Shooters fire at will.

2. Bullet hits (temp_on_rez) target

3. Target says "Ouch! Player #x got me." on  a private channel and dies.

4. Scorekeeper hears "Ouch" and adds a point for player #x.

4.  Steps 2-4 repeat until (a) timer in the scorekeeper runs out or (b) there are no more targets.

5. Referee clicks the scorekeeper and sees the totals.

When you rez a bullet, pass the ID# of its gun as a start parameter so the the target knows whose bullet hit it. Everything else is either a bell or a whistle to add to the basic model.

Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 4065 days.

Please take a moment to consider if this thread is worth bumping.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...