Posted this in the wrong forum, was busy making dinner, but I did have some free time while I was waiting for condition (Water is Boiling) == finished, so here you go.
Chicken Lime Tacos
Events
Player - Player 1 Hunger changes
Local Variables
Pot = (Empty unit group) <Unit Group>
Tacos = (Empty unit group) <Unit Group>
Conditions
(Status of player 1) == Hungry
Actions
Unit - Create 1 Corn Tortilla for player 1 at Stove using default facing (No Options)
Unit - Create 2 Water for player 1 at Measuring Cup using default facing (No Options)
Unit - Order (Last created unit) to ( Move targeting units in Pot) (Replace Existing Orders)
Unit Group - Add (Last created unit) to Pot
Environment - Execute Heat at Stove from player 1
Unit - Create 2 Chicken for player 1 at Cutting Board using default facing (No Options)
Unit - Order Knife to ( Attack targeting (Last created unit)) (Replace Existing Orders)
General - Wait for (Conditions), checking every 1.0 Real Time seconds
Conditions
(Chicken is Cut) == finished
Unit - Order (Last created unit) to ( Move targeting units in Pot) (Replace Existing Orders)
Unit Group - Add (Last created unit) to Pot
Unit - Create 1 Lime Juice for player 1 at Pot using default facing (No Options)
Unit Group - Add (Last created unit) to Pot
Unit - Create 1 Garlic Clove (Minced) for player 1 at Pot using default facing (No Options)
Unit Group - Add (Last created unit) to Pot
Unit - Create 1 Red Wine Vinegar for player 1 at Pot using default facing (No Options)
Unit Group - Add (Last created unit) to Pot
General - Wait for (Conditions), checking every 1.0 Real Time seconds
Conditions
(Water is Boiling) == finished
Unit Group - Remove Water from Pot
General - Wait for (Conditions), checking every 1.0 Real Time seconds
Conditions
(Chicken is Brown) == finished
Unit - Order Pot to ( Move targeting Stove) (Replace Existing Orders)
Unit Group - Add (Last created unit) to Tacos
General - Wait for (Conditions), checking every 1.0 Real Time seconds
Conditions
(Corn Tortilla is Warm) == finished
Unit - Order (Last created unit) to ( Move targeting Plate) (Replace Existing Orders)
Unit Group - Pick each unit in Pot and do (Actions)
Actions
Unit - Order (Picked unit) to (Load targeting units in Tacos) (Replace Existing Orders)
Unit Group - Add (Picked unit) to Tacos
Unit - Create 1 Hearts of Romain Lettuce (Chopped) for player 1 at (Position of Corn Tortilla) using default
facing (No Options)
Unit Group - Add (Last created unit) to Tacos
Unit - Create 1 Cheese (Grated) for player 1 at (Position of Corn Tortilla) using default facing (No Options)
Unit Group - Add (Last created unit) to Tacos
General - If (Conditions) then do (Actions) else do (Actions)
If
(Status of player 1) == Likes Spicy
Then
Unit - Create 1 Salsa for player 1 at (Position of Corn Tortilla) using default facing (No Options)
Unit Group - Add (Last created unit) to Tacos
Unit - Order Player to (Nom nom nom targeting units in Tacos) (Replace Existing Orders)
Else
Unit - Order Player to (Nom nom nom targeting units in Tacos) (Replace Existing Orders)
Edit: Replaced the eat order with the Nom nom nom order.
Halp pleeaze, I duplicated all tha unit like you did but it didnt show up on my map. Smt just pop up saying my Eat abilty need a valid target. What I'm I doing wrong ??
That's because I didn't upload my map. It contains the proper abilities, models, locations, etc.
BTW, you're awesome at triggers, could you take a look at my trigger check thread regarding the attachment of an actor through triggers pzl? I m nub and it's not removing the actor.
Posted this in the wrong forum, was busy making dinner, but I did have some free time while I was waiting for condition (Water is Boiling) == finished, so here you go.
Chicken Lime Tacos
Events
Player - Player 1 Hunger changes
Local Variables
Pot = (Empty unit group) <Unit Group>
Tacos = (Empty unit group) <Unit Group>
Conditions
(Status of player 1) == Hungry
Actions
Unit - Create 1 Corn Tortilla for player 1 at Stove using default facing (No Options)
Unit - Create 2 Water for player 1 at Measuring Cup using default facing (No Options)
Unit - Order (Last created unit) to ( Move targeting units in Pot) (Replace Existing Orders)
Unit Group - Add (Last created unit) to Pot
Environment - Execute Heat at Stove from player 1
Unit - Create 2 Chicken for player 1 at Cutting Board using default facing (No Options)
Unit - Order Knife to ( Attack targeting (Last created unit)) (Replace Existing Orders)
General - Wait for (Conditions), checking every 1.0 Real Time seconds
Conditions
(Chicken is Cut) == finished
Unit - Order (Last created unit) to ( Move targeting units in Pot) (Replace Existing Orders)
Unit Group - Add (Last created unit) to Pot
Unit - Create 1 Lime Juice for player 1 at Pot using default facing (No Options)
Unit Group - Add (Last created unit) to Pot
Unit - Create 1 Garlic Clove (Minced) for player 1 at Pot using default facing (No Options)
Unit Group - Add (Last created unit) to Pot
Unit - Create 1 Red Wine Vinegar for player 1 at Pot using default facing (No Options)
Unit Group - Add (Last created unit) to Pot
General - Wait for (Conditions), checking every 1.0 Real Time seconds
Conditions
(Water is Boiling) == finished
Unit Group - Remove Water from Pot
General - Wait for (Conditions), checking every 1.0 Real Time seconds
Conditions
(Chicken is Brown) == finished
Unit - Order Pot to ( Move targeting Stove) (Replace Existing Orders)
Unit Group - Add (Last created unit) to Tacos
General - Wait for (Conditions), checking every 1.0 Real Time seconds
Conditions
(Corn Tortilla is Warm) == finished
Unit - Order (Last created unit) to ( Move targeting Plate) (Replace Existing Orders)
Unit Group - Pick each unit in Pot and do (Actions)
Actions
Unit - Order (Picked unit) to (Load targeting units in Tacos) (Replace Existing Orders)
Unit Group - Add (Picked unit) to Tacos
Unit - Create 1 Hearts of Romain Lettuce (Chopped) for player 1 at (Position of Corn Tortilla) using default
facing (No Options)
Unit Group - Add (Last created unit) to Tacos
Unit - Create 1 Cheese (Grated) for player 1 at (Position of Corn Tortilla) using default facing (No Options)
Unit Group - Add (Last created unit) to Tacos
General - If (Conditions) then do (Actions) else do (Actions)
If
(Status of player 1) == Likes Spicy
Then
Unit - Create 1 Salsa for player 1 at (Position of Corn Tortilla) using default facing (No Options)
Unit Group - Add (Last created unit) to Tacos
Unit - Order Player to (Nom nom nom targeting units in Tacos) (Replace Existing Orders)
Else
Unit - Order Player to (Nom nom nom targeting units in Tacos) (Replace Existing Orders)
Edit: Replaced the eat order with the Nom nom nom order.
I'm just going to post my reply here and pretend the other thread never happened. What other thread?
You forgot the most important action, ye noob
Trigger - Run Om Nom Nom
Halp pleeaze, I duplicated all tha unit like you did but it didnt show up on my map. Smt just pop up saying my Eat abilty need a valid target. What I'm I doing wrong ??
@progammer: Go
That's because I didn't upload my map. It contains the proper abilities, models, locations, etc.
BTW, you're awesome at triggers, could you take a look at my trigger check thread regarding the attachment of an actor through triggers pzl? I m nub and it's not removing the actor.