Car Buying...

aki15

New Member
Reaction score
5
I'm Making some Life map so i need help with this:
-Player wants to buy car.
-He must have 1500 gold to buy.
-Player Enters Region with 1500 gold and car will create in car spawn region.
-If player doesn't have 1500 trigger won't work?
Any help? Here's my trigger :
Trigger:
  • Car
    • Events
      • Unit - A unit enters Car <gen>
    • Conditions
      • ((Owner of (Entering unit)) Current gold) Equal to (Random integer number between 1500 and 1000000000)
    • Actions
      • Unit - Create 1 Car for (Owner of (Entering unit)) at (Center of Car Spawn <gen>) facing Default building facing degrees
      • Player - Set (Owner of (Entering unit)) Current gold to (((Owner of (Entering unit)) Current gold) - 1500)
 

Nherwyziant

Be better than you were yesterday :D
Reaction score
96
Replace your condition with this

Trigger:
  • ((Owner of (Entering unit)) Current gold) Greater than or equal to 1500


Your condition is checking equally if it's (random number between 1500 to 100000000)

So if the random number turns, 1809255, it's not equal to 1500
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top