Home   Help Search Login Register  

Author Topic: LIMITED RESPAWN QUEST, Help needed!  (Read 833 times)

0 Members and 1 Guest are viewing this topic.

Lin_Cafe

  • Guest
LIMITED RESPAWN QUEST, Help needed!
« on: 22 Mar 2003, 17:06:25 »
First of all,

Excuse me if results hard to understand me, my english is really bad...

and... Hi everybody, this is my first post here  ;)


Well, since the first time y added (respawn=N and respawndelay=N) in description.ext, I was wondering why don't exists a respawnlimit=N.

Some time ago, I was trying to limit the number of respawns avalible to a unit in MP missions.

I match a solution, but it is very hard and bored because you need to set a pair of triggers up and a little sqs for every unit you want to limit its respawn.

I just make a counter for unit1, when unit1counter == Param1, unit1 is teleported to a isolate location (a graveyard placed in a little island) where player can start Kegety's Spectating script v1.1 by an action added to the graveyard.

here you have a mission in order you can check how it works.  ::) er... this mission was made with Clan Linces Addon Selection Pack, I can do another one without addons if you need it. Just mail me.  ;)

Choose at Param1 how many respawn do you want (1, 3 and 5 avalible).

The question is:

I was wondering how to translate this triggers-sqs based system to a single script, I'm just a begginer with scripts and obviously, it doesn't work!!!  :-[

I attach you my test, ¿can you tell me what is wrong here?

Thank you!

Greetings from Spain, you will be wellcome to www.clanlinces.com and at our public server.

I hope that my english will be understandable  ;D




LinCafe

  • Guest
I'll post just the wrong script
« Reply #1 on: 25 Mar 2003, 18:39:35 »
I'll paste here my limited respawn script. Is not working.

I need help with sintaxis, don't know why this don't want to work cos I did the same using triggers and works fine.

Code: [Select]
_muertesUSA1=0;

#loop

_unit = _USA1
? NOT(Alive(_USA1)): _muertesUSA1 + 1
? (_muertesUSA1==Param1): Goto "muerto"



~16
Goto "loop"


#muerto
_unit = _this select 0
_unitname = _this select1
Player sidechat format["%1, No tienes más respawns, utiliza la cámara espía para seguir la partida", _unitname]
_unit setPos [getpos camara select 0, getpos camara select 1 +0]
removeAllWeapons _unit

Param1 was used to define how many respawn do you want to have (1,3 or 5).

I want to count how many times a unit dies, if he dies as times as the number chossen in Param1, then that unit will be teleported to an empty small island from where can be executed the snypir's Spectate Script (action added to a graveyard).

If I'll success with this, I want to modify it in order to easy updating (inserting, all respawnable units only one time).

Any ideas?