PoLlama Forums  

Go Back   PoLlama Forums > WarCraft > World Editor Help

Reply
 
LinkBack Thread Tools
Old 01-24-2008   #1
 
DarkBlade's Avatar
 
Join Date: Feb 2007
Location: Paradise City
Posts: 618
DarkBlade will become famous soon enough
Multiple Actions

I'm looking for a way to put multiple "Enters Region" actions into one trigger, but not have them interfere with eachother.

For example, I have a trigger that gives you an item after entering the region, but I also want to make it so that if a hero enters another region, it gives them gold. I just don't want to create triggers for each "Enters Region" action :P

DarkBlade is offline   Reply With Quote
Old 01-24-2008   #2
 
King_Leopold's Avatar
 
Join Date: Apr 2007
Posts: 2,436
King_Leopold is a jewel in the roughKing_Leopold is a jewel in the roughKing_Leopold is a jewel in the rough
Re: Multiple Actions

i dont think i quite follow the question, but ill take a blind stab at it, just use a bunch of if then else statements for each region

just make
Event
Unit enters region
Condition
Unit = heroguy
Actions
If region = region A
Then give triggering unit gold
if region = region B
then kill unit

and so on
King_Leopold is offline   Reply With Quote
Old 01-24-2008   #3
 
DarkBlade's Avatar
 
Join Date: Feb 2007
Location: Paradise City
Posts: 618
DarkBlade will become famous soon enough
Re: Multiple Actions

Ah, I figured it might need I/T/E, but I didn't think there was a Condition involving stuff about Regions, but I found them Thanks.

Off-topic (sort of): If I create a special effect on units to indicate they have a quest, and you need to enter a region to get this quest, how do I destroy the special effect? Since the special effects are created at map initialization, I can't find a way to destroy it once a unit enters the region...

I have this (btw, Quest_Effect[1] is the variable I used to track what special effect needs to be destroyed, it's at map initialization):

Code:
Destroy Effect
    Events
        Unit - A unit enters Secret Gold <gen>
    Conditions
        ((Entering unit) is A Hero) Equal to True
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Hyrul Inner Fire <gen> contains (Entering unit)) Equal to True
            Then - Actions
                Special Effect - Destroy Quest_Effect[1]
            Else - Actions
Does nothing :P


Last edited by DarkBlade; 01-24-2008 at 01:24 PM.
DarkBlade is offline   Reply With Quote
Old 01-24-2008   #4
 
King_Leopold's Avatar
 
Join Date: Apr 2007
Posts: 2,436
King_Leopold is a jewel in the roughKing_Leopold is a jewel in the roughKing_Leopold is a jewel in the rough
Re: Multiple Actions

i believe you want to save the special effect to a variable (of type special effect) when you create it at initialization, then destory the effect set to the variable when the guy enters the region or whatever
King_Leopold is offline   Reply With Quote
Old 01-24-2008   #5
 
DarkBlade's Avatar
 
Join Date: Feb 2007
Location: Paradise City
Posts: 618
DarkBlade will become famous soon enough
Re: Multiple Actions

Well, that didn't work until I replaced the "Secret Gold <gen>" with "Hyrul Inner Fire <gen>", but that makes it so I have to make a trigger for each special effect destroy :P

Is there a way around this?

DarkBlade is offline   Reply With Quote
Old 01-24-2008   #6
 
King_Leopold's Avatar
 
Join Date: Apr 2007
Posts: 2,436
King_Leopold is a jewel in the roughKing_Leopold is a jewel in the roughKing_Leopold is a jewel in the rough
Re: Multiple Actions

i dont follow...
King_Leopold is offline   Reply With Quote
Old 02-18-2008   #7
 
SKuLL09's Avatar
 
Join Date: Feb 2008
Posts: 10
SKuLL09 is an unknown quantity at this point
Re: Multiple Actions

Quote:
Originally Posted by DarkBlade View Post
Well, that didn't work until I replaced the "Secret Gold <gen>" with "Hyrul Inner Fire <gen>", but that makes it so I have to make a trigger for each special effect destroy :P

Is there a way around this?
more lame old topics..

Code:
Destroy Effect
    Events
        Unit - A unit enters Secret Gold <gen>
        Unit - A unit enters Hyrul Inner Fire <gen>
    Conditions
        ((Entering unit) is A Hero) Equal to True
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Hyrul Inner Fire <gen> contains (Entering unit)) Equal to True
            Then - Actions
                Special Effect - Destroy Quest_Effect[1]
            Else - Actions
               If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                   If - Conditions
                       (Secret Gold <gen> contains (Entering unit)) Equal to True
                   Then - Actions
                       Special Effect - Destroy Quest_Effect[2]
                   Else - Actions
                       ...
just use else if's?
SKuLL09 is offline   Reply With Quote
Old 02-18-2008   #8
 
DarkBlade's Avatar
 
Join Date: Feb 2007
Location: Paradise City
Posts: 618
DarkBlade will become famous soon enough
Re: Multiple Actions

I fixed this a long time ago.

DarkBlade is offline   Reply With Quote
Old 02-18-2008   #9
 
Mr. Zero's Avatar
 
Join Date: Sep 2006
Location: Denmark (GMT+1)
Posts: 2,173
Mr. Zero has a reputation beyond reputeMr. Zero has a reputation beyond reputeMr. Zero has a reputation beyond reputeMr. Zero has a reputation beyond reputeMr. Zero has a reputation beyond reputeMr. Zero has a reputation beyond reputeMr. Zero has a reputation beyond reputeMr. Zero has a reputation beyond reputeMr. Zero has a reputation beyond reputeMr. Zero has a reputation beyond reputeMr. Zero has a reputation beyond repute
Re: Multiple Actions

Also don't nest those damn if/then/else actions. Use a loop if possible.
Mr. Zero is offline   Reply With Quote
Old 02-19-2008   #10
 
SKuLL09's Avatar
 
Join Date: Feb 2008
Posts: 10
SKuLL09 is an unknown quantity at this point
Re: Multiple Actions

well **** ok darkblade
SKuLL09 is offline   Reply With Quote
Old 02-19-2008   #11
 
MrOrange's Avatar
 
Join Date: Dec 2006
Posts: 2,992
MrOrange has a reputation beyond reputeMrOrange has a reputation beyond reputeMrOrange has a reputation beyond reputeMrOrange has a reputation beyond reputeMrOrange has a reputation beyond reputeMrOrange has a reputation beyond reputeMrOrange has a reputation beyond reputeMrOrange has a reputation beyond reputeMrOrange has a reputation beyond reputeMrOrange has a reputation beyond reputeMrOrange has a reputation beyond repute
Re: Multiple Actions

Usually topics over 2 weeks old are solved. Which is why we allow bumps in The World Editor Help Zone. Like once every one or two weeks. Just for future reference.
MrOrange is offline   Reply With Quote
Reply

Thread Tools

Posting Rules
You may post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Commands on map sebaudy World Editor Help 17 11-11-2007 11:34 PM
My game is crashing more and more often... Aro2220 World Editor Help 27 11-03-2007 08:17 AM
Respawning + Hero Selection on Circle DarkBlade Tutorials 4 09-07-2007 07:56 PM
Footmen? StNicholas World Editor Help 13 01-12-2007 11:12 PM


All times are GMT -5. The time now is 09:44 PM.

A friend of Wc3Happy
Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165