Clan FpR

Welcome to Clan FpR
 
HomeHome  PortalPortal  CalendarCalendar  GalleryGallery  FAQFAQ  SearchSearch  RegisterRegister  MemberlistMemberlist  UsergroupsUsergroups  Log in  

Share | 
 

 Trigger Terrian Kill (GUI)

Go down 
AuthorMessage
ZeroX2)Fire
Chieftain
Chieftain
avatar

Number of posts : 101
Registration date : 2007-03-17

PostSubject: Trigger Terrian Kill (GUI)   Sun Mar 25, 2007 3:02 am

Welcome to the Terrian Kill Tutorial (GUI)
Trust me, this is one of the easyest triggers i've ever done.
Let's get started!

Variable Requirements
Make a Unit Variable type and array to how much players in your game,
example : 11 Players and 1 Computer, Unit Array (11).
Next, you need a Point Variable type and set the array to 5.

--------------------------------------------------------------------------------
Terrian Kill Trigger (GUI)
Make a New Trigger (Ctrl + T) and name it Terrian Kill Trigger (Names don't mattter)
New Event (Ctrl + E)
Event Type Time, Periodic Event
Every 0.12 seconds of the game.

Now, it should look like
Events
Time - Every 0.12 seconds of game time

Conditions
No Conditions

New Action (Ctrl + R)
Action Type General, For Each Integer A, Do Multiple Actions
For each (Integer A) from 1 to How much Players in your game, do (Actions)
Loop - Actions

Now, it should look like
Events
Time - Every 0.12 seconds of game time
Conditions
Actions
For each (Integer A) from 1 to 11, do (Actions)
Loop - Actions

Right Click on the Loop - Actions and click New Action
Action Type General, Set Variable
Set Point Variable[0] = (Position of Unit Variable[(Integer A)])

Now it should look like
Terrain Type Kill
Events
Time - Every 0.12 seconds of game time
Conditions
Actions
For each (Integer A) from 1 to 11, do (Actions)
Loop - Actions
Set Point[0] = (Position of Unit Variable[(Integer A)])

Next, Right-Click on Set Point[0] = (Position of Unit Variable[(Integer A)]) and click New Action.
Action Type General, If / Then / Else, Multiple Functions
You will see a If - Conditions, Then - Actions and Else - Actions. Now Right-Click on the If - Conditions and find Terrian Type Comparison
(Terrain type at Point Variable[0]) Equal to (Your Tileset - The Terrian)

Now, it should look like
Terrain Type Kill
Events
Time - Every 0.12 seconds of game time
Conditions
Actions
For each (Integer A) from 1 to 11, do (Actions)
Loop - Actions
Set Point Variable[0] = (Position of Unit Variable[(Integer A)])
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Terrain type at Point Variable[0]) Equal to (Your Tileset - Terrian)

Now, Right-Click on Then - Actions and click on New Actions
Action Type Unit, Unit - Kill
Unit - Kill Unit Variable[(Integer A)]

Now, Right-Click on Else - Actions and click on New Actions
Action Type General, Custom Script
Copy Paste call RemoveLocation(udg_Point[0]) on the Custom Script Value (This is so the game wont crash or get bugged)

Your finally done with the Terrian Kill Trigger, now you need to make the Unit Variable read what units it's going to kill when it get's off the path.

Loading Units
Make A New Trigger (Ctrl + T)
Event Type General, Map initialization
-Events
Map initialization
-Conditions
No Conditions

Now, it's time for Actions the part your going to load your player units.
New Action (CTRL + R)
Action Type General, Set Variable
Set Unit Variable[1] = Your unit on the map <gen>
Next, do the same thing but change the number and select the different unit on the map.
When your done it should look like

Events
Map initialization
Conditions
Actions
Set Unit Variable[1] = Your Unit on the Map 0001 <gen>
Set Unit Variable[2] = Your Unit on the Map 0002 <gen>
Set Unit Variable[3] = Your Unit on the Map 0003 <gen>
Set Unit Variable[4] = Your Unit on the Map 0004 <gen>
Set Unit Variable[5] = Your Unit on the Map 0007 <gen>
Set Unit Variable[6] = Your Unit on the Map 0006 <gen>
Set Unit Variable[7] = Your Unit on the Map 0009 <gen>
Set Unit Variable[8] = Your Unit on the Map 0005 <gen>
Set Unit Variable[9] = Your Unit on the Map 0008 <gen>
Set Unit Variable[10] = Your Unit on the Map 0010 <gen>
Set Unit Variable[11] = Your Unit on the Map 0011 <gen>

