- Joined
- Nov 6, 2011
- Messages
- 44
[Solved] How do I make this trigger more efficient?
The array is [10] taken from its name, "Village 0010", so that it will be easier to find it as I edit the map. That number will also serve as its ID(There is a separate variable for that called ProvinceID).
Now, I was thinking, how do I make the trigger more efficient so that I don't have to keep putting that ID number in the place where you enter the array number four times for each province(As you can see it says "10" four times in the trigger)? What can I do to reduce the number of times I have to enter it?
-
British Isles
-
Events
- Map initialization
- Conditions
-
Actions
- Set Province[10] = Village 0010 <gen>
- Set ProvincePoint[10] = ((Position of Province[10]) offset by (-50.00, -50.00))
- Set ProvinceName[10] = London
-
Events
The array is [10] taken from its name, "Village 0010", so that it will be easier to find it as I edit the map. That number will also serve as its ID(There is a separate variable for that called ProvinceID).
Now, I was thinking, how do I make the trigger more efficient so that I don't have to keep putting that ID number in the place where you enter the array number four times for each province(As you can see it says "10" four times in the trigger)? What can I do to reduce the number of times I have to enter it?
Last edited: