I have opened this thread on the behalf of lacutos
Well the past few weeks I have been very busy on my scenario and in my scenario I have a unit called a siren (named after the ones who killed ships with there call in ancient mythology)
And I was trying to make some new orders so here is my first one
its called super tremor which basically kills an enemy city and replaces it with a lake
it’s a work in progress and the one I have at home has evolved a bit more
the only problem is with the disbanding of units and if there is a river there
it basically hijacks the old assassinate order which I did not use much all you basically have to do after this is change the assassinate special effect and pics (using the read zfs program)
so locutos what do you think of that
Well the past few weeks I have been very busy on my scenario and in my scenario I have a unit called a siren (named after the ones who killed ships with there call in ancient mythology)
And I was trying to make some new orders so here is my first one
Code:
HandleEvent(AssassinateRulerOrder) 'supertremer' pre { location_t tmploc; // killsallland int_t i; int_t tmpplayer; city_t tmpcity; int_t tmpcitypop; int_t T; int_t numunits; unit_t tmpUnit; GetCityByLocation(location[0], tmpcity); numUnits = GetUnitsAtLocation(tmpcity.location); for (i = 0; i < numUnits; i = i + 1) { // Kill all units GetUnitFromCell(tmpcity.location, i, tmpUnit); Event: DisbandUnit(tmpUnit);//should kill all units don’t work so good } AddEffect(location[0], "SPECEFFECT_CREATE_PARKS", "SOUND_ID_NANO_TERROR"); tmpplayer = tmpcity.owner; Event:Killcity(tmpcity, 0, tmpplayer); Terraform(location[0], 23); // Transform the city into sea for (i = 0; i < 7; i = i + 1) { t=i-1; GetNeighbor(city[0].location, t, tmpLoc); Terraform(tmploc, 23); // Transform sea } return STOP; }
it’s a work in progress and the one I have at home has evolved a bit more
the only problem is with the disbanding of units and if there is a river there
it basically hijacks the old assassinate order which I did not use much all you basically have to do after this is change the assassinate special effect and pics (using the read zfs program)
so locutos what do you think of that
Comment