• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Variable help

Status
Not open for further replies.
Level 4
Joined
Jun 4, 2004
Messages
112
This is the code for Employ Mayor

Employ mayor
Events
Unit - A unit enters employmayor <gen>
Conditions
(Owner of Doctor Job 0061 <gen>) Not equal to (Owner of (Triggering unit))
(Owner of Drug Runner Job 0251 <gen>) Not equal to (Owner of (Triggering unit))
(Owner of Join Football Game 0054 <gen>) Not equal to (Owner of (Triggering unit))
(Owner of School Principal Job 0287 <gen>) Not equal to (Owner of (Triggering unit))
(Owner of Lumberjack Job 0068 <gen>) Not equal to (Owner of (Triggering unit))
(Owner of Bank Manager Job 0081 <gen>) Not equal to (Owner of (Triggering unit))
(Owner of McStankys Job 0305 <gen>) Not equal to (Owner of (Triggering unit))
(Owner of Mailman Job 0047 <gen>) Not equal to (Owner of (Triggering unit))
(Owner of Crypt Keeper Job 0235 <gen>) Not equal to (Owner of (Triggering unit))
(Owner of Police Headquarters 0062 <gen>) Not equal to (Owner of (Triggering unit))
(Owner of Mafia Recruitment 0114 <gen>) Not equal to (Owner of (Triggering unit))
(Owner of Drug Machine 0005 <gen>) Not equal to (Owner of (Triggering unit))
(Owner of Hooker/Gigalo Job 0264 <gen>) Not equal to (Owner of (Triggering unit))
(Owner of Mailman Job 0007 <gen>) Not equal to (Owner of (Triggering unit))
(Owner of Mailman Job 0008 <gen>) Not equal to (Owner of (Triggering unit))
(Owner of Lumberjack Job 0009 <gen>) Not equal to (Owner of (Triggering unit))
(Owner of Garbageman Job 0033 <gen>) Not equal to (Owner of (Triggering unit))
(Owner of Garbageman Job 0131 <gen>) Not equal to (Owner of (Triggering unit))
(Owner of Thief Job 1 0101 <gen>) Not equal to (Owner of (Triggering unit))
(Owner of Fireman Job 3 0164 <gen>) Not equal to (Owner of (Triggering unit))
(Owner of Mayor Job 0069 <gen>) Equal to Player 12 (Brown)
((Triggering unit) is A Hero) Equal to True
Actions
Game - Display to (All players) the text: ((Name of (Owner of (Entering unit))) + is now the Mayor. He makes money from taxes that are collected automatically)
Unit - Change ownership of Mayor Job 0069 <gen> to (Owner of (Triggering unit)) and Change color
Set SpamCpunter[(Player number of (Triggering player))] = 0

I will mention that Mayor Job 0069 is not a region, but a variable
This is the code for the job not working

Employ Terrorist
Events
Unit - A unit enters HireTerrorist <gen>
Conditions
(Owner of School Principal Job 0287 <gen>) Not equal to (Owner of (Triggering unit))
(Owner of Join Football Game 0054 <gen>) Not equal to (Owner of (Triggering unit))
(Owner of Fireman Job 3 0164 <gen>) Not equal to (Owner of (Triggering unit))
(Owner of Mailman Job 0008 <gen>) Not equal to (Owner of (Triggering unit))
(Owner of Thief Job 1 0101 <gen>) Not equal to (Owner of (Triggering unit))
(Owner of Lumberjack Job 0009 <gen>) Not equal to (Owner of (Triggering unit))
(Owner of McStankys Job 0305 <gen>) Not equal to (Owner of (Triggering unit))
(Owner of Lumberjack 0064 <gen>) Not equal to (Owner of (Triggering unit))
(Owner of Hooker/Gigalo Job 0264 <gen>) Not equal to (Owner of (Triggering unit))
(Owner of Mafia Recruitment 0114 <gen>) Not equal to (Owner of (Triggering unit))
(Owner of Mailman Job 0007 <gen>) Not equal to (Owner of (Triggering unit))
(Owner of Mailman Job 0047 <gen>) Not equal to (Owner of (Triggering unit))
(Owner of Crypt Keeper Job 0235 <gen>) Not equal to (Owner of (Triggering unit))
(Owner of Police Headquarters 0062 <gen>) Not equal to (Owner of (Triggering unit))
(Owner of Lumberjack Job 0009 <gen>) Not equal to (Owner of (Triggering unit))
(Owner of Drug Machine 0005 <gen>) Not equal to (Owner of (Triggering unit))
(Owner of Bank Manager Job 0081 <gen>) Not equal to (Owner of (Triggering unit))
(Owner of Mafia Leader 0124 <gen>) Not equal to (Owner of (Triggering unit))
(Owner of Lumberjack Job 0068 <gen>) Not equal to (Owner of (Triggering unit))
(Owner of Doctor Job 0061 <gen>) Not equal to (Owner of (Triggering unit))
(Owner of Drug Runner Job 0251 <gen>) Not equal to (Owner of (Triggering unit))
((Triggering unit) is A Hero) Equal to True
Actions
Wait 0.50 seconds
Player - Turn Gives bounty On for (Owner of (Triggering unit))
Game - Display to (All players) the text: ((Name of (Triggering player)) + has become a terrorist, he makes money by killing the cops)


Its changing the ownership of a Circle of Power(the Terrorist Job) to my color, and activating the bounty, but it isnt doing either
 
Level 22
Joined
May 11, 2004
Messages
2,863
Its changing the ownership of a Circle of Power(the Terrorist Job) to my color, and activating the bounty, but it isnt doing either

Okay, so it's NOT changing the circle of power into your team color? I don't see it in the actions anywhere. Add it in there.

Instead of "owner of triggering unit" You can try "triggering player" as far as the bounty problem and see if that changes the results any.
-VGsatomi
 
Status
Not open for further replies.
Top