Warcraft III resources & community, 2003–2006 · archived

Lumber Foresting

19 posts
#1

Lumber Foresting

Can someone post the trigger where I can regrow trees for a Treebase game...like (PlayerRed1 Says...Forest...all trees in Region2 are created???
#2
Events:
Player 1 types: Forest as an excact match.

Conditions: -

Actions: Pick every destructible in 'Rect' and do action: if then else; if destructible type of picked destructible = 'tree' then action: resurrect picked destructible, else action: do nothing.
#3

Failure

For soem odd reason it won't work...
#4
Were u player that ativates the trigger? I make that mistake 2 sometimes.

If that doesnt work, I dunno. At me it works :P
#5
Post your trigger code!
#6

Trigger Code

Events- Player1Red types chatmessage containing Treebase as an exactmatch.

Condition-

Action- Destrucible:Pick every Destrucible in Treebase <gen> and do [Actions]
Loop-Actions
If ((Destrucible-type of Summer Tree Wall 0187 <gen>)
equal to Summer Tree Wall) Then do (Destrucible -Resurrect (Last created Destrucible)
#7
You problem is in the last line
If ((Destrucible-type of Summer Tree Wall 0187 <gen>)
equal to Summer Tree Wall) Then do (Destrucible -Resurrect (Last created Destrucible)

It shouldn't be last created destructible, it should be picked destructible.

Oh, and this should be in the Maps forum.

*MOVED*
#8

OMFG

It still won't work...I want like have of the map's tree's to grow back...
#9
Oh, you also have another problem in that line
If ((Destrucible-type of Summer Tree Wall 0187 <gen>)
equal to Summer Tree Wall) Then do (Destrucible -Resurrect (Last created Destrucible)

It says Destrucible-type of Summer Tree Wall 0187 <gen> where it should say Destrucible-type of picked destructible.

And next time when you copy a trigger for us to see, just right click the trigger name and click Copy as Text.
#10

Thank God for Mods.

Player - Player 1 (Red) types a chat message containing treebase as An exact match

Destructible - Pick every destructible in Treebase <gen> and do (Actions)
Loop - Actions
If ((Destructible-type of (Picked destructible)) Equal to Summer Tree Wall) then do (Destructible - Resurrect (Picked destructible) with 100.00 life and Show birth animation) else do nothing
#11
hm... if you do exactly what i wrote, it should work. i know u have almost the same - but almost. Try to check ALL i wrote. Because i tested it already and it works fine.

-Check if you have set the correct rect
-set if-then-else with multiple actions
-check if you write a chat 'treebase' that in editor isnt set the message to 'Treebase', thats a difference.

EVENT:

Player 1 types a chat massage containing treebase as an exact match

CONDITIONS:

ACTIONS:

Destructible-Pick every destructible in Treebase<gen> and do actions
  -loop actions
     - if all conditions are true then do actions else do actions
         -if destructible type of picked destructible equal to summer tree wall
         -then destructible resurrect picked destructible with max life of picked destructible and show birth animation


as i said, i tested it - should work properly... :wink:


EDIT: and btw... WHAT doesnt work at you? does nothing or does only some doodads resurrect or something else???
#12

reply

It won't resurrect any trees when i type in Treebase.
#13
hm... ok. Maybe you can send me the map via e-mail and i will check it for you whats wrong....

my adress is: [email protected]
#14

Sry, My email doesn;t work

SRY here is what i got so far...

Player - Player 1 (Red) types a chat message containing treebase as An exact match

Destructible - Pick every destructible in Treebase <gen> and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Destructible-type of (Picked destructible)) Equal to Summer Tree Wall
Then - Actions
Destructible - Resurrect (Picked destructible) with (Max life of (Picked destructible)) life and Show birth animation
Else - Actions
(Destructible-type of (Picked destructible)) Equal to Summer Tree Wall
Destructible - Resurrect (Picked destructible) with (Max life of (Picked destructible)) life and Show birth animation
#15
first: you dont need the -else function, trust me.

second: uhm.. and does it work now? cz thats the same as i wrote?

well if not, you can send me the map via email if you want so.... cz there must be another reason for that. :?