Eventos Actuales |
No hay eventos actualmente
|
| | Sistema de Rachas (Double kill, trible kill.....) | |
| Autor | Mensaje |
---|
Soldado

Barra de Salud : 
Mensajes : 84
Reputación : 3 Monedas de oro : 285 Monedas de Platino : 0 
Inventario :  
 | (#) Tema: Sistema de Rachas (Double kill, trible kill.....) Vie Sep 06, 2013 5:18 pm | |
| Buenos dias tardes noches. En esta ocaciona he creado un sistema de rachas pero al parecer no siempre funciona, solo debes en cuando, me gustaría saber que estoy haciendo mal. Aquí los detos:
[gui]Contador Data Events Map initialization Conditions Actions Custom script: call DestroyTrigger(GetTriggeringTrigger()) Set ContadorPlayer[1] = Player 1 (Red) Set ContadorBoolean[1] = False Set ContadorPlayer[2] = Player 2 (Blue) Set ContadorBoolean[2] = False Set ContadorPlayer[3] = Player 3 (Teal) Set ContadorBoolean[3] = False Set ContadorPlayer[4] = Player 4 (Purple) Set ContadorBoolean[4] = False Set ContadorPlayer[5] = Player 5 (Yellow) Set ContadorBoolean[5] = False Set ContadorPlayer[6] = Player 6 (Orange) Set ContadorBoolean[6] = False Set ContadorPlayer[7] = Player 7 (Green) Set ContadorBoolean[7] = False Set ContadorPlayer[8] = Player 8 (Pink) Set ContadorBoolean[8] = False Set ContadorPlayer[9] = Player 9 (Gray) Set ContadorBoolean[9] = False Set ContadorPlayer[10] = Player 10 (Light Blue) Set ContadorBoolean[10] = False Set ContadorPlayer[11] = Player 11 (Dark Green) Set ContadorBoolean[11] = False Set ContadorPlayer[12] = Player 12 (Brown) Set ContadorBoolean[12] = False[/gui]
[gui]Contador Events Unit - A unit Dies Conditions And - All (Conditions) are true Conditions ((Triggering unit) is A Hero) Equal to True ((Killing unit) is A Hero) Equal to True ((Dying unit) belongs to an enemy of (Owner of (Killing unit))) Equal to True Actions Set ContadorKills[(Player number of (Owner of (Killing unit)))] = (ContadorKills[(Player number of (Owner of (Killing unit)))] + 1) Set ContadorTime[(Player number of (Owner of (Killing unit)))] = 0.00 Set ContadorBoolean[(Player number of (Owner of (Killing unit)))] = True Set ContadorBoolean2[(Player number of (Owner of (Killing unit)))] = True[/gui]
[gui]Contador Loop Events Time - Every 0.01 seconds of game time Conditions Actions For each (Integer ContadorInteger[1]) from 1 to 12, do (Actions) Loop - Actions If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions And - All (Conditions) are true Conditions (ContadorPlayer[ContadorInteger[1]] slot status) Equal to Is playing ContadorBoolean[ContadorInteger[1]] Not equal to False Then - Actions Set ContadorTime[ContadorInteger[1]] = (ContadorTime[ContadorInteger[1]] + 0.01) If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions And - All (Conditions) are true Conditions ContadorKills[ContadorInteger[1]] Not equal to 0 ContadorBoolean2[ContadorInteger[1]] Not equal to False Then - Actions If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions ContadorKills[ContadorInteger[1]] Greater than or equal to 6 Then - Actions Set ContadorBoolean2[ContadorInteger[1]] = False Game - Display to (All players) the text: ((|c0000FFFF + ((Name of ContadorPlayer[ContadorInteger[1]]) + |r)) + HA COMETIDO UNA MASACRE!!!) Sound - Play MonsterKill Else - Actions Do nothing If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions ContadorKills[ContadorInteger[1]] Equal to 5 Then - Actions Set ContadorBoolean2[ContadorInteger[1]] = False Game - Display to (All players) the text: ((|c0000FFFF + ((Name of ContadorPlayer[ContadorInteger[1]]) + |r)) + está sobre dios!!! QUE ALGUIEN HAGA ALGO!!!) Sound - Play Rampage Else - Actions Do nothing If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions ContadorKills[ContadorInteger[1]] Equal to 4 Then - Actions Set ContadorBoolean2[ContadorInteger[1]] = False Game - Display to (All players) the text: ((|c0000FFFF + ((Name of ContadorPlayer[ContadorInteger[1]]) + |r)) + está en racha!!! QUE ALGUIEN LO PARE!!!) Sound - Play UltraKill Else - Actions Do nothing If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions ContadorKills[ContadorInteger[1]] Equal to 3 Then - Actions Set ContadorBoolean2[ContadorInteger[1]] = False Game - Display to (All players) the text: ((|c0000FFFF + ((Name of ContadorPlayer[ContadorInteger[1]]) + |r)) + ha cometido un asesinato triple.) Sound - Play triple_kill Else - Actions Do nothing If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions ContadorKills[ContadorInteger[1]] Equal to 2 Then - Actions Set ContadorBoolean2[ContadorInteger[1]] = False Game - Display to (All players) the text: ((|c0000FFFF + ((Name of ContadorPlayer[ContadorInteger[1]]) + |r)) + ha cometido un asesinato doble.) Sound - Play Double_Kill Else - Actions Do nothing Else - Actions Do nothing If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions ContadorTime[ContadorInteger[1]] Greater than or equal to 10.00 Then - Actions Set ContadorBoolean[ContadorInteger[1]] = False Set ContadorBoolean2[ContadorInteger[1]] = False Set ContadorKills[ContadorInteger[1]] = 0 Set ContadorTime[ContadorInteger[1]] = 0.00 Else - Actions Do nothing Else - Actions Do nothing[/gui]
Espero puedan ayudarme, saludos.... |
|  | | 

Barra de Salud : 
Mensajes : 3543
Reputación : 677 Monedas de oro : 11074 Monedas de Platino : 0 
Inventario :  
 | (#) Tema: Re: Sistema de Rachas (Double kill, trible kill.....) Vie Sep 06, 2013 5:28 pm | |
| No lo analicé completamente pero
*En el init creo que tienes que colocar el DestroyTrigger al final
Y puedes hacer todo en un Loop
For loop integer A from 1 to 12
Set contadorplayer[Integer A] = Player(Integer A) Set contadorboolean[Integer A] = False
y te ahorras líneas y tiempo
*Coloca un loop de 0.03 a 0.05 porque 0.01 es un asesino del juego.
*Elimina todos los Do Nothing, son una mala costumbre |
|  | | Iniciado
Barra de Salud : 
Mensajes : 6
Reputación : 0 Monedas de oro : 8 Monedas de Platino : 0 
Inventario :  
 | (#) Tema: Re: Sistema de Rachas (Double kill, trible kill.....) Lun Feb 13, 2017 10:16 pm | |
| Tio Podrias subir tu mapa para descargarlo porfavor!!
|
|  | | 

Barra de Salud : 
Mensajes : 978
Reputación : 113 Monedas de oro : 1247 Monedas de Platino : 0 
Inventario :  
 | (#) Tema: Re: Sistema de Rachas (Double kill, trible kill.....) Sáb Feb 18, 2017 10:15 pm | |
| - @Cerocuel escribió:
- Tio Podrias subir tu mapa para descargarlo porfavor!!
Es una duda de hace 3 años, esto podria servirte https://www.hiveworkshop.com/threads/ass-advanced-streak-system.195757/ Cierro tema. |
|  | |
 | (#) Tema: Re: Sistema de Rachas (Double kill, trible kill.....)  | |
| |
|  | | | Sistema de Rachas (Double kill, trible kill.....) | |
|
Temas similares |  |
|
| Permisos de este foro: | No puedes responder a temas en este foro.
| |
| |
| Últimos temas | » Tutorial sobre modelado en war3 - Creación de Estructura Osea • Vie Ene 22, 2021 7:25 pm por Satoshi» Agregar Mejoras en los Objetos Jue Ene 21, 2021 3:27 am por GhxBronie» Hardcore Ninja [IA] Mar Ene 19, 2021 6:07 am por Satoshi» Generador de Nombres Lun Ene 18, 2021 3:40 am por Satoshi» Modelos Final Fantasy Tactics Lun Ene 18, 2021 3:34 am por Satoshi» Crear Oleadas de Unidades Dom Ene 17, 2021 10:40 pm por GhxBronie» Crear Respawn de Jungla al estilo Dota Dom Ene 17, 2021 10:39 pm por GhxBronie» Crear Bonificación a Coste de Maná/Segundo Dom Ene 17, 2021 10:38 pm por GhxBronie» APORTE MODELOS 3D DE EL JUEGO "SMITE"  Jue Ene 14, 2021 8:06 pm por israelxd03» Ayuda - Reunir unidades y hacer accion Miér Ene 13, 2021 7:08 pm por Lordarkangel» Buen dia, preguntando desdpues de tiempo Miér Ene 13, 2021 6:51 pm por neruvian» Unidad que no pueda ser atacado por aliados Miér Ene 13, 2021 6:39 pm por neruvian» Has Tu DOTA y no jodas mas [+IA] = By ArOn Miér Ene 13, 2021 1:01 pm por fernando54988» DotA 6.83d_AI 1.8 "Kokox" Español Miér Ene 13, 2021 12:53 pm por fernando54988» [Anuncio] Sistema de "Especialidades" o "Profesiones" del editor Jue Ene 07, 2021 9:16 am por PENSATIVO197 |
Los posteadores más activos de la semana | |
|