Go down
Lisianthus
Lisianthus
COL
COL
Posts : 975
realm_3
Réputation : 5
Trigger help! O_O ! O_O Pp_off10
Regist Date : 2006-11-03
http://www.dotd-stars.com

Trigger help! O_O ! O_O Empty Trigger help! O_O ! O_O

Sat 10 Feb 2007, 01:55
im trying to make a trigger for one of my maps,
i want when a unit cast an ability and the targeted unit dies it will play a certain sound, if not dieing do nothing
Code:

Events
    Unit - A unit Begins casting an ability
Conditions
    (Ability being cast) Equal to Fist
Actions
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        If - Conditions
            (Targeted unit) Equal to (Dying unit)
        Then - Actions
            Sound - Play humiliation
        Else - Actions
            Do nothing
How shall i do to make it work?
Sunny_D
Sunny_D
LTG
LTG
Posts : 1653
realm_1
Réputation : 3
Trigger help! O_O ! O_O Pp_adm10
Regist Date : 2006-02-04

Trigger help! O_O ! O_O Empty Re: Trigger help! O_O ! O_O

Sat 10 Feb 2007, 03:09
you would have to give the ability some time to deal the damage. therefore vary the wait in the following trigger so it covers also an eventually cast time delay (just try some values if it doesnt work).

NOTE: the condition in the if-then-else is a boolean comparison.

Code:
sound on death
    Events
        Unit - A unit Starts the effect of an ability
    Conditions
        (Ability being cast) Equal to 00_Fist
    Actions
        Set Victim = (Target unit of ability being cast)
        Wait 0.10 seconds
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Victim is dead) Equal to True
            Then - Actions
                Sound - Play Humiliation
            Else - Actions
 
Asgard_Ragna
Asgard_Ragna
COL
COL
Posts : 750
realm_3
Réputation : 7
Trigger help! O_O ! O_O Pp_off10
Regist Date : 2006-01-20

Trigger help! O_O ! O_O Empty Re: Trigger help! O_O ! O_O

Sat 10 Feb 2007, 09:16
And one thing!! If u use "Unit - A unit Begins casting an ability" it's possible to stop the spell before you pay the mana for it but the trigger is still working, that can end in alot of abuses! Better use "Unit - A unit Starts the effect of an ability" like Sunny did
Lisianthus
Lisianthus
COL
COL
Posts : 975
realm_3
Réputation : 5
Trigger help! O_O ! O_O Pp_off10
Regist Date : 2006-11-03
http://www.dotd-stars.com

Trigger help! O_O ! O_O Empty Re: Trigger help! O_O ! O_O

Sat 10 Feb 2007, 10:17
in what section in WE is set victim/victim = dead is dead = true?
i mean like unit, player, playercroup,,, etc. couse i cant find them

is this trigger woring fine? will it only add playing player to the playergroup ZPG?
Code:

Events
    Player - Player 1 (Red) types a chat message containing -ZM as An exact match
Actions
    Game - Display to (All players) the text: Zombie Survival Mod...
    Wait 1.00 seconds
    If ((Player 1 (Red) controller) Equal to None) then do (Do nothing) else do (Player Group - Add Player 1 (Red) to ZPG)
    If ((Player 2 (Blue) controller) Equal to None) then do (Do nothing) else do (Player Group - Add Player 2 (Blue) to ZPG)
    If ((Player 3 (Teal) controller) Equal to None) then do (Do nothing) else do (Player Group - Add Player 3 (Teal) to ZPG)
    If ((Player 4 (Purple) controller) Equal to None) then do (Do nothing) else do (Player Group - Add Player 4 (Purple) to ZPG)

And yhea if someone could help me doing a multiboard that shows kills for 4 player (not actualy the kills but showing the food of that player)
For example
KILLS
RED 10/20
BLUE 12/20
TEAL 15/20
PURPLE 6/20

(there are 4 modes with 10, 20, 40, 60 kills to win. so if anyone could help me doing it or someone feels like posting a tutorial so many players can get help from it it would be really apreciated!)

Then another thing.

A trigger that makes if a unit is killed it shall be like 10% chance to play the sound HEADSHOT and give the player 50 gold
Sunny_D
Sunny_D
LTG
LTG
Posts : 1653
realm_1
Réputation : 3
Trigger help! O_O ! O_O Pp_adm10
Regist Date : 2006-02-04

Trigger help! O_O ! O_O Empty Re: Trigger help! O_O ! O_O

Sat 10 Feb 2007, 16:51
in what section in WE is set victim/victim = dead is dead = true?
i mean like unit, player, playercroup,,, etc. couse i cant find them

read my last post. i said its a boolean-comparison (what are all conditions that end like "equal to true" or "not equal to false" or something similar. :)

------------------------------------------

is this trigger woring fine?

i would use a "player slot status comparison" instead. as far as i know, that would return computer players and users that are currently playing. as im not 100% sure, you can easily set up a test-debug trigger that shows you all players inside a group (Event: Player chat, Action: Pick all players in group and do Game Message: Player name of picked player)

------------------------------------------

here is a good multiboard tutorial to begin with: http://world-editor-tutorials.thehelper.net/multiboard.php

------------------------------------------

to the headshot trigger:

Code:

    Events
        Unit - A unit Dies
    Conditions
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                ----- Integer Comparison -----
                (Random integer number between 1 and 10) Equal to 9
            Then - Actions
                Sound - Play Headshot  //* must be no 3D sound if you dont attach it to unit or point
                Player - Add 50 to (Owner of (Killing unit)) Current gold
            Else - Actions
Lisianthus
Lisianthus
COL
COL
Posts : 975
realm_3
Réputation : 5
Trigger help! O_O ! O_O Pp_off10
Regist Date : 2006-11-03
http://www.dotd-stars.com