Your finally finished!
To clear things up this is what your Trigger Terrian Kill should look like

Events
Time - Every 0.12 seconds of game time
Conditions
Actions
For each (Integer A) from 1 to 11, do (Actions)
Loop - Actions
Set Point Variable[0] = (Position of Unit Variable[(Integer A)])
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Terrain type at Point Variable[0]) Equal to (Your Tileset - Terrian)
Then - Actions
Unit - Kill Hero[(Integer A)]
Else - Actions
Custom script: call RemoveLocation(udg_Point[0])

Your Loading Unit Trigger

Events
Map initialization
Conditions
Actions
Set Unit Variable[1] = Your Unit on the Map 0001 <gen>
Set Unit Variable[2] = Your Unit on the Map 0002 <gen>
Set Unit Variable[3] = Your Unit on the Map 0003 <gen>
Set Unit Variable[4] = Your Unit on the Map 0004 <gen>
Set Unit Variable[5] = Your Unit on the Map 0007 <gen>
Set Unit Variable[6] = Your Unit on the Map 0006 <gen>
Set Unit Variable[7] = Your Unit on the Map 0009 <gen>
Set Unit Variable[8] = Your Unit on the Map 0005 <gen>
Set Unit Variable[9] = Your Unit on the Map 0008 <gen>
Set Unit Variable[10] = Your Unit on the Map 0010 <gen>
Set Unit Variable[11] = Your Unit on the Map 0011 <gen>

Thanks for using ZeroX2)Fire's Terrian Kill Trigger/Loading Unit Tutorial Wink

_________________
~Do you really need a reason to die?~
Back to top Go down
View user profile http://clanfpr.quickbb.net
ShurikenSlinger
Peon
Peon


Number of posts : 21
Localisation : Singapore
Registration date : 2007-03-23

PostSubject: Re: Trigger Terrian Kill (GUI)   Sun Mar 25, 2007 6:08 am

Wat does trigger terrian kill means?
Back to top Go down
View user profile
LightburneR
Shaman
Shaman


Number of posts : 35
Registration date : 2007-03-19

PostSubject: Re: Trigger Terrian Kill (GUI)   Sun Mar 25, 2007 7:14 am

It kills you when you touch a certain type of terrain. Mostly used in mazes.
Back to top Go down
View user profile
xps
Shaman
Shaman
avatar

Number of posts : 33
Registration date : 2007-03-17

PostSubject: Re: Trigger Terrian Kill (GUI)   Sun Mar 25, 2007 3:47 pm

Damn. My head aches.
Back to top Go down
View user profile
ZeroX2)Fire
Chieftain
Chieftain
avatar

Number of posts : 101
Registration date : 2007-03-17

PostSubject: Re: Trigger Terrian Kill (GUI)   Mon Mar 26, 2007 12:40 am

Well, it may be hard to understand if you don't know anything about the World Editor, this is one of the triggers I ever did when I was first using the World Editor through.

_________________
~Do you really need a reason to die?~
Back to top Go down
View user profile http://clanfpr.quickbb.net
c.u.p
Head Hunter
Head Hunter
avatar

Number of posts : 28
Age : 25
Registration date : 2007-03-19

PostSubject: Re: Trigger Terrian Kill (GUI)   Mon Mar 26, 2007 6:54 pm

ive done that b4 ive forgot it now tho i sent the map to my friend to release but i think he stole it the mazers were blademasters (he wus the one who told me it tho so..)
Back to top Go down
View user profile
DarknessDragon
Peon
Peon


Number of posts : 22
Registration date : 2007-03-21

PostSubject: Re: Trigger Terrian Kill (GUI)   Tue Mar 27, 2007 3:29 am

Screenshots are easier to understand??? study
Back to top Go down
View user profile
ZeroX2)Fire
Chieftain
Chieftain
avatar

Number of posts : 101
Registration date : 2007-03-17

PostSubject: Re: Trigger Terrian Kill (GUI)   Tue Mar 27, 2007 6:33 am

Yeeah, and you know it'll take forever.

_________________
~Do you really need a reason to die?~


Last edited by on Fri Mar 30, 2007 9:01 pm; edited 1 time in total
Back to top Go down
View user profile http://clanfpr.quickbb.net
LightburneR
Shaman
Shaman


Number of posts : 35
Registration date : 2007-03-19

PostSubject: Re: Trigger Terrian Kill (GUI)   Tue Mar 27, 2007 8:11 am

If you want it in byte sized then lemme explain it.

Events
Map initialization
Conditions
Actions
Set Unit Variable[1] = Your Unit on the Map 0001 <gen>
Set Unit Variable[2] = Your Unit on the Map 0002 <gen>
Set Unit Variable[3] = Your Unit on the Map 0003 <gen>
Set Unit Variable[4] = Your Unit on the Map 0004 <gen>
Set Unit Variable[5] = Your Unit on the Map 0007 <gen>
Set Unit Variable[6] = Your Unit on the Map 0006 <gen>
Set Unit Variable[7] = Your Unit on the Map 0009 <gen>
Set Unit Variable[8] = Your Unit on the Map 0005 <gen>
Set Unit Variable[9] = Your Unit on the Map 0008 <gen>
Set Unit Variable[10] = Your Unit on the Map 0010 <gen>
Set Unit Variable[11] = Your Unit on the Map 0011 <gen>

This part is to set the variable as clearly stated.
Events
Time - Every 0.12 seconds of game time
Conditions
Actions
For each (Integer A) from 1 to 11, do (Actions)
Loop - Actions
Set Point Variable[0] = (Position of Unit Variable[(Integer A)])
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Terrain type at Point Variable[0]) Equal to (Your Tileset - Terrian)
Then - Actions
Unit - Kill Hero[(Integer A)]
Else - Actions
Custom script: call RemoveLocation(udg_Point[0])

This part means every 0.12 seconds for each integer A (NOT STATED ZERO) do actions in other words it does actions and repeats it for each integer A. Then it sets the variable "Point" as the postition of integer A. If the terrain at the variable "Point" equels to Your tileset, it will kill Hero integer A. If not it does nothing and after that it removes the variable point.

Get it? No? Well then too bad!
Back to top Go down
View user profile
DarknessDragon
Peon
Peon


Number of posts : 22
Registration date : 2007-03-21

PostSubject: Re: Trigger Terrian Kill (GUI)   Thu Mar 29, 2007 4:45 am

DarknessDragon wrote:
Screenshots are easier to understand??? study

But if you do it that way more people will understand????
Back to top Go down
View user profile
ZeroX2)Fire
Chieftain
Chieftain
avatar

Number of posts : 101
Registration date : 2007-03-17

PostSubject: Re: Trigger Terrian Kill (GUI)   Fri Mar 30, 2007 9:00 pm

Deleted all the Quotes and posts that stays off topic, stay on topic now.

_________________
~Do you really need a reason to die?~
Back to top Go down
View user profile http://clanfpr.quickbb.net
ZeroX2)Fire
Chieftain
Chieftain
avatar

Number of posts : 101
Registration date : 2007-03-17

PostSubject: Re: Trigger Terrian Kill (GUI)   Fri Mar 30, 2007 9:08 pm

DarknessDragon wrote:
DarknessDragon wrote:
Screenshots are easier to understand??? study

But if you do it that way more people will understand????

Okay, i will put screenshots when I have time.

_________________
~Do you really need a reason to die?~
Back to top Go down
View user profile http://clanfpr.quickbb.net
DarknessDragon
Peon
Peon


Number of posts : 22
Registration date : 2007-03-21

PostSubject: Re: Trigger Terrian Kill (GUI)   Fri Mar 30, 2007 10:02 pm

ZeroX2)Fire wrote:
DarknessDragon wrote:
DarknessDragon wrote:
Screenshots are easier to understand??? study

But if you do it that way more people will understand????

Okay, i will put screenshots when I have time.
Quote :
Ok Good Luck sunny
Back to top Go down
View user profile
Sponsored content




PostSubject: Re: Trigger Terrian Kill (GUI)   

Back to top Go down
 
Trigger Terrian Kill (GUI)
Back to top 
Page 1 of 1
 Similar topics
-
» maga-spagg kill a Borg today at 18 clock!
» "An innocent kill"
» X KiLL.ctg
» Fire Cannot Kill a Dragon

Permissions in this forum:You cannot reply to topics in this forum
Clan FpR :: World Editor Zone :: Free Trigger Codes-
Jump to: