Mr.Tutorial
Hard in the Paint.
- Reaction score
- 42
Advanced Maze Tutorial
I know my other tutorial sucked. But this one i've tried much harder!
Introduction
- Hello, welcome to maze tutorials advanced. In this tutorial you will be learning ice slide, unit whirl, terrain kill (deathregions), and converting tft triggers to RoC triggers. After this tutorial you should know all the advanced triggers to put in your mazes. (REQUIRES A BASIC MAZE MAKING EXPERIENCE)!
- Unit Whirl - It's a offset basically, that moves in a circles around a point or an object. (You can call it a wisp whirl)
- Ice Slide - This is also basically an offset. It just slides your unit to the angle of where your demonhunter is facing. But you may turn with the " Turn " trigger.
- Terrain Kill - Really simple way to have death regions. Except they are not regions, it compares to the type of terrain you put down in the trigger. For RoC players with TFT installed, I encourage you to go to try converting custom text!
Creating The Whirl Trigger!
-- Start off with some variables.
- Whirl1 - Real - 90.00 or 100.00
Create about 4 - 5 of the same triggers. Whirl2, Whirl3, etc.
Now for the trigger! Set whirl 1 for your first whirl of units or doodads.
Ok, their it is. But now you've got to understand it. When it say's offset, it sets it that distance from the whirl region. Pretend I have 2 units. One of them is 100.00 offset. The other one is 200.00. The offset 200.00 would be just behind the first unit.
If you want more units. Try creating more of those unit - move instant, triggers.
I encourge you to use this trigger. It is an exciting trigger.
Ice Sliding
Ok, lets all start out with the variables again!
- slide_on - boolean array [1] - False (Default)
- Slide_Unit - Unit Array [1] - none -
Now that you have gotten your variables in, let's write down the triggers!
Set Units
Now that you've gotten all that in. I sure hope you all understand how I've gotten that. If not, be sure to comment, and ill try to edit that problem.
Terrain Kill
Thank's to the owner of the basic mazing tutorial. This trigger was in that tutorial. Trust me it's fast and much easier then placing all of them region down!
- Get TFT installed.
- Open your world editor.
- Open your trigger editor.
- Make a really simple short trigger for testing.
- Go to the top of trigger editor.
- Click edit and go close to the bottom where it says, Convert to Custom Text
-- Enjoy --
Thank's for reading my tutorial. Please post and tell me what I have done wrong. Their might be a few memory leaks!
~ Mr.Tutorial
I know my other tutorial sucked. But this one i've tried much harder!
Introduction
- Hello, welcome to maze tutorials advanced. In this tutorial you will be learning ice slide, unit whirl, terrain kill (deathregions), and converting tft triggers to RoC triggers. After this tutorial you should know all the advanced triggers to put in your mazes. (REQUIRES A BASIC MAZE MAKING EXPERIENCE)!
- Unit Whirl - It's a offset basically, that moves in a circles around a point or an object. (You can call it a wisp whirl)
- Ice Slide - This is also basically an offset. It just slides your unit to the angle of where your demonhunter is facing. But you may turn with the " Turn " trigger.
- Terrain Kill - Really simple way to have death regions. Except they are not regions, it compares to the type of terrain you put down in the trigger. For RoC players with TFT installed, I encourage you to go to try converting custom text!
Creating The Whirl Trigger!
-- Start off with some variables.
- Whirl1 - Real - 90.00 or 100.00
Create about 4 - 5 of the same triggers. Whirl2, Whirl3, etc.
Now for the trigger! Set whirl 1 for your first whirl of units or doodads.
Whirl
Events
Time - Every 0.09 seconds of game time
Conditions
Actions
Set whirl1 = (whirl1 - 2.50)
Unit - (unit) move instantly to ((Center of region (where u want whirl around) <gen>) offset by 100.00 towards whirl1 degrees)
Unit - (unit) move instantly to ((Center of region (where u want the whirl around)<gen>) offset by 200.00 towards whirl1 degrees)
Ok, their it is. But now you've got to understand it. When it say's offset, it sets it that distance from the whirl region. Pretend I have 2 units. One of them is 100.00 offset. The other one is 200.00. The offset 200.00 would be just behind the first unit.
If you want more units. Try creating more of those unit - move instant, triggers.
I encourge you to use this trigger. It is an exciting trigger.
Ice Sliding
Ok, lets all start out with the variables again!
- slide_on - boolean array [1] - False (Default)
- Slide_Unit - Unit Array [1] - none -
Now that you have gotten your variables in, let's write down the triggers!
Set Units
Events
Map initialization
Conditions
Actions
Set Slide_Unit[1] = Daylight Demon 0000 <gen>
Set Slide_Unit[2] = Daylight Demon 0001 <gen>
Set Slide_Unit[3] = Daylight Demon 0002 <gen>
Set Slide_Unit[4] = Daylight Demon 0003 <gen>
Set Slide_Unit[5] = Daylight Demon 0004 <gen>
Set Slide_Unit[6] = Daylight Demon 0005 <gen>
Set Slide_Unit[7] = Daylight Demon 0006 <gen>
Set Slide_Unit[8] = Daylight Demon 0007 <gen>
Set Slide_Unit[9] = Daylight Demon 0008 <gen>
Set Slide_Unit[10] = Daylight Demon 0009 <gen>
Set Slide_Unit[11] = Daylight Demon 0010 <gen>
For the uniter enters trigger. Have the unit enter where u want him to start the slide. Be sure to put regions 1 movement away from eachother. For example, if i have a #1#2 region close together (touching). Spread them a bit to make it #1 #2Turning On Slide
Events
Unit - A unit enters slideon3 <gen>
Unit - A unit enters slideon4 <gen>
Unit - A unit enters slideon2 <gen>
Unit - A unit enters slideon1 <gen>
Conditions
(Unit-type of (Triggering unit)) Equal to Daylight Demon
Actions
Set slide_on[(Player number of (Owner of (Triggering unit)))] = True
As I have said previously. Spread your slide on region ONE movement over from the slide off.Turning Off Slide
Events
Unit - A unit enters slideoff4 <gen>
Unit - A unit enters slideoff3 <gen>
Unit - A unit enters slideoff2 <gen>
Unit - A unit enters slideoff1 <gen>
Conditions
(Unit-type of (Triggering unit)) Equal to Daylight Demon
Actions
Set slide_on[(Player number of (Owner of (Triggering unit)))] = False
Slide
Events
Time - Every 0.03 seconds of game time
Conditions
Actions
For each (Integer A) from 1 to 10, do (If (slide_on[(Integer A)] Equal to True) then do (Unit - Move Slide_Unit[(Integer A)] instantly to ((Position of Slide_Unit[(Integer A)]) offset by 7.00 towards (Facing of Slide_Unit[(Integer A)]) degrees)) else do (Do nothing))
Turn
Events
Unit - Daylight Demon 0000 <gen> Is issued an order targeting a point
Unit - Daylight Demon 0001 <gen> Is issued an order targeting a point
Unit - Daylight Demon 0002 <gen> Is issued an order targeting a point
Unit - Daylight Demon 0003 <gen> Is issued an order targeting a point
Unit - Daylight Demon 0004 <gen> Is issued an order targeting a point
Unit - Daylight Demon 0005 <gen> Is issued an order targeting a point
Unit - Daylight Demon 0006 <gen> Is issued an order targeting a point
Unit - Daylight Demon 0007 <gen> Is issued an order targeting a point
Unit - Daylight Demon 0008 <gen> Is issued an order targeting a point
Unit - Daylight Demon 0009 <gen> Is issued an order targeting a point
Conditions
slide_on[(Player number of (Owner of (Triggering unit)))] Equal to True
Actions
Unit - Move (Triggering unit) instantly to (Position of (Triggering unit)), facing (Target point of issued order)
Unit - Make (Triggering unit) face (Target point of issued order) over 0.00 seconds
Now that you've gotten all that in. I sure hope you all understand how I've gotten that. If not, be sure to comment, and ill try to edit that problem.
Terrain Kill
Thank's to the owner of the basic mazing tutorial. This trigger was in that tutorial. Trust me it's fast and much easier then placing all of them region down!
Converting Text StepsTerrain Kill
Events
Time - Every 0.05 seconds of game time
Conditions
Actions
Unit Group - Pick every unit in (Units of type Daylight Demon) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Terrain type at (Position of (Picked unit))) Equal to Lordaeron Summer - Dirt
Then - Actions
Unit - Kill (Picked unit)
Else - Actions
Custom script: call DestroyGroup(GetLastCreatedGroup())
- Get TFT installed.
- Open your world editor.
- Open your trigger editor.
- Make a really simple short trigger for testing.
- Go to the top of trigger editor.
- Click edit and go close to the bottom where it says, Convert to Custom Text
-- Enjoy --
Thank's for reading my tutorial. Please post and tell me what I have done wrong. Their might be a few memory leaks!
~ Mr.Tutorial