HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Grr, why does this not work?!

10-19-2006, 09:48 PM#1
Nubcookie
Both of these triggers don't work.

edit- fixed first one. ><

Trigger:
Computer Difficulties
Collapse Events
Time - Every 5.00 seconds of game time
Conditions
Collapse Actions
Collapse Player Group - Pick every player in (All players matching ((((Matching player) controller) Equal to Computer) and ((Name of (Picked player)) Equal to Computer (Normal)))) and do (Actions)
Collapse Loop - Actions
Player - Add 2 to (Picked player) Current gold
Game - Display to (All players) the text: Test Works!
Collapse Player Group - Pick every player in (All players matching ((((Matching player) controller) Equal to Computer) and (((Matching player) slot status) Equal to Is playing))) and do (Actions)
Collapse Loop - Actions
Player - Add 4 to (Picked player) Current gold
Game - Display to (All players) the text: Test Works!
10-19-2006, 09:58 PM#2
Fr0zenLord
Well,

Trigger:
Player Group - Pick every player in (All players matching ((((Matching player) controller) Equal to Computer) and (((Matching player) slot status) Equal to Is playing))) and do (Actions)
Collapse Loop - Actions
Player - Add 4 to (Picked player) Current gold
Game - Display to (All players) the text: Test Works!

Is the controller computer? have you set How many players are playing, and hmm anything else not sure
10-19-2006, 10:13 PM#3
aquilla
I think it should be
Trigger:
Player Group - Pick every player in (All players matching ((((Picked player) controller) Equal to Computer) and (((Matching player) slot status) Equal to Is playing))) and do (Actions)
But tbh, I never really used the "matching xx" as adding an if statement was just way easier to get to work :p
10-19-2006, 10:17 PM#4
Fr0zenLord
Nah, because no player is picked yet, your defining "Picked player" before picked player is picked, therefore picked player never gets picked before there is no picked player o_O, you use matching player
10-20-2006, 12:01 AM#5
Nubcookie
I got it to work, thank you. Now how can I detect whether it is a 'Computer Normal' vs a 'Computer Insane' or even a 'Computer Easy'?
10-20-2006, 03:26 AM#6
[VDM]Amn
Trigger:
Events
Conditions
(Melee AI of YourPlayer) Equal to Easy AI
(Melee AI of YourPlayer) Equal to Normal AI
(Melee AI of YourPlayer) Equal to Insane AI
Actions