I would like to create a unit with a specific action. I have already done it with Bombard 1,2 and 3, but not with 'User Action 1'.
In the 'sandbox' rule, 'Disrupt Supply Lines' is already configured, but it does not appear in the list of actions.
Has anyone managed to make this action (Disrupt Supply Lines) work?
I believe you only have to take a unit with the flag "SupplyLines", press the key 'D' and click in other unit (enemy in range).
So the action 'Disrupt Supply Lines' will show in a dialog box with others options (maybe 'disband unit', 'wait', 'do nothing', etc)
Is that right?
My idea is to create a unit that reduces corruption in the city, even if it is only for one turn, and after that the unit is lost.
I also have other actions in mind, such as making an artist that increases luxury, among others.
BUT THE ACTION NEVER APPEARS IN THE LIST OF ACTIONS, (after pressing the 'D' key or entering the city).
Not even in Menu Multiplayer/Defaul action for city
Im using 3.1 beta4 now. (yeah released yesterday) But I tested in beta3 too
And just for remind. 4 actions is not enough. Can anyone tell to the developers to Pleeease make it 10 at least ..
I have so many ideas to play with my friends, so many other custom actions
Well, here what i have so far:
Flag 'Lawman' created in file units.ruleset
Code: Select all
[control]
flags =
{ "name", "helptxt"
...
_("Lawman")
...
}
Code: Select all
[unit_marshall]
name = _("Marshall")
flags = "Lawman"
File: game.ruleset
Code: Select all
; /* TRANS: _Reduce Crime (100% chance of success). */
ui_name_user_action_1 = _("%sReduce Crime%s")
user_action_1_target_kind = "City"
user_action_1_min_range = 1
user_action_1_max_range = 1
user_action_1_actor_consuming_always = TRUE
I tried to remove the 'target_reqs' attribute, and other things
Code: Select all
[actionenabler_marshall]
action = "User Action 1"
actor_reqs =
{ "type", "name", "range", "present"
"UnitFlag", "Lawman", "Local", TRUE
"MinMoveFrags", "1", "Local", TRUE
}
target_reqs =
{ "type", "name", "range", "present"
"CityTile", "Center", "Local", TRUE
}
Code: Select all
[effect_reduce_crime]
type = "Output_Waste_Pct"
value = -50
reqs =
{ "type", "name", "range"
"Action", "User Action 1", "Local"
"OutputType", "Shield", "Local"
}
What Am i doing wrong folks?
Thanks