Hello,
I'm seeking on creating a MOD where the Galactic Emperor has the authority to solely dictate wether a law passes or does not via two new buttons introduced on the Senate Floor named "Pass", "Deny".
I have both buttons the galactic_community_view.gui file already in place and clicking it works for the resolutions that DO NOT have a target.
However, that being said, targeted resolutions do NOT work because I can NOT figure out how to retrieve the resolutions "target" using any of the available scopes. Every scope I've tried and that I can think of point to my country (player country) and NOT the country who proposed the law.
Here's how I got my MOD "working" so far.
1. I added the `effectButtonType` buttons for "Pass Resolution" and "Deny Resolution" on the galactic_community_view.gui file.
2. I linked the button effects I wrote for my MOD on the `effect` parameter on the two new buttons.
3. The "Pass Resolution" button effects run a switch statement against the trigger is_voting_on_resolution and calls either of the scripted effects: "my_scripted_passed_resolution_effect" or "my_scripted_passed_targeted_resolution_effect".
4. The "Deny Resolution" button effects run a switch statement against the trigger is_voting_on_resolution and calls either of the scripted effects: "my_scripted_deny_resolution_effect" or "my_scripted_deny_targeted_resolution_effect".
5. Galactic Resolutions that DO NOT have a TARGET work fine, both buttons work great. However, the issue is with targeted resolutions like a Council Denouncement. I can not figure out how to extract/get the country who proposed the Resolution in question. So what leaves me blocked until I figure this out.
Here is the current scripted event that is executed when the "Pass Resolution" button is clicked on the Senate Floor for a targeted Resolution:
I've also attached a screenshot of my MOD.
I'm seeking on creating a MOD where the Galactic Emperor has the authority to solely dictate wether a law passes or does not via two new buttons introduced on the Senate Floor named "Pass", "Deny".
I have both buttons the galactic_community_view.gui file already in place and clicking it works for the resolutions that DO NOT have a target.
However, that being said, targeted resolutions do NOT work because I can NOT figure out how to retrieve the resolutions "target" using any of the available scopes. Every scope I've tried and that I can think of point to my country (player country) and NOT the country who proposed the law.
Here's how I got my MOD "working" so far.
1. I added the `effectButtonType` buttons for "Pass Resolution" and "Deny Resolution" on the galactic_community_view.gui file.
2. I linked the button effects I wrote for my MOD on the `effect` parameter on the two new buttons.
3. The "Pass Resolution" button effects run a switch statement against the trigger is_voting_on_resolution and calls either of the scripted effects: "my_scripted_passed_resolution_effect" or "my_scripted_passed_targeted_resolution_effect".
4. The "Deny Resolution" button effects run a switch statement against the trigger is_voting_on_resolution and calls either of the scripted effects: "my_scripted_deny_resolution_effect" or "my_scripted_deny_targeted_resolution_effect".
5. Galactic Resolutions that DO NOT have a TARGET work fine, both buttons work great. However, the issue is with targeted resolutions like a Council Denouncement. I can not figure out how to extract/get the country who proposed the Resolution in question. So what leaves me blocked until I figure this out.
Here is the current scripted event that is executed when the "Pass Resolution" button is clicked on the Senate Floor for a targeted Resolution:
Code:
my_scripted_passed_targeted_resolution_effect = {
log = "root scope is \\[Root.GetName]"
pass_targeted_resolution = {
resolution = $RESOLUTION$
target = root
}
}
I've also attached a screenshot of my MOD.
Attachments
Last edited: