ZDoom Strife Dialog Format

From ZDoom Wiki
(Redirected from ZSDF)
Jump to: navigation, search

The ZDoom Strife Dialog Format is a variant of the Universal Strife Dialog Format. It is not a proper USDF dialect since it changes the semantic of the actor field from an integer into a string corresponding to the actor class name, resulting in a type mismatch in a strict parser. This deviation from the standard was deemed necessary to avoid forcing modders to use the ConversationID property on all actors, which would require as well redefining any standard actor without this property.

Differences

  • Namespace must be ZDoom
  • Actor field uses a class name
  • Drop field uses a class name
  • Item field uses a class name
  • GiveItem field uses a class name
  • Newly created ID field allows you to still use a ConversationID

Examples

This script will let you trade your shotgun for a chaingun.

namespace = "ZDoom";
include = "SCRIPT00";

conversation
{
    actor = "ChaingunGuy"; // Not a number!
    page
    {
         name = "Chaingun Guy";
         dialog = "I have a cool chaingun! I want a shotgun though...";
         choice
         {
             text = "Deal!";
             giveitem = "Chaingun";
             nextpage = 2;
             nomessage = "No shotgun, no chaingun!";
             cost
             {
                 item = "Shotgun";
                 amount = 1;
             }
         }
    }
    page
    {
         name = "Chaingun Guy";
         dialog = "I love this!";
    }
}

See also

Forum threads

External links