Questions about scripts

Please post here for questions and discussion about modding for Strategic Command.
Post Reply
Kossatx
Posts: 97
Joined: Sun Aug 16, 2015 5:48 pm
Location: Spain

Questions about scripts

Post by Kossatx »

- Is it possible to include two or more #LINK= commands in one decision script?

- Is it possible to include an specific command of an script in other script type? For example, the commands #MPP_UPDOWN= and #MPP_TURNS= (decision script) in a territory script.
Kossatx
Posts: 97
Joined: Sun Aug 16, 2015 5:48 pm
Location: Spain

RE: Questions about scripts

Post by Kossatx »

- Is it possible to link an script with a NOT dummy decision event? I mean you can link with a #LINK= X[1] any script with a dummy decision, but not with a #LINK= X[0]... not? A dummy decision event will trigger if the command #TRIGGER is satisfied with independence of #AI_RESPONSE, not? That's because is not possible to link scripts with NOT dummy decision events?
User avatar
BillRunacre
Posts: 6824
Joined: Mon Jul 22, 2013 2:57 pm
Contact:

RE: Questions about scripts

Post by BillRunacre »

ORIGINAL: Kossatx

- Is it possible to include two or more #LINK= commands in one decision script?

I don't think so, but you can have two dummy Decisions in a row, one being fired by the other.
- Is it possible to include an specific command of an script in other script type? For example, the commands #MPP_UPDOWN= and #MPP_TURNS= (decision script) in a territory script.

No, but you can set things to be triggered by a (possibly dummy) Decision so that both happen at the same time.
Follow us on Twitter: https://twitter.com/FurySoftware

We're also on Facebook! https://www.facebook.com/FurySoftware/
User avatar
BillRunacre
Posts: 6824
Joined: Mon Jul 22, 2013 2:57 pm
Contact:

RE: Questions about scripts

Post by BillRunacre »

ORIGINAL: Kossatx

- Is it possible to link an script with a NOT dummy decision event? I mean you can link with a #LINK= X[1] any script with a dummy decision, but not with a #LINK= X[0]... not?

The links work as well with #LINK= X[0]

So if someone says NO to a Decision it can trigger multiple events, it works the same way as if someone says YES.
A dummy decision event will trigger if the command #TRIGGER is satisfied with independence of #AI_RESPONSE, not? That's because is not possible to link scripts with NOT dummy decision events?

I think the #AI_RESPONSE is still important, but I'll be honest, I've never thought of using a dummy Decision that would fire differently for the AI from the player, so I could be wrong.

It'll be best to experiment in single player mode and see.
Follow us on Twitter: https://twitter.com/FurySoftware

We're also on Facebook! https://www.facebook.com/FurySoftware/
Kossatx
Posts: 97
Joined: Sun Aug 16, 2015 5:48 pm
Location: Spain

RE: Questions about scripts

Post by Kossatx »

Thanks a lot for the information!
Kossatx
Posts: 97
Joined: Sun Aug 16, 2015 5:48 pm
Location: Spain

RE: Questions about scripts

Post by Kossatx »

Well, after testing I can say #LINK= X[0] works with dummy decisions when are played by AI, but not with humans. With the AI #AI_RESPONSE determines if 1 or 0, but with humans is not played, so if triggered dummy events are always 1 [:(]

It would be great if for dummy decisions #AI_RESPONSE worked with both AI and human player. It will open many possibilities.
Post Reply

Return to “Scenario Design and Modding”