Page 1 of 1
Three-Way Units.
Posted: Sun Oct 04, 2015 8:21 pm
by Shoughie
Hey I was wondering the proper way to create a unit that can switch into three separate units like its cycling through the three. How is this done properly?
Re: Three-Way Units.
Posted: Sun Oct 04, 2015 9:19 pm
by Akkula
It is not that hard.
You just have to direct the unit number in your last "switch option" back to the first one of your cycle.
100 Unit 1 101
101 Unit 2 102
102 Unit 3 100
Something like that.
Regards.
Re: Three-Way Units.
Posted: Mon Oct 05, 2015 2:32 am
by Shoughie
Thanks, I had the same idea myself. This is what I tried, but every time I try it it causes the game to crash.
#
3111601 8.8 cm Pak 36 3 274 12 0 1 1 0 8 5 17 -7 3 5 10 0 0 0 8.8_cm_Pak_36.png 27.5.1939 1.1.1946 4 fixedt nopurchase 3111602 heavypull sea
rail air glider
3111602 8.8 cm Art 36 4 274 12 0 1 1 3 8 5 17 -7 3 5 10 0 0 0 8.8_cm_Pak_36_Art.png 27.5.1939 1.1.1946 4 fixedt nopurchase 3111603 heavypull sea rail air glider
3111603 8.8 cm FlaK 36 5 274 12 0 1 1 3 8 -5 -8 18 -3 2 10 0 0 0 8.8_cm_FlaK_36.png 27.5.1939 1.1.1946 4 primary FlaK 3111601 heavypull sea rail glider
Re: Three-Way Units.
Posted: Mon Oct 05, 2015 2:58 am
by Akkula
I think I have the solution for your crashes... because it happened to me too
The trick is that the "primary" unit from the cycle HAS to be purchasable, otherwise the game crash. The rest of the units can be "nopurchasable".
Hope it helps.
Regards.
Re: Three-Way Units.
Posted: Mon Oct 05, 2015 8:28 am
by peterw
As far as I remember I had the same problem as Shoughie.
After I deleted one of the "nopurchase", I got no crash any more, but the unit shows up twice in the buying screen.
It seems two "nopurchase" types linked with a switch causes a crash.
Re: Three-Way Units.
Posted: Mon Oct 05, 2015 3:42 pm
by Shoughie
Thanks everybody, I got it to work
