Is it possible to use secrets or something to make a freeform combo leave the screen? I am using a script for talking to NPCs which is of course tied to an FFC, and I want to essentially be able to talk to a certain NPC, then have the screen change after you do something on a different screen to make the NPC disappear .
Freeform Combo Help
Started by
Korben
, Nov 18 2017 11:06 PM
2 replies to this topic
#1
Posted 18 November 2017 - 11:06 PM
#2
Posted 19 November 2017 - 12:31 AM
You could give the combo used by the FFC an inherent secret flag so that it would change to combo 0 if secrets have been triggered. That won't stop the script from running, though, so it would have to be modified to check if it's using combo 0 when it starts.
#3
Posted 19 November 2017 - 07:41 AM
In general, it is easier to control script-behaviour, within the script:
I would use Screen->D[] for this kind of event system, using SetScreenDBit() on the screen with the event thatyou want to dictate whether the npc on a different screen runs; using GetScreenDBit() to read the bit on the remote screen, from your npc code.
Screen state carryovers are your second option, but ultimately, you will want your npc-dialogue script to decide if it should run.
I would use Screen->D[] for this kind of event system, using SetScreenDBit() on the screen with the event thatyou want to dictate whether the npc on a different screen runs; using GetScreenDBit() to read the bit on the remote screen, from your npc code.
Screen state carryovers are your second option, but ultimately, you will want your npc-dialogue script to decide if it should run.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users