leave the "player" out and just use the numbers, the 4 dip states as the 1st parameter are indicated in the help dipstate command(case sensitive apparently), i did a very basic test and the player indices are in order from the opponent select screen in galaxy generation, the player as 0 and then 1,2,3 etc in the order so if you have random for more than 1 race you will not be able to tell, i am sure minors are after the majors but unsure of how they would be ordered, i didn't bother myself
Example
dipstate Enemy 0 1
this would make the human player and the 1st opponent that was listed on galaxy creation at war, another example if you wanted the 3rd major listed on creation at war with the let's say 7th then it would be
dipstate Enemy 3 7
You would most likely have to test for the minors to find their indices since there seems to be no way to display the relation so you might want to create a list of the order of opponents on that part of creation for this purpose and save just before testing out indices higher than the number of majors in order to find the minor's indices, hope this helps
edit: slightly more clarification for minor finding