I did this and the button is gray but still says ready. I didn't try it to see if it would do another drop. The buttons above did work properly after this.is to just disable the button (ret = -1).
506th PIR drops @ DZ Charlie (slideshow)
Moderators: Slitherine Core, BA Moderators
-
junk2drive
- BA Moderator

- Posts: 1478
- Joined: Sun May 23, 2010 4:47 pm
- Location: Arizona USA -7GMT
That's fine, and it's normal. If you want to change what the Text displays you'll need to find in the script the conditional that prints "Ready" and create a condition for "Not Ready", or "Not Available", or whatever you want.junk2drive wrote:I did this and the button is gray but still says ready. I didn't try it to see if it would do another drop. The buttons above did work properly after this.is to just disable the button (ret = -1).
A good example of that would be my Commander Bonus script from TrackHit!.
-
Jonesy1760
- Master Sergeant - U-boat

- Posts: 516
- Joined: Sat Nov 20, 2010 6:06 pm
- Location: MICHIGAN,USA
Nice..very nice!!!
I like everything I see here!!!!
-
junk2drive
- BA Moderator

- Posts: 1478
- Joined: Sun May 23, 2010 4:47 pm
- Location: Arizona USA -7GMT
There is an error for attrib officer in the log. I don't find an attrib on your csv for officer but everything seems to work except after the landing the officers don't seem to do anything and at the start of each turn there are no text popups for anything.
You can call me junk - and type that with one hand.
Those scripts are in the bonus scripts ... the "popup" are from the new modified "PlaceUnit" function.junk2drive wrote:There is an error for attrib officer in the log. I don't find an attrib on your csv for officer but everything seems to work except after the landing the officers don't seem to do anything and at the start of each turn there are no text popups for anything.
I'm not looking at it now, but .... try going back to my original download, I think the only scripts are the bonus and the scenario scripts, but I'll need to look again.
-
junk2drive
- BA Moderator

- Posts: 1478
- Joined: Sun May 23, 2010 4:47 pm
- Location: Arizona USA -7GMT
The flybys, bells, and sirens are randomly generated from the StartTurn function in the scenario BSF. Find and change those values for more or less of a chance to hear them. I made them occur on side(0) turn.junk2drive wrote:Also I am not hearing your sounds for chimes or flybys.
Or ... are you telling me in your new scenario they aren't working?
-
junk2drive
- BA Moderator

- Posts: 1478
- Joined: Sun May 23, 2010 4:47 pm
- Location: Arizona USA -7GMT
I didn't think about them being random. I normally have the sound low or off but yesterday I happened to have it louder and thought to test it in mine and yours.
Sometimes I think the game isn't using the second choice when a random is scripted. Banzai for example. Sometimes it plays and sometimes not. I think I'll remove the random and see what happens.
Sometimes I think the game isn't using the second choice when a random is scripted. Banzai for example. Sometimes it plays and sometimes not. I think I'll remove the random and see what happens.
You can call me junk - and type that with one hand.
-
junk2drive
- BA Moderator

- Posts: 1478
- Joined: Sun May 23, 2010 4:47 pm
- Location: Arizona USA -7GMT
Junk,junk2drive wrote:There is an error for attrib officer in the log. I don't find an attrib on your csv for officer but everything seems to work except after the landing the officers don't seem to do anything and at the start of each turn there are no text popups for anything.
I still haven't looked, but the passive rally and officer stuff should be in the scenario BSF actually. I mentioned the modified "PlaceUnit" function because after the drama, the units are generated and then it runs through the script for disorganized, etc., but only when they are generated. The passive rally is a startturn or startturnpost function.
The passive rally is a modifed version of Amaris' code ... so, you have to include that stuff and make changes for your scenario because Amaris wrote that specifically for his scenario so it's not a universal script.
EDIT : .... The officer code might be pointing at the name of the unit ... There is no attribute in the csv. The "PlaceUnitDrop" (I think is the modified placeunit function) contains the code to assign the attribute to the officer unit after it's generated. The officer that's on the board already has this attrib given to him on the setup turn (either turn 1 or -1, I can't remember).
Junk,
Ok ... For the officer attribute this it what I did ... Open the son_test.BSF ... Now, I editted out the other stuff, looks like this for clarity ...
Note ; The "addattrib" is normally writen in the INIT.BSF ... I added it twice, in my case, at turn -1, and when the troops were generated.
It's better to add them to the INIT file.
Hope that explains it.
Ok ... For the officer attribute this it what I did ... Open the son_test.BSF ... Now, I editted out the other stuff, looks like this for clarity ...
Note ; The "addattrib" is normally writen in the INIT.BSF ... I added it twice, in my case, at turn -1, and when the troops were generated.
It's better to add them to the INIT file.
Code: Select all
FUNCTION StartTurn(side)
{
int i ;
int id ;
int j ;
if( GetTurn() == -1 )
{
AddAttrib("officer") ;
}
if (GetTurn() == -1)
{
for(i=0; i<GetSideCount(); i++)
{
for(j=0; j<GetUnitCount(i); j++)
{
id = GetUnitID(i, j) ;
if( (IsUnitType(id, "us_pco")==1) || (IsUnitType(id, "british_pco")==1) || (IsUnitType(id, "german_pco")==1) )
{
SetAttrib(id,"officer",1) ;
}
if( (IsUnitType(id, "us_pco")==1) || (IsUnitType(id, "british_pco")==1) )
{
SetUnitIconMask(id, 128) ;
}
}
}
}
}Re: 506th PIR drops @ DZ Charlie (slideshow)
I think this deserves to be "thread necro'd" because my jaw is still on the floor. Some of the best modding I have seen so far. Fabulous para-drop!

