Speaker is in need of help

Speaker

Premium Member
Joined
Jun 20, 2003
Messages
2,808
Reaction score
2
Location
Computer
ok..let's see.....I want this completed:

Unit enters region, a castle right next to it changes owner to triggering unit. (i already have this done).

There are 3 of these regions, and when someone gets all three under their control i want it to give them a point on the leader board and to reset all ownerships.

Thanks you thilly gooses:butterfly
 

Garthrs

Member!
Joined
Aug 3, 2003
Messages
130
Reaction score
0
Location
Usually buried at work
Website
Visit site
four variables

3 boolean arrays with size of players
Owned1
Owned2
Owned3

1 integer array with size of players
Owned

Then this trigger:

Owned
Events
Unit - A unit enters Region 000 <gen>
Unit - A unit enters Region 001 <gen>
Unit - A unit enters Region 002 <gen>
Conditions
Actions
Player Group - Pick every player in (All players) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Owned1[(Player number of (Picked player))] Equal to True
Owned2[(Player number of (Picked player))] Equal to True
Owned3[(Player number of (Picked player))] Equal to True
Then - Actions
Set Owned[(Player number of (Picked player))] = (Owned[(Player number of (Picked player))] + 1)
Leaderboard - Change the value for (Picked player) in (Last created leaderboard) to Owned[(Player number of (Picked player))]
Leaderboard - Sort (Last created leaderboard) by Value in Descending order
Set Owned1[(Player number of (Picked player))] = False
Set Owned2[(Player number of (Picked player))] = False
Set Owned3[(Player number of (Picked player))] = False
Else - Actions
Do nothing


My regions were named 000, 001, and 002 but you will need to replace them with yours. Let me know how it goes...
 

Speaker

Premium Member
Joined
Jun 20, 2003
Messages
2,808
Reaction score
2
Location
Computer
umm...wow. I don't fully understand that...hmm, also how do you reset the owners? like when all three are taken over they switch back to default owners.
 

Garthrs

Member!
Joined
Aug 3, 2003
Messages
130
Reaction score
0
Location
Usually buried at work
Website
Visit site
Originally posted by Garthrs
four variables

3 boolean arrays with size of players
Owned1
Owned2
Owned3

1 integer array with size of players
Owned

Then this trigger:

Owned
Events
Unit - A unit enters Region 000 <gen>
Unit - A unit enters Region 001 <gen>
Unit - A unit enters Region 002 <gen>
Conditions
Actions
Player Group - Pick every player in (All players) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Owned1[(Player number of (Picked player))] Equal to True
Owned2[(Player number of (Picked player))] Equal to True
Owned3[(Player number of (Picked player))] Equal to True
Then - Actions
Set Owned[(Player number of (Picked player))] = (Owned[(Player number of (Picked player))] + 1)
Leaderboard - Change the value for (Picked player) in (Last created leaderboard) to Owned[(Player number of (Picked player))]
Leaderboard - Sort (Last created leaderboard) by Value in Descending order
Set Owned1[(Player number of (Picked player))] = False
Set Owned2[(Player number of (Picked player))] = False
Set Owned3[(Player number of (Picked player))] = False
Else - Actions
Do nothing


My regions were named 000, 001, and 002 but you will need to replace them with yours. Let me know how it goes...
Reset is in the then where it sets all three owned back to false for player... What don't you understand? I'll expand on it..
 

Speaker

Premium Member
Joined
Jun 20, 2003
Messages
2,808
Reaction score
2
Location
Computer
o, ok thank you very muihc man, i suckl at variables lol.
 

Speaker

Premium Member
Joined
Jun 20, 2003
Messages
2,808
Reaction score
2
Location
Computer
sry for double post... -_-

Hey, could you give me your AIM s/n so i acn send u the map privately b/c i cant seem to find some of the if/then/else triggs, thanks in advance :):)
 

Speaker

Premium Member
Joined
Jun 20, 2003
Messages
2,808
Reaction score
2
Location
Computer
Tripple post..... SRY!! but i really need an answer...so stfu alrdy :)

Can you explain how to get to these triggs, i can't seem to find some. like tell me where exactly to go.
 

Speaker

Premium Member
Joined
Jun 20, 2003
Messages
2,808
Reaction score
2
Location
Computer
If - Conditions
Owned1[(Player number of (Picked player))] Equal to True
Owned2[(Player number of (Picked player))] Equal to True
Owned3[(Player number of (Picked player))] Equal to True
Then - Actions
Set Owned[(Player number of (Picked player))] = (Owned[(Player number of (Picked player))] + 1)
Leaderboard - Change the value for (Picked player) in (Last created leaderboard) to Owned[(Player number of (Picked player))]
Leaderboard - Sort (Last created leaderboard) by Value in Descending order
Set Owned1[(Player number of (Picked player))] = False
Set Owned2[(Player number of (Picked player))] = False
Set Owned3[(Player number of (Picked player))] = False
Else - Actions
Do nothing
 

New threads

Top