Jump to content
Sign in to follow this  
jeppelykke

Its so simple script!

Recommended Posts

Heeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeelp  confused.gif

I cannot seem to get this simple test script to work:

Unit Name = Jeppe

Trigger:

Activation: Repeatedly

ON activaction: [] exec "test.sqs"

In test.sqs:

?(player == "Jeppe"):goto "Jeppe"

goto "TheEnd"

#Jeppe

Hint "This Works"

#TheEnd

What is the problem here, i just want it to be able to only work if its that unit that enter the Trigger area!

Anyone able to see why that simple thing dont work, and how i can fix it so it do work.

I been reading all help files and forums and every seems to be useing:

?(player == "Jeppe"):goto "Jeppe"

?(nameofplayer == "Jeppe"):goto "Jeppe"

Both dont work sad.gif

Hope you can help!

Best Regards

Jeppe Lykke, Denmark  mad.gif

Share this post


Link to post
Share on other sites
Guest

Group the unit that you want to activate the trigger with the trigger.

Share this post


Link to post
Share on other sites

Thats the problem its a Continue's trigger and it do driffent things if A Unit get in, i have 5 units groups that needs to use that trigger! thats why i need the unit = unitname then goto but seems not to be working.!

Am sorry, Cheetah i dont understand what you mean is it

[nameofplayer inthislist] exec "test.sqs"

Best Regards

Jeppe Lykke, Denmark

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×