"Conditions" Help

K

Katkookies

Guest
I can't find this condition for that I want to say, Unit has this item, Help?
 
K

Katkookies

Guest
Also!

I was wondering, I want like the idea of a Loap with the Jobs, and when you step into an region, you get the job and all other sorts of stuff, but I also have when he enters the area again, he can quit the job. Problem is, that when he enters the region to get the job, He gets the job, and then loses the job! What CAN THE DO??!?!? :banghead:
 

Wark

Animal
Reaction score
27
Ok you'll need two triggers to do this.

(I chose the mayor job in LOAP for the example)

1.
Code:
Event
     Unit - A unit enters mayorjobregion <gen>
Condition
(you can add conditions like *unit does not own *mail man job*)
Action
Unit - Change ownership of Mayor Job <gen> to (Owner of (Triggering unit)) and Change color

This is to get the job, the second one is to drop the job:

Code:
Event
     Unit - A unit enters mayorjobregion <gen>
Condition
(Owner of Mayor Job <gen>) Equal to (Owner of (Triggering unit))
Action
Wait 0.50 seconds
Unit - Change ownership of Mayor Job <gen> to Player 12 (Brown) and Change color

"Mayor Job" would be the power circle
and "mayorjobregion" would be the region you go to to get the job.

Hope that helps,

- Waaaark

PS: Dont double post, there is an edit button.
 

mems

Memory Lapse
Reaction score
24
1st - never double post edit your own instead
2nd - What is job? We cannot know what you are doing with triggers from looking here but if you can post your trigger we can do something for you
 
K

Katkookies

Guest
...

Also, I have too comfirm my e-mail address, until then I can't edit my posts...But I have another question...First look at the Trigger:

Events
-Unit enters a region

Conditions
-(Owner of (Triggering Unit)) Equal to (Owner of Circle of Power)
-((Triggering Unit) has an item type Bread) Equal to True

Actions
-Player- Add 50 Gold to (Owner of (Triggering Unit)) Current Gold
- PROBLEM (Discussed after)
-Player- Add 2 to Player 2 (Blue) Food Max
-Item- Create Bread at (Center of Region)


Mostly this is for a Bakery Job, and if a unit enters this region and works at the Bakery, He gets 50 Gold, Gives Blue 2 Food, and then creates another bread back at the bakery. What THE PROBLEM is is that I need a trigger that will remove the bread the unit is carrying, but I can only pick:

-Item- Remove LAST CREATED ITEM

I want to change that to the type BREAD!

:banghead: :banghead: Thanks in advance
 

the Lumpy

►►►
Reaction score
53
Katkookies said:
What THE PROBLEM is is that I need a trigger that will remove the bread the unit is carrying, but I can only pick:

-Item- Remove LAST CREATED ITEM
You need to set the item to a variable when you create it:
Code:
Item - Create Bread at (Center of Region)
Set CurrentBread = (Last created item)
And then you can remove it later:
Code:
Item - Remove CurrentBread
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top