Jump to content

Photo

Freeform Combo Help


  • Please log in to reply
2 replies to this topic

#1 Korben

Korben

    Junior

  • Members
  • Location:USA

Posted 18 November 2017 - 11:06 PM

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 .



#2 Saffith

Saffith

    IPv7 user

  • ZC Developers

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 Timelord

Timelord

    The Timelord

  • Banned
  • Location:Prydon Academy

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.


1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users