- Joined
- Jun 3, 2018
- Messages
- 17
How can I make 3 allied players all share food use and food cap?
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Food changeMax

Events

Conditions

Actions


Trigger - Turn off (This trigger)


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






((Picked player) is an ally of (Triggering player)) Equal to True





Then - Actions






Player - Set (Picked player) Food cap to ((Triggering player) Food cap)





Else - Actions


Trigger - Turn on (This trigger)
Food change

Events

Conditions

Actions


Trigger - Turn off (This trigger)


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






((Picked player) is an ally of (Triggering player)) Equal to True





Then - Actions






Player - Set (Picked player) Food used to ((Triggering player) Food used)





Else - Actions


Trigger - Turn on (This trigger)
Food Sync Init

Events


Map initialization

Conditions

Actions


Player Group - Pick every player in (All players) and do (Actions)



Loop - Actions




Trigger - Add to Food change <gen> the event (Player - (Picked player)'s Food used becomes Not equal to 0.00)




Trigger - Add to Food change <gen> the event (Player - (Picked player)'s Food used becomes Equal to 0.00)




Trigger - Add to Food changeMax <gen> the event (Player - (Picked player)'s Food cap becomes Not equal to 0.00)




Trigger - Add to Food changeMax <gen> the event (Player - (Picked player)'s Food cap becomes Equal to 0.00)
Like I said I copied them exactly, was there something I was supposed to add or change?hard to tell without having seen your triggers.
That would be the problem then. The slots are left open and shared control lets me see their food. Would testing it with computers in the slots work? If players leave will the trigger stop working? If I leave slots open/closed when hosting will the triggers not work?can not see a misstake, wierd it works for me.
Are your players allied and the slots of the players beeing used?
As I remember corretly all Players only contains used slots.