Jump to content

UCAWA: Need help with activation of regions


Vixef
 Share

Recommended Posts

Hi.

Below is a script which attempts to mod alliances based on actors created by autogen.

code:

[macro]

:alliance(race,modr1,modr2,news1,news2)

events

!detect %race% diplomat,0,1

SAY CMO,"Incoming transmission from Universal News"

BROADCAST "THE %news1% HIGH COMMAND HAS ANNOUNCED THAT THEY CONSIDER"

BROADCAST "THE %news2% NATION AS THEIR CLOSEST ALLY"

MOD_ALLIANCE %modr1%,%modr2%,200

!detect %race% colonist,0,1

SAY CMO,"Incoming transmission from Universal News"

BROADCAST "THE %news2% HIGH COMMAND HAS ANNOUNCED THAT THEY CANNOT"

BROADCAST "AGREE ON THE BORDERS WITH THE %news1% NATION. THE %news2%"

BROADCAST "EMBASSY HAS LEFT %news1% REGIONS WITH EMIDIATE EFFECT."

MOD_ALLIANCE %modr2%,%modr1%,100

!detect %race% hacker,0,1

SAY CMO,"Incoming transmission from Universal News"

BROADCAST "%news2% OFFICIALS CLAIM THAT THE %news1% SECRET SERVICE,"

BROADCAST "ON SEVERAL OCCASIONS, HAS TRIED TO SABOTAGE PLANETARY DEFENSES"

BROADCAST "AND KEY TRADE ROUTES. THE %news2% NATION HAS PULLED OUT THEIR"

BROADCAST "EMBASSY FROM %news1% REGIONS"

MOD_ALLIANCE %modr2%,%modr1%,100

!detect %race% assassin,0,1

SAY CMO,"Incoming transmission from Universal News"

BROADCAST "HEADLINE: AFTER SEVERAL BORDER DISPUTES BETWEEN THE %news1% AND %news2%"

BROADCAST "THE %news2% HIGH COMMAND HAS DECLARED WAR ON THE %news1% NATION."

MOD_ALLIANCE %modr2%,%modr1%,0

endevents

:MACRO_END

[endmacro]

#

[dynamic]

#include glob_dyn.scr

#

[ai]

#include glob_ai.scr

#include glob_ag.scr

#

[ai]

#include terran.scr

#include empirian.scr

#include vesperon.scr

#include credian.scr

#include kandorian.scr

#include mandorian.scr

#include zelon.scr

#include valkerie.scr

#include falkerie.scr

#include gammulan.scr

#include syrion.scr

#include droidan.scr

#

[dynamic]

galaxian diplomat,,satcom,probe.3d,satcom

#

[ai]

.satcom,100,100,100,100,100,100,1

start orbit blk05z^flx-11,10000,10,90,0

stop

events

!startup

cloak on this

invincible on this

weapons off this

signal mod_alliances,1440

mod_alliance empirian,vesperon,0

mod_alliance vesperon,empirian,0

!activate_ag

autogen on

!mod_alliances

mod_alliance terran,vesperon,50

mod_alliance vesperon,terran,50

endevents

#

# Launch escort for harmless player caste launched from this station

#

.galcomhq

events

!detect player

IF player_caste explorer THEN

launch explorer,canlon,1,escort player

launch explorer,generis,1,escort player

ELSE

IF player_caste scientist THEN

launch scientist,canlon,1,escort player

launch scientist,generis,1,escort player

ELSE

IF player_caste diplomat THEN

launch diplomat,canlon,1,escort player

launch diplomat,generis,1,escort player

ELSE

IF player_caste paramedic THEN

launch paramedic,canlon,1,escort player

launch paramedic,generis,1,escort player

ELSE

IF player_caste trader THEN

launch trader,canlon,1,escort player

launch trader,generis,1,escort player

ELSE

IF player_caste commercial THEN

launch commercial,canlon,1,escort player

launch commercial,generis,1,escort player

ENDIF

ENDIF

ENDIF

ENDIF

ENDIF

ENDIF

endevents

#

events

!autogen_reg

autogen on zelanaz

autogen on canaanz

autogen on otura6z

autogen on earthz

autogen on sarienz

autogen on pravisz

autogen on tyrus2z

autogen on gamma1z

autogen on lv103z

autogen on tramisz

autogen on mondialz

autogen on ronusivz

endevents

#

[event]

!activate_ag

!mod_alliances

!autogen_reg

$

The script works if the player is in zelana, earth, canaan, etc. But I want the regions to autogenerate actors when the player isn't in the region.

So I have activated the stations in the regions, and they even launch a wing of fighters to patrole the region. I have also turned autogeneration on in the regions (see !autogen_reg). But I don't think the regions are activated by this - at least they don't seem to be when I'm watching a region with a probe.

Either I have misunderstood something about activation of regions or something is wrong with my script. Either way, I'd really appreaciate some help.

[ 01-29-2006, 08:18 AM: Message edited by: Supreme Cmdr ]

Link to comment
Share on other sites

You can't use 'autogen' like that because it is not region specific. It is a global command that affects the entire game world when on|off.

btw when posting scripts, you need to enclose them in 'code' tags to make them readable.

Link to comment
Share on other sites

Ok will do next time.

If I:

1. turn autogeneration on

AND

2. Activate GalcomHQ.

AND

3.Script that galcomhq launches a wing of fighters.

Does that mean that the region is active in the sense that actors are autogenerated in earthz without the player actually being there?

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...