Go down
Lisianthus
Lisianthus
COL
COL
Posts : 975
realm_3
Réputation : 5
(request)  help with triggering xD Pp_off10
Regist Date : 2006-11-03
http://www.dotd-stars.com

(request)  help with triggering xD Empty (request) help with triggering xD

Mon 04 Dec 2006, 15:50
I am making a map at the moment and i need some help with triggers.

first i need a trigger that is like this: when a player kills a special building the player who destroys the building get a new one on the place where the old one was.
this is an example :
Evil-Pidgeon attacks mr.unkowns base and destroys the special building. evil pidgeon gets the special building.

second i need i trigger that makes a player that ows the special building gets a amount of
money every 2 minutes

and i need help with how to add a trigger and make triggers myself,

i have searched the web for trigger toutorials but it only says experiment yourself, but
i tryed that i didnt understand how to use it
Sath
Sath
MG
MG
Posts : 1576
realm_3
Réputation : 62
(request)  help with triggering xD Pp_fou10
Regist Date : 2005-07-15
http://dotd6.net

(request)  help with triggering xD Empty Re: (request) help with triggering xD

Mon 04 Dec 2006, 17:32
Well here a solution,

You need create a variable type Playergroup

in my exemple its "yourGroup"



For the first trigger :


Events
Unit - A unit Dies
Conditions
(Unit-type of (Dying unit)) Equal to "yourbuilding"
Actions
Player Group - Remove (Owner of (Dying unit)) from "yourGroup"
Unit - Create 1 "yourbuilding" for (Owner of (Killing unit)) at (Position of (Dying unit)) facing Default building facing (270.0) degrees
Player Group - Add (Owner of (Killing unit)) to "yourGroup"



and the second :



Events
Time - Every 120.00 seconds of game time
Conditions
Actions
Player Group - Pick every player in "yourGroup" and do (Actions)
Loop - Actions
Player - Set (Picked player) Current gold to (((Picked player) Current gold) + 100)
Asgard_Ragna
Asgard_Ragna
COL
COL
Posts : 750
realm_3
Réputation : 7
(request)  help with triggering xD Pp_off10
Regist Date : 2006-01-20

(request)  help with triggering xD Empty Re: (request) help with triggering xD

Mon 04 Dec 2006, 17:38
Well this is my solution im not sure if it works didn't test it. map
Sunny_D
Sunny_D
LTG
LTG
Posts : 1653
realm_1
Réputation : 3
(request)  help with triggering xD Pp_adm10
Regist Date : 2006-02-04

(request)  help with triggering xD Empty Re: (request) help with triggering xD

Mon 04 Dec 2006, 18:20
mb this links are useful too if you want a basic introduction into triggering... ;)

http://world-editor-tutorials.thehelper.net/triggers.php#example

http://world-editor-tutorials.thehelper.net/cat_usersubmit.php?view=19780

http://world-editor-tutorials.thehelper.net/cat_usersubmit.php
Lisianthus
Lisianthus
COL
COL
Posts : 975
realm_3
Réputation : 5
(request)  help with triggering xD Pp_off10
Regist Date : 2006-11-03
http://www.dotd-stars.com

(request)  help with triggering xD Empty Re: (request) help with triggering xD

Mon 04 Dec 2006, 18:53
thanks SathSunny_D andAsgard_Ragna for your help
but u have a few questions about the triggers u posted sath. what shall i write in the "yourbuilding"?
shall i write
the name of my building? like controll point
and what is "yourgroup"

u wrote variable type Playergrou whats that?

and if i want all players to get the amout of money
like 100gold/controll point what shall i change?
does big and small letters matter in triggers?

how do i write the triggers?
Sath
Sath
MG
MG
Posts : 1576
realm_3
Réputation : 62
(request)  help with triggering xD Pp_fou10
Regist Date : 2005-07-15
http://dotd6.net

(request)  help with triggering xD Empty Re: (request) help with triggering xD

Mon 04 Dec 2006, 20:19
same , i cant teach you all sorry ; i dunt have the time


Sunny_D wrote:mb this links are useful too if you want a basic introduction into triggering... Wink

http://world-editor-tutorials.thehelper.net/triggers.php#example

http://world-editor-tutorials.thehelper.net/cat_usersubmit.php?view=19780

http://world-editor-tutorials.thehelper.net/cat_usersubmit.php
Asgard_Ragna
Asgard_Ragna
COL
COL
Posts : 750
realm_3
Réputation : 7
(request)  help with triggering xD Pp_off10
Regist Date : 2006-01-20

(request)  help with triggering xD Empty Re: (request) help with triggering xD

Mon 04 Dec 2006, 20:37
Yes, the only way to learn triggering is open other maps or teach yourself. Nobody can tell you a general way how to trigger.
Lisianthus
Lisianthus
COL
COL
Posts : 975
realm_3
Réputation : 5
(request)  help with triggering xD Pp_off10
Regist Date : 2006-11-03
http://www.dotd-stars.com

(request)  help with triggering xD Empty Re: (request) help with triggering xD

Mon 04 Dec 2006, 21:22
okay i understand that now xD
Sath
Sath
MG
MG
Posts : 1576
realm_3
Réputation : 62
(request)  help with triggering xD Pp_fou10
Regist Date : 2005-07-15
http://dotd6.net

(request)  help with triggering xD Empty Re: (request) help with triggering xD

Tue 05 Dec 2006, 21:05
nice , btw u starting a good map :p ( ive tested it yesterday lol )
Sunny_D
Sunny_D
LTG
LTG
Posts : 1653
realm_1
Réputation : 3
(request)  help with triggering xD Pp_adm10
Regist Date : 2006-02-04

(request)  help with triggering xD Empty Re: (request) help with triggering xD

Tue 05 Dec 2006, 22:23
what kind of a map is it? if i consider the triggers you need, it could probably be an aos-style....

EDIT: k i saw your other thread now... Wink
Sponsored content

(request)  help with triggering xD Empty Re: (request) help with triggering xD

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