Jump to content
3000AD Forums
Sign in to follow this  
Vixef

UCAWA: Need help. Can't get signal event to work

Recommended Posts

Hi.

I'm trying to create a script where different actors are created at different times. I've used signal event, but all the actors starts the moment the script is loaded.

I hope someone can help me out with my problem. Beneath are parts of the script.

[dynamic]

#include glob_dyn.scr

mandorian mercenary,,manmer1,mantis.3d

#

[ai]

events

!begin_manmer1

.manmer1,100,100,100,100,100,100,0

START in pravisz

STOP

#

events

!startup

JUMP cyronviz^wrm-14

SAY cmo "HQ reports Mercenary1 launched"

!destroyed this

SAY cmo "HQ reports Mercenary1 destroyed"

signal begin_manmer1,1440

!Arrived cyronviz

IF EXIST cyclone THEN

BROADCAST "Mercenary1 executing docking approach to station Cyclone"

DOCK cyclone

ELSE

RTB

signal begin_manmer1,1440

ENDIF

!docked cyclone

SAY CMO "HQ reports Mercenary1 has docked at station Cyron."

signal begin_manmer2,60

endevents

#

[dynamic]

mandorian mercenary,,manmer2,mantis.3d

#

[ai]

events

!begin_manmer2

.manmer2,100,100,100,100,100,100,0

START in pravisz

STOP

#

events

!startup

JUMP cyronviz^wrm-14

SAY cmo "HQ reports Mercenary2 launched"

!destroyed this

SAY CMO "HQ reports Mercenary2 destroyed"

signal begin_manmer1,60

!Arrived cyronviz

IF EXIST cyclone THEN

BROADCAST "Mercenary2 executing docking approach to station Cyclone"

DOCK cyclone

ELSE

RTB

signal begin_manmer2,60

ENDIF

!docked cyclone

SAY CMO "HQ reports Mercenary2 has docked at station Cyron."

endevents

#

[event]

!begin_manmer2

!begin_manmer1

#

$

Share this post


Link to post
Share on other sites

If you don't have an event ACM identifier which signals that the event should fire only during that ACM scenario, they will all fire as soon as the scenario is loaded.

In this excerpt from the IA0101.SCR sample scenario included with the GBS, this event will only fire during the ACM scenario which has the ID of 1. The first parameter in the ACM block is the ACM id. Thats what you pass to the event if you want that event only to be fired during that ACM.

[acm]

*snip*

:1,earthz,setupl1,beginl1,resolvel1,level1tick,1,20,1

#

*snip*

events 1

!beginl1

activate this

invincible on this

attack player

signal invincible_off,10

!invincible_off

invincible off this

endevents

So your script should look something like this. Note that I have used acmID1 as the ACM id. If you don't want all these entities to fire when this scenario starts, then you need to delay them using the date/time (see the docs and sample scripts).

code:


[dynamic]

#include glob_dyn.scr

mandorian mercenary,,manmer1,mantis.3d

#

[acm]

This is the ACM block

:acmID1,earthz,setupl1,beginl1,resolvel1,level1tick,1,20,1

#

[ai]

events acmID1

!begin_manmer1

.manmer1,100,100,100,100,100,100,0

START in pravisz

STOP

#

events acmID1

!startup

JUMP cyronviz^wrm-14

SAY cmo "HQ reports Mercenary1 launched"

!destroyed this

SAY cmo "HQ reports Mercenary1 destroyed"

signal begin_manmer1,1440

!Arrived cyronviz

IF EXIST cyclone THEN

BROADCAST "Mercenary1 executing docking approach to station Cyclone"

DOCK cyclone

ELSE

RTB

signal begin_manmer1,1440

ENDIF

!docked cyclone

SAY CMO "HQ reports Mercenary1 has docked at station Cyron."

signal begin_manmer2,60

endevents

#

[dynamic]

mandorian mercenary,,manmer2,mantis.3d

#

[ai]

events acmID1

!begin_manmer2

.manmer2,100,100,100,100,100,100,0

START in pravisz

STOP

#

events acmID1

!startup

JUMP cyronviz^wrm-14

SAY cmo "HQ reports Mercenary2 launched"

!destroyed this

SAY CMO "HQ reports Mercenary2 destroyed"

signal begin_manmer1,60

!Arrived cyronviz

IF EXIST cyclone THEN

BROADCAST "Mercenary2 executing docking approach to station Cyclone"

DOCK cyclone

ELSE

RTB

signal begin_manmer2,60

ENDIF

!docked cyclone

SAY CMO "HQ reports Mercenary2 has docked at station Cyron."

endevents

#

[event]

!begin_manmer2

!begin_manmer1

#

$


Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×