Nexus Modding > Scripting

Problem with new Command

<< < (2/3) > >>

GeoModder:

--- Quote from: The Old Dragon on July 11, 2014, 23:13:52 ---So the question then becomes 'How to capture these manual events?' if it's at all possible.

--- End quote ---

Well, for tutorial popup purposes they can be captured, so it should be possible.
I mean during the first few missions, there's a popup with marker line to point to the manual command the game wants the player to use/learn. And I believe it moves further to the next tutorial popup (just a new block of text in the same little window) if the correct manual button is clicked.

The Old Dragon:
Hmmm...

I've looked through the Tutorial command itself. Unfortunately, I don't think it'll help as it's initially called from an event as opposed to clicking on a command button. From there, it starts off a chain of called rule events.

Darn the manual command panel!! Doing anything with it appears to stop the command from running... or it takes it out of the current state...? Would explain why changing the tick to a timer doesn't work.

Off to experiment...

The Old Dragon:
Well, that took some doing. But it now works with one ship in play, multiple ships could be a problem but I'll cross that bridge later...

As suspected, any input manual control bar doesn't just stop the 'tick' part of the command, but the entire command and any attached 'includes' as well. In order to get around that, I've got to make the new command record some variables at 'U' level, which a rule from another machine can then read and check against. If the rule in the second machine can't find either the expected value or the exit value, it re-issues the command.

In trials, my ship now approaches the intended target untill an enemy tries to get too close. In which case it'll try to fly around the enemy, and if fired upon will then engage said enemy. Finally, with the enemy neutralised, our ship proceeds to it's initial destination.

Still a few things to sort out, but it's promising...

GeoModder:
You know, all that explains an inconstant problem I encountered years ago.

The Old Dragon:
Hmmm, I'm a little intrigued. Would you care to share any more?

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version