currently i'm playing around with signals, and so i came to a problem.
What i want to do is the following:
i create a TS (random race), give him wares to deal with and start
the "!job.freetrader" script.
after that, i create some pirates and give them the command to attack
the trader.
ok...so far it works. But now i want to give the player a message, when the
trader is attacked (might take a little time, because the priates first have to move to the trader).
My script looks like that:
Code: Select all
Script ur.test
Version: 0
for Script Engine Version: 32
Description
Description
Arguments
Source Text
001 *enable signal/interrupt handling: [TRUE]
002 @ $tship = [THIS] -> call script 'ur.lib.CreateTS' : race of interrest=Argonen sector and position=ARRAY ( 15205, -20089, -25084, Wolkenbasis SW )
003 $tship -> connect ship command/signal SIGNAL_ATTACKED to script 'ur.al.signal.attacked' with prio 101
004 @ START $tship -> call script '!job.trade.freetrader' :
005 @ = [THIS] -> call script 'ur.lib.CreateAttacker' : race of interrest=Piraten target=$tship
006 return null
the next starts the trading-job
and then i create the pirates.
As you can see i try to bind a own script for the SIGNAL_ATTACKED to the ship. But this script is never called.
I also played with the priority, but with no success.
Can anyone help me out ?