Trigger help! O_O ! O_O Empty Re: Trigger help! O_O ! O_O

Sun 11 Feb 2007, 02:34
i need help with this.
i want the unit WW Launcher to cast a certain spell at random place in region WARZONE
this is how i made but it wont work

Code:
    Events
        Time - Every 1.00 seconds of game time
    Conditions
    Actions
        Unit - Order WW LAUNCHER 0006 <gen> to Orc Tauren Chieftain - Shockwave (Random point in WARZONE <gen>)
Lisianthus
Lisianthus
COL
COL
Posts : 975
realm_3
Réputation : 5
Trigger help! O_O ! O_O Pp_off10
Regist Date : 2006-11-03
http://www.dotd-stars.com

Trigger help! O_O ! O_O Empty Re: Trigger help! O_O ! O_O

Sun 11 Feb 2007, 16:22
MEH! i need help! xD
Sunny_D
Sunny_D
LTG
LTG
Posts : 1653
realm_1
Réputation : 3
Trigger help! O_O ! O_O Pp_adm10
Regist Date : 2006-02-04

Trigger help! O_O ! O_O Empty Re: Trigger help! O_O ! O_O

Sun 11 Feb 2007, 16:56
ok...

first off, you should use this trigger:

Code:
    Events
        Time - Every 1.00 seconds of game time
    Conditions
    Actions
        Set TempLoc = (Random point in Warzone <gen>)
        Unit - Order WW Launcher <gen> to Orc-Tauren-Chieftain - 'Schockwave' TempLoc
        Custom script:  call RemoveLocation (udg_TempLoc)


you should now check following things in the spell editor:

1) Launcher has the spell
2) Spell has enough range to reach EVERY point in the rect all the time
3) Stats - Cooldown set to 0.01 or something very low
4) Mana Cost set to 0 so the unit can always fire the spell
Lisianthus
Lisianthus
COL
COL
Posts : 975
realm_3
Réputation : 5
Trigger help! O_O ! O_O Pp_off10
Regist Date : 2006-11-03
http://www.dotd-stars.com

Trigger help! O_O ! O_O Empty Re: Trigger help! O_O ! O_O

Sun 11 Feb 2007, 17:02
ty now everything works fine =)
Now i only need help with sugestions on gamemodes!
Modes already done:
zombie survival mode
crazy wave mode
team mode
Kiddrian
Kiddrian
SGM
SGM
Posts : 186
realm_1
Réputation : 0
Trigger help! O_O ! O_O Pp_mem10
Regist Date : 2007-01-27
http://freewebs.com/warcraftstarcraft

Trigger help! O_O ! O_O Empty Re: Trigger help! O_O ! O_O

Sun 11 Feb 2007, 19:16
Modes i suggested:
Hell Mode
Tag Team Mode
Giant Monster Attack Mode
_____
Hell Mode:
1. All players run around
2. All attacked by monsters from hell
3. Can group together to survive
4. If killed by a monster from hell, you turn to the side of hell.
5. If you are on the hell side, In 5 minutes you become back to the human side.
6. Survival time = 10 minutes
7. Hell Monsters are EXTREMELY HARD
______
Tag Team Mode:
1. PvP on the map.
2. switch players each time an person in their team goes to the switch point.
3. first team ALIVE wins.
______
Giant Monster Attack Mode:
1. All players allied.
2. Giant Monsters Attack Them.
3. Stats of the monsters
3a. Damage = 5000
3b. Health = 5000
3c. Speed = 400
3d. Used Skills: Howl, Roar
4. Survival Time = 10 minutes
5. NO REVIVING TILL TIME IS OVER!
_________
Do these seem good?
Lisianthus
Lisianthus
COL
COL
Posts : 975
realm_3
Réputation : 5
Trigger help! O_O ! O_O Pp_off10
Regist Date : 2006-11-03
http://www.dotd-stars.com

Trigger help! O_O ! O_O Empty Re: Trigger help! O_O ! O_O

Sun 11 Feb 2007, 19:25
well they seem good but i have to lower the stats a bit couse the unit you have has 4 hp and does 2 damage. and please explain more about team tag mode
Kiddrian
Kiddrian
SGM
SGM
Posts : 186
realm_1
Réputation : 0
Trigger help! O_O ! O_O Pp_mem10
Regist Date : 2007-01-27
http://freewebs.com/warcraftstarcraft

Trigger help! O_O ! O_O Empty Re: Trigger help! O_O ! O_O

Sun 11 Feb 2007, 19:40
Oh. Team tag?
Simple. Its like a Duel. A 1 vrs 1. BUT when a player enters a certain region, they switch with another player from their own side.
Lisianthus
Lisianthus
COL
COL
Posts : 975
realm_3
Réputation : 5
Trigger help! O_O ! O_O Pp_off10
Regist Date : 2006-11-03
http://www.dotd-stars.com

Trigger help! O_O ! O_O Empty Re: Trigger help! O_O ! O_O

Sun 11 Feb 2007, 20:23
i think i understand... we will see
Kiddrian
Kiddrian
SGM
SGM
Posts : 186
realm_1
Réputation : 0
Trigger help! O_O ! O_O Pp_mem10
Regist Date : 2007-01-27
http://freewebs.com/warcraftstarcraft

Trigger help! O_O ! O_O Empty Re: Trigger help! O_O ! O_O

Sun 11 Feb 2007, 20:30
yes YOU will.
Sponsored content

Trigger help! O_O ! O_O Empty Re: Trigger help! O_O ! O_O

Back to top
Permissions in this forum:
You cannot reply to topics in this forum