Page 1 of 1

Bug in select unit script?

Posted: Sun Sep 25, 2011 4:50 am
by Grymme
A couple of issues.

- When i use the select unit in combination with execaddreinforcments it adds the reinforcments to the hex that was selected before i play an actioncard and select the unit. So if i am selecting X1Y1 and then go into the actioncard screen and play an actioncard that requires me to select an hex and then select X2Y100 it will still send the unit to X1Y1.

- Another possible issue is if there is something wrong with the saving of changes in the editor. I cannot put my foot on it but numerous times i have changed simple things only to have the same bug appear in later versions again (am talking about things like changing sprites or values in an SFT) . The example i can give you clearest is that changing the starting regime and then saving it almost never works (i know this feature is in beta). Another explanation is that i might be getting senile, but its very strange.

RE: Bug in select unit script?

Posted: Tue Sep 27, 2011 11:05 am
by Vic
Hi,

1) you should use areaslot =0, areaval =x instead of select unit = true in the actioncard settings and then use tempvar2, tempvar3 as X,Y input in the finally called event. If you use ExecGiveReinforcements2 by any chance always make sure to call the SetCardXY exec before calling the execgivereinforcements2.

2) i think its highly unlikely its the code. its probably you. however it might have to do with you using a masterfile, since that can overwrite stuff....

best regards,
Vic

RE: Bug in select unit script?

Posted: Tue Sep 27, 2011 2:28 pm
by Grymme
1) I am sorry, i  might have mistated it. Am using the ExecUnitGiveTroops command not the ExecGiveReinforcements.
 
But i solved it myself. It was no bug it was misscripting from my side. The strange thing was that the misscripting kind of worked (usually it just doesnt) which is why i thought the not working part was an error. 
 
2) Probably. I thought so too. But mentioned it incase this was something that could be wrong. But i swear in one scenario i had put regime 1 (not 0) as starting regimen many many times. Yet when i start the game or go back into the editor starting regime is still 0.