- Joined
- Mar 17, 2008
- Messages
- 150
Tutorial by: SkyTainted or underscore and
DieHard@Azeroth
INTRODUCTION: Hi, this is my
third tutorial and the topic is tree revival system. Tree
Revival occurs when you chop down or put down a tree. In a
matter of seconds the tree grows back. I guess Keeper of the
Grove got angry. Let's Start!
Part One: Variables
Before we're going to create triggers, let's create
variables. We only need one variable for this type of
tutorial.
1.)"Variable Name"=Real
We're done! I labeled mine "TreeReviveInt" and made it into
a real variable.
Part Two:Trigger One
Trigger one is the initialization. In this trigger, we're
going to use the variable we just created now. The variable
sets the time in which the tree will revive.
For the event:
General-->Set Variables then click on the variable we just
created. Now for the value, we set it to "time you want to
revive trees"
For the actions:
what type of trees you're going to chop down. It's very
simple so I'll just post it up..
For the continuing actions:
the map.
For the Then-actions, we're going to add the trees that you
just put to the revival trigger.
For the Then-Actions:
Part Three: Second Trigger
For the second trigger, you might be able to do this on your
own.
For the actions, we're going to use the variable time in the
General-->Wait. So it could know when it will revive. The
other action revives the tree without question. I'll post it
up for you.
For the Actions:
FINISH!
DieHard@Azeroth
INTRODUCTION: Hi, this is my
third tutorial and the topic is tree revival system. Tree
Revival occurs when you chop down or put down a tree. In a
matter of seconds the tree grows back. I guess Keeper of the
Grove got angry. Let's Start!
Part One: Variables
Before we're going to create triggers, let's create
variables. We only need one variable for this type of
tutorial.
1.)"Variable Name"=Real
We're done! I labeled mine "TreeReviveInt" and made it into
a real variable.
Part Two:Trigger One
Trigger one is the initialization. In this trigger, we're
going to use the variable we just created now. The variable
sets the time in which the tree will revive.
For the event:
-
Events
- Map initialization
General-->Set Variables then click on the variable we just
created. Now for the value, we set it to "time you want to
revive trees"
For the actions:
-
Actions
- -------- Set the time you want to revive the trees
-
--------
- Set TreeReviveInt = 5.00
what type of trees you're going to chop down. It's very
simple so I'll just post it up..
For the continuing actions:
- Destructible - Pick every destructible in (Playable
-
map area) and do (Actions)
-
Loop - Actions
- If (All Conditions are True) then do (Then Actions)
-
Loop - Actions
-
else do (Else Actions)
-
If - Conditions
-
Or - Any (Conditions) are true
-
Conditions
- (Destructible-type of (Picked
-
Conditions
-
Or - Any (Conditions) are true
-
If - Conditions
- destructible)) Equal to Ashenvale Tree Wall ----Take that
- for example----
- (Create more Tree types.)
the map.
For the Then-actions, we're going to add the trees that you
just put to the revival trigger.
For the Then-Actions:
-
Then - Actions
- Trigger - Add to ReviveTrees <gen> the event
- (Destructible - (Picked destructible) dies)
Part Three: Second Trigger
For the second trigger, you might be able to do this on your
own.
For the actions, we're going to use the variable time in the
General-->Wait. So it could know when it will revive. The
other action revives the tree without question. I'll post it
up for you.
For the Actions:
-
Actions
- Wait TreeReviveInt seconds
- Destructible - Resurrect (Dying destructible) with
- 1000000000.00 life and Show birth animation
FINISH!
Last edited: