Clan FpR™
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Clan FpR™

Welcome to Clan FpR™
 
HomeHome  PortalPortal  GalleryGallery  SearchSearch  Latest imagesLatest images  RegisterRegister  Log in  

 

 Trigger Terrian Kill (GUI)

Go down 
+2
ShurikenSlinger
ZeroX2)Fire
6 posters
AuthorMessage
ZeroX2)Fire
Chieftain
Chieftain
ZeroX2)Fire


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

Trigger Terrian Kill (GUI) Empty
PostSubject: Trigger Terrian Kill (GUI)   Trigger Terrian Kill (GUI) EmptySun 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
Back to top Go down
https://clanfpr.forumotion.com
ShurikenSlinger
Peon
Peon



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

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

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



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

Trigger Terrian Kill (GUI) Empty
PostSubject: Re: Trigger Terrian Kill (GUI)   Trigger Terrian Kill (GUI) EmptySun 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
xps
Shaman
Shaman
xps


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

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

Damn. My head aches.
Back to top Go down
ZeroX2)Fire
Chieftain
Chieftain
ZeroX2)Fire


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

Trigger Terrian Kill (GUI) Empty
PostSubject: Re: Trigger Terrian Kill (GUI)   Trigger Terrian Kill (GUI) EmptyMon 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.
Back to top Go down
https://clanfpr.forumotion.com
c.u.p
Head Hunter
Head Hunter
c.u.p


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

Trigger Terrian Kill (GUI) Empty
PostSubject: Re: Trigger Terrian Kill (GUI)   Trigger Terrian Kill (GUI) EmptyMon 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
DarknessDragon
Peon
Peon



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

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

Screenshots are easier to understand??? study
Back to top Go down
ZeroX2)Fire
Chieftain
Chieftain
ZeroX2)Fire


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

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

Yeeah, and you know it'll take forever.


Last edited by on Fri Mar 30, 2007 9:01 pm; edited 1 time in total
Back to top Go down
https://clanfpr.forumotion.com
LightburneR
Shaman
Shaman



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

Trigger Terrian Kill (GUI) Empty
PostSubject: Re: Trigger Terrian Kill (GUI)   Trigger Terrian Kill (GUI) EmptyTue 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
DarknessDragon
Peon
Peon



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

Trigger Terrian Kill (GUI) Empty
PostSubject: Re: Trigger Terrian Kill (GUI)   Trigger Terrian Kill (GUI) EmptyThu 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
ZeroX2)Fire
Chieftain
Chieftain
ZeroX2)Fire


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

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

Deleted all the Quotes and posts that stays off topic, stay on topic now.
Back to top Go down
https://clanfpr.forumotion.com
ZeroX2)Fire
Chieftain
Chieftain
ZeroX2)Fire


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

Trigger Terrian Kill (GUI) Empty
PostSubject: Re: Trigger Terrian Kill (GUI)   Trigger Terrian Kill (GUI) EmptyFri 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.
Back to top Go down
https://clanfpr.forumotion.com
DarknessDragon
Peon
Peon



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

Trigger Terrian Kill (GUI) Empty
PostSubject: Re: Trigger Terrian Kill (GUI)   Trigger Terrian Kill (GUI) EmptyFri 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
Sponsored content





Trigger Terrian Kill (GUI) Empty
PostSubject: Re: Trigger Terrian Kill (GUI)   Trigger Terrian Kill (GUI) Empty

Back to top Go down
 
Trigger Terrian Kill (GUI)
Back to top 
Page 1 of 1
 Similar topics
-
» Ice Sliding Trigger (GUI)

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