Aegis Support Board: help with script - Aegis Support Board

Jump to content

ASB News! ASB 5.0 Beta V2 has now been released!. See here for more Info.

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

help with script define wich team is dead

#1 User is offline   KillerCore1984 

  • Member
  • PipPipPip
  • Group: Members
  • Posts: 74
  • Joined: 12-October 04

Posted 22 November 2006 - 01:10 PM

Oke im working on a Group vs Group script, the problem is i need to define which team is dead so i know who is the winning team then

atm im setting save points to a *dead room* so when they die they will get in that room.
below ive done the check for pccount but it doesnt work with while. i need to find a way that it will check it at all times if thats posible. i know i can do a timer but i wanted to know if there are other ways.


npc "gon_team1" "dead_team1" HIDDEN_NPC 50 10 0 0 0
OnInit:
var pccount_team1 = GetPCCount "gon_team1.gat"

while (1)
if v[pccount_team1] == 1
cmdothernpc "Winner Announcer" "team2wins"
endif
endwhile
return

thnx in advance

This post has been edited by KillerCore1984: 22 November 2006 - 01:25 PM

0

#2 User is offline   Kasuha 

  • Average Member
  • PipPipPipPip
  • Group: Members
  • Posts: 195
  • Joined: 08-February 05

Posted 22 November 2006 - 07:02 PM

I'd propose to install a NPC for each team which will allow team members to "register" at it after the end of the match to get out of the arena - this way they will count themselves and when the arena becomes empty, you can compare results and tell the winner.
0

#3 User is offline   980542 

  • Average Member
  • PipPipPipPip
  • Group: Members
  • Posts: 106
  • Joined: 21-December 05

Posted 23 November 2006 - 03:37 AM

Maybe you should try to search this forum for CTF script (Capture the Flag).

It may give you other good ideas of how to do a point system.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users