ATM I’m messing around with etpro mapscripts (exactly: modding “Fuel Dump” to make it quicker).
Here is a short very basic how to to make a one stage constructible out of two stage constructible (basis is the bridge of “Fuel Dump”).
Example script:
SCRIPTNAME_TWO_STAGE_CONSTRUCTIBLE
{
spawn
{
set
{
constages ";"
desstages ";"
}
wait 200
constructible_class 3
setstate materials_stage1 invisible // originally its default
setstate materials_stage2 default
}
//-----------------------------------------------------------------------
// Stage 1 is BUILT
//-----------------------------------------------------------------------
//built stage1
//{
// setstate materials_stage1 invisible
//}
//-----------------------------------------------------------------------
// Stage 1 is DESTROYED
//-----------------------------------------------------------------------
death
{
//setstate materials_stage1 default // original
setstate materials_stage2 default
}
//-----------------------------------------------------------------------
// Stage 2 is BUILT
//-----------------------------------------------------------------------
built final
{
setstate materials_stage2 invisible
}
//-----------------------------------------------------------------------
// Stage 2 is DESTROYED, go back to stage 1
//-----------------------------------------------------------------------
//destroyed final
//{
//}
}
The “set {…}” scriptblock has to be added.
The “built stage1” and “destroyed final” parts have to be commented out.
The setstates of the materials have to be adjusted.
Strange that the “death” part of stage one and not the “destroyed” part of the final stage is executed.
Have fun!