- Joined
- Oct 2, 2006
- Messages
- 1,317
I am making this tutorial as a request of Pitakebab.
This tutorial has 3 steps:
---------------------------------------------------------------------------------------------------
1) Create 2 variables: (fig1)
Variable 1: Integer variable. You will call it as "random_number"
Variable 2: Region Variable with array with size 1. You will call it as "region"
---------------------------------------------------------------------------------------------------
2) Create the first trigger: (fig2)
Events:
Map Initialization
Actions:
Set Variable "region" (1) = a Region
Set Variable "region" (1) = a Region
Set Variable "region" (3) = a Region
etc... according with the number of regions then you want.
---------------------------------------------------------------------------------------------------
3) Create the seccond trigger: (fig 3)
(Your events and conditions)
Actions:
Variable - Set random_number =(Random integer number between 1 and 4)
Unit - Create 1 Unit for Player at (Center of region[random_number]) facing Default building degress
---------------------------------------------------------------------------------------------------
Done =)
This tutorial has 3 steps:
---------------------------------------------------------------------------------------------------
1) Create 2 variables: (fig1)
Variable 1: Integer variable. You will call it as "random_number"
Variable 2: Region Variable with array with size 1. You will call it as "region"
---------------------------------------------------------------------------------------------------
2) Create the first trigger: (fig2)
Events:
Map Initialization
Actions:
Set Variable "region" (1) = a Region
Set Variable "region" (1) = a Region
Set Variable "region" (3) = a Region
etc... according with the number of regions then you want.
---------------------------------------------------------------------------------------------------
3) Create the seccond trigger: (fig 3)
(Your events and conditions)
Actions:
Variable - Set random_number =(Random integer number between 1 and 4)
Unit - Create 1 Unit for Player at (Center of region[random_number]) facing Default building degress
---------------------------------------------------------------------------------------------------
Done =)
Last edited: