HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Plz Help me dear god

03-18-2004, 07:38 PM#1
ViciousArtist
I want to make a trigger system where when you build in a region you take control of the region, thus you get money over time for the region. If anyone could help it would be great, also if there is a thread up already about this ppplllzzz point me to it.
03-18-2004, 10:26 PM#2
HEZZA
Take control of a region?
no regions are player owned.
03-18-2004, 10:36 PM#3
ThyFlame
Every x seconds check if a building is in the region

Give the owner of that building in that region a certain amount of resources. If more than one player has built in it, whoever has more could get the resources, or if equal both, or none.

Not too hard afaik.
03-18-2004, 10:39 PM#4
Aznwhore
cannot own a region:

Condtion: (player) commands a (structure) on (region)
Action: Give player (x) gold
Wait (time)
03-19-2004, 12:30 AM#5
ViciousArtist
Yes that is what i want to do but the conditions and events dont work can you tell me exactly what you use b/c i dont see the conditions you guys speak of i been trying it for 2 days now :( so all help is very appriated. I didnt really mean own the region, i meant you have ctrl of the area.
03-19-2004, 03:05 AM#6
cangrejo
Quote:
Originally Posted by ViciousArtist
Yes that is what i want to do but the conditions and events dont work can you tell me exactly what you use b/c i dont see the conditions you guys speak of i been trying it for 2 days now :( so all help is very appriated. I didnt really mean own the region, i meant you have ctrl of the area.

Code:
Event: Every 10 seconds of the game
Condition NADA
Actions: Pick every unit in Region1 matching condition (Matching Unit is a structure == True)(this is a boolean comparison) and do - Player - Property, change (Owner of picked unit)'s current gold to ((Owner of picked unit)'s current gold) + 1

Then you do the same for Region2 Region3 etc. or whatver you named your regions, and of course you can change the values and the 10 seconds to something else, good luck!
03-19-2004, 04:06 AM#7
ViciousArtist
Thank you so much you are my savior!!!