From b2cac236544937aac7473ec2ac493c3c798fa92a Mon Sep 17 00:00:00 2001 From: Celtic Minstrel Date: Sun, 16 Feb 2025 20:23:06 -0500 Subject: [PATCH] Implement the inline special node help button Though this creates the framework, the actual help strings have not been filled in yet. --- rsrc/strings/specials-text-affect.txt | 28 +++++++++++++++ rsrc/strings/specials-text-general.txt | 49 ++++++++++++++++++++++++++ rsrc/strings/specials-text-ifthen.txt | 31 ++++++++++++++++ rsrc/strings/specials-text-once.txt | 14 ++++++++ rsrc/strings/specials-text-outdoor.txt | 4 +++ rsrc/strings/specials-text-rect.txt | 9 +++++ rsrc/strings/specials-text-town.txt | 35 ++++++++++++++++++ src/scenario/special.cpp | 6 +++- src/scenedit/scen.keydlgs.cpp | 9 +++++ 9 files changed, 184 insertions(+), 1 deletion(-) diff --git a/rsrc/strings/specials-text-affect.txt b/rsrc/strings/specials-text-affect.txt index fc7230f01..4cf1ad7c8 100644 --- a/rsrc/strings/specials-text-affect.txt +++ b/rsrc/strings/specials-text-affect.txt @@ -13,6 +13,7 @@ Unused 0..6 - PC, 100+ - monster (if above = 2) Unused Special to Jump To + -------------------- Do Damage Unused @@ -29,6 +30,7 @@ Amount of extra damage Type of damage (0..8) Sound to play Special to Jump To + -------------------- Affect Health Unused @@ -45,6 +47,7 @@ Unused Unused Unused Special to Jump To + -------------------- Affect Spell Points Unused @@ -61,6 +64,7 @@ Unused Unused Unused Special to Jump To + -------------------- Affect Experience Unused @@ -77,6 +81,7 @@ Unused Unused Unused Special to Jump To + -------------------- Affect Skill Points Unused @@ -93,6 +98,7 @@ Unused Unused Unused Special to Jump To + -------------------- Kill/Raise Dead Unused @@ -109,6 +115,7 @@ Unused Unused Unused Special to Jump To + -------------------- Affect Status Effect Unused @@ -125,6 +132,7 @@ Unused Unused Unused Special to Jump To + -------------------- Affect Traits Unused @@ -141,6 +149,7 @@ Unused Unused Unused Special to Jump To + -------------------- Affect Action Points Unused @@ -157,6 +166,7 @@ Unused Unused Unused Special to Jump To + -------------------- Affect Name Unused @@ -173,6 +183,7 @@ Unused Unused Unused Special to Jump To + -------------------- Affect Level Unused @@ -189,6 +200,7 @@ Unused Unused Unused Special to Jump To + -------------------- Affect Morale Unused @@ -205,6 +217,7 @@ Unused Unused Unused Special to Jump To + -------------------- Affect Soul Crystal Unused @@ -221,6 +234,7 @@ Unused Unused Unused Special to Jump To + -------------------- Give Equipment Unused @@ -237,6 +251,7 @@ ID? (-1 - normal, 0 - no, 1 - yes, 2 - full) Cursed? (-1 - default, 0 - no, 1 - yes) Equip? (-1 - no, 0 - soft, 1 - try, 2 - force) Special to Jump To + -------------------- Affect Monster Target Unused @@ -253,6 +268,7 @@ Unused Unused Unused Special to Jump To + -------------------- Affect Monster Attack Unused @@ -269,6 +285,7 @@ Amount to change sides Unused Unused Special to Jump To + -------------------- Affect Monster Statistic Unused @@ -285,6 +302,7 @@ Which stat (0 ... 10) Unused Unused Special to Jump To + -------------------- Affect Statistic Unused @@ -301,6 +319,7 @@ Statistic to adjust (0..20) Unused Unused Special to Jump To + -------------------- Give Mage Spell Unused @@ -317,6 +336,7 @@ Unused Unused Unused Special to Jump To + -------------------- Give Priest Spell Unused @@ -333,6 +353,7 @@ Unused Unused Unused Special to Jump To + -------------------- Affect Gold Unused @@ -349,6 +370,7 @@ Unused Unused Unused Special to Jump To + -------------------- Affect Food Unused @@ -365,6 +387,7 @@ Unused Unused Unused Special to Jump To + -------------------- Affect Alchemy Unused @@ -381,6 +404,7 @@ Unused Unused Unused Special to Jump To + -------------------- Affect Party Status Effect Unused @@ -397,6 +421,7 @@ Which effect (0 .. 3) Unused Unused Special to Jump To + -------------------- Create New PC Stuff Done Flag Part A @@ -413,6 +438,7 @@ PC strength PC dexterity PC intelligence Special to Jump To + -------------------- Store PC Stuff Done Flag Part A @@ -429,6 +455,7 @@ extra 2a extra 2b extra 2c Special to Jump To + -------------------- Unstore PC Unused @@ -445,4 +472,5 @@ Unused Unused Unused Special to Jump To + -------------------- diff --git a/rsrc/strings/specials-text-general.txt b/rsrc/strings/specials-text-general.txt index 818c6417e..bbe98d631 100644 --- a/rsrc/strings/specials-text-general.txt +++ b/rsrc/strings/specials-text-general.txt @@ -13,6 +13,7 @@ Unused Unused Unused Special to Jump To +This special node does nothing but jump to the next in the sequence. It can be useful if you want to remove a node from a long sequence of nodes without needing to edit the jump to values. -------------------- Set Flag Stuff Done Flag Part A @@ -29,6 +30,7 @@ Unused Unused Unused Special to Jump To + -------------------- Increment Flag Stuff Done Flag Part A @@ -45,6 +47,7 @@ Unused Unused Unused Special to Jump To + -------------------- Display Message Unused @@ -61,6 +64,7 @@ Unused Unused Unused Special to Jump To + -------------------- Start Shopping Unused @@ -77,6 +81,7 @@ Unused Unused Unused Unused + -------------------- Display Small Message Unused @@ -93,6 +98,7 @@ Unused Unused Unused Special to Jump To + -------------------- Flip Flag Stuff Done Flag Part A @@ -109,6 +115,7 @@ Unused Unused Unused Special to Jump To + -------------------- Set SDF to Random Stuff Done Flag Part A @@ -125,6 +132,7 @@ Unused Unused Unused Special to Jump To + -------------------- Addition Result Stuff Done Flag Part A @@ -141,6 +149,7 @@ Second SDF part A, or second number Second SDF part B, or -1 for literal number Unused Special to Jump To + -------------------- Subtraction Result Stuff Done Flag Part A @@ -157,6 +166,7 @@ Second SDF part A, or second number Second SDF part B, or -1 for literal number Unused Special to Jump To + -------------------- Story Dialog Unused @@ -173,6 +183,7 @@ Unused Unused Unused Special to Jump To + -------------------- Prevent Action Unused @@ -189,6 +200,7 @@ Unused Unused Unused Special to Jump To + -------------------- Change Time Unused @@ -205,6 +217,7 @@ Unused Unused Unused Special to Jump To + -------------------- Start General Timer Unused @@ -221,6 +234,7 @@ Unused Unused Unused Special to Jump To + -------------------- Play a Sound Unused @@ -237,6 +251,7 @@ Unused Unused Unused Special to Jump To + -------------------- Change Horse Possession Unused @@ -253,6 +268,7 @@ Unused Unused Unused Special to Jump To + -------------------- Change Boat Possession Unused @@ -269,6 +285,7 @@ Unused Unused Unused Special to Jump To + -------------------- Show/Hide Town Unused @@ -285,6 +302,7 @@ Unused Unused Unused Special to Jump To + -------------------- Major Event Has Occurred Unused @@ -301,6 +319,7 @@ Unused Unused Unused Special to Jump To + -------------------- Forced Give Unused @@ -317,6 +336,7 @@ Unused Unused Unused Special to Jump To + -------------------- Buy Items of Type Unused @@ -333,6 +353,7 @@ Amount to pay for each item Unused Unused Special to Jump To + -------------------- Call Global Special Unused @@ -349,6 +370,7 @@ Unused Unused Unused Special to Jump To + -------------------- Set Many Flags Stuff Done Flag Part A @@ -365,6 +387,7 @@ Unused Unused Unused Special to Jump To + -------------------- Copy Flag Stuff Done Flag Part A @@ -381,6 +404,7 @@ Unused Unused Unused Special to Jump To + -------------------- Display Picture Unused @@ -397,6 +421,7 @@ Unused Unused Unused Special to Jump To + -------------------- Have a Rest Unused @@ -413,6 +438,7 @@ Unused Unused Unused Special to Jump To + -------------------- Display Message with Title Unused @@ -429,6 +455,7 @@ Unused Unused Unused Special to Jump To + -------------------- End Scenario Unused @@ -445,6 +472,7 @@ Unused Unused Unused Special to Jump To + -------------------- Set Pointer Stuff Done Flag Part A @@ -461,6 +489,7 @@ Unused Unused Unused Special to Jump To + -------------------- Set/Retrieve Campaign Flag Stuff Done Flag Part A @@ -477,6 +506,7 @@ Unused Unused Unused Special to Jump To + -------------------- Debug Print Numbers Stuff Done Flag Part A @@ -493,6 +523,7 @@ Unused Unused Unused Special to Jump To + -------------------- Multiplication Result Stuff Done Flag Part A @@ -509,6 +540,7 @@ Second SDF part A, or second number Second SDF part B, or -1 for literal number Unused Special to Jump To + -------------------- Division Result Stuff Done Flag Part A @@ -525,6 +557,7 @@ Second SDF part A, or second number Second SDF part B, or -1 for literal number Remainder Stuff Done Flag Part B Special to Jump To + -------------------- Exponentiation Result Stuff Done Flag Part A @@ -541,6 +574,7 @@ Second SDF part A, or second number Second SDF part B, or -1 for literal number Unused Special to Jump To + -------------------- Change Terrain Unused @@ -557,6 +591,7 @@ Terrain to change to Unused Unused Special to Jump To + -------------------- Swap Terrain Unused @@ -573,6 +608,7 @@ Swap this terrain ... With this terrain ... Unused Special to Jump To + -------------------- Transform Terrain Unused @@ -589,6 +625,7 @@ Unused Unused Unused Special to Jump To + -------------------- Clear String Buffer Unused @@ -605,6 +642,7 @@ Unused Unused Unused Special to Jump To + -------------------- Append String to Buffer Unused @@ -621,6 +659,7 @@ Unused Unused Unused Special to Jump To + -------------------- Append Number to Buffer Unused @@ -637,6 +676,7 @@ Unused Unused Unused Special to Jump To + -------------------- Append Monster/PC Name to Buffer Unused @@ -653,6 +693,7 @@ Unused Unused Unused Special to Jump To + -------------------- Append Item Name to Buffer Unused @@ -669,6 +710,7 @@ Unused Unused Unused Special to Jump To + -------------------- Append Terrain Name to Buffer Unused @@ -685,6 +727,7 @@ Unused Unused Unused Special to Jump To + -------------------- Pause Unused @@ -701,6 +744,7 @@ Unused Unused Unused Special to Jump To + -------------------- Start Conversation Unused @@ -717,6 +761,7 @@ Unused Unused Unused Unused + -------------------- Update Quest Unused @@ -733,6 +778,7 @@ Job Board Source / Anger (see docs) Unused Unused Special to Jump To + -------------------- Swap String Buffer Unused @@ -749,6 +795,7 @@ Unused Unused Unused Special to Jump To + -------------------- Alter Sign Text Unused @@ -765,6 +812,7 @@ Unused Unused Unused Special to Jump To + -------------------- Special Name sdf1 @@ -781,4 +829,5 @@ extra 2a extra 2b extra 2c Special to Jump To +This is a template for adding new special node types. It will not appear in the editor. -------------------- diff --git a/rsrc/strings/specials-text-ifthen.txt b/rsrc/strings/specials-text-ifthen.txt index b8d46f04b..9c8698c5c 100644 --- a/rsrc/strings/specials-text-ifthen.txt +++ b/rsrc/strings/specials-text-ifthen.txt @@ -13,6 +13,7 @@ If less than this ... Call this special ... Unused Otherwise call this special + -------------------- Town Number? Unused @@ -29,6 +30,7 @@ Unused Unused Unused Otherwise call this special + -------------------- Random Number? Unused @@ -45,6 +47,7 @@ Unused Unused Unused Otherwise call this special + -------------------- Have Special Item? Unused @@ -61,6 +64,7 @@ Unused Unused Unused Otherwise call this special + -------------------- Stuff Done Compare? Stuff Done Flag Part A @@ -77,6 +81,7 @@ Unused Call this special if 2nd flag lower ... Unused Otherwise call this special + -------------------- Terrain this type? Unused @@ -93,6 +98,7 @@ If space is this terrain type ... Call this special ... Unused Otherwise call this special + -------------------- Is Alive? Unused @@ -109,6 +115,7 @@ Unused Unused Unused Otherwise call this special + -------------------- Has gold? Unused @@ -125,6 +132,7 @@ If 1, take gold Unused Unused Otherwise call this special + -------------------- Has food? Unused @@ -141,6 +149,7 @@ If 1, take food Unused Unused Otherwise call this special + -------------------- Item Class on Space? Unused @@ -157,6 +166,7 @@ If item of this class on space ... Call this special ... If 1, take item Otherwise call this special + -------------------- Have Item With Class? Unused @@ -173,6 +183,7 @@ If 1, take item Unused Unused Otherwise call this special + -------------------- Equipped Item With Class? Unused @@ -189,6 +200,7 @@ If 1, take item Unused Unused Otherwise call this special + -------------------- Has Mage Spell? Unused @@ -205,6 +217,7 @@ Unused Unused Unused Otherwise call this special + -------------------- Has Priest Spell? Unused @@ -221,6 +234,7 @@ Unused Unused Unused Otherwise call this special + -------------------- Has Alchemy? Unused @@ -237,6 +251,7 @@ Unused Unused Unused Otherwise call this special + -------------------- Has Status Effect? Unused @@ -253,6 +268,7 @@ Value to compare to Cumulation mode (if whole party selected) Comparison mode Otherwise call this special + -------------------- If Looking? Unused @@ -269,6 +285,7 @@ Unused Unused Unused Otherwise call this special + -------------------- Day Reached? Unused @@ -285,6 +302,7 @@ Unused Unused Unused Otherwise call this special + -------------------- If Fields? Minimum # of fields @@ -301,6 +319,7 @@ Bottom of rectangle Right of rectangle Unused Otherwise call this special + -------------------- If Party Size? Unused @@ -317,6 +336,7 @@ Unused Required size Unused Otherwise call this special + -------------------- Special Thing Happened? Unused @@ -333,6 +353,7 @@ Unused Call this special ... Unused Otherwise call this special + -------------------- If Species Present? Unused @@ -349,6 +370,7 @@ Required number of species Comparison method (-2 .. 2) Unused Otherwise call this special + -------------------- If Have Trait? Unused @@ -365,6 +387,7 @@ Required number of trait Comparison method (-2 .. 2) Unused Otherwise call this special + -------------------- Has Enough of Statistic? Unused @@ -381,6 +404,7 @@ Which statistic Check mode Unused Otherwise call this special + -------------------- Text Response? Unused @@ -397,6 +421,7 @@ Number of a SCENARIO special message If answer matches, call this special ... Unused Otherwise call this special + -------------------- Stuff Done Equal? Stuff Done Flag Part A @@ -413,6 +438,7 @@ Unused Unused Unused Otherwise call this special + -------------------- If Context? Unused @@ -429,6 +455,7 @@ Unused Unused Unused Otherwise call this special + -------------------- If Numeric Response? Unused @@ -445,6 +472,7 @@ Range lower bound (or value to compare to) Range upper bound (or comparison method -2 .. 2) If test 2 passes but test 1 fails, call this special ... Otherwise call this special + -------------------- If In Boat? Unused @@ -461,6 +489,7 @@ Unused Unused Unused Otherwise call this special + -------------------- If On Horse? Unused @@ -477,6 +506,7 @@ Unused Unused Unused Otherwise call this special + -------------------- If Quest? Unused @@ -493,4 +523,5 @@ Unused Unused Unused Otherwise call this special + -------------------- diff --git a/rsrc/strings/specials-text-once.txt b/rsrc/strings/specials-text-once.txt index 2d0ac445b..2f5cc87fb 100644 --- a/rsrc/strings/specials-text-once.txt +++ b/rsrc/strings/specials-text-once.txt @@ -13,6 +13,7 @@ Amount of food to give Special if item not given Unused Special to Jump To + -------------------- One-Time Give Special Item Stuff Done Flag Part A @@ -29,6 +30,7 @@ Unused Unused Unused Special to Jump To + -------------------- One-Time Do Nothing Stuff Done Flag Part A @@ -45,6 +47,7 @@ Unused Unused Unused Special to Jump To + -------------------- One-Time and Set Stuff Done Flag Part A @@ -61,6 +64,7 @@ Unused Unused Unused Special to Jump To + -------------------- One-Time Text Message Stuff Done Flag Part A @@ -77,6 +81,7 @@ Unused Unused Unused Special to Jump To + -------------------- One-Time Display Dialog Stuff Done Flag Part A @@ -93,6 +98,7 @@ Label of 3rd button (-1 - no button) Special if button 3 pressed Unused Special if OK/Leave picked + -------------------- Unused Node Unused @@ -109,6 +115,7 @@ Unused Unused Unused Special to Jump To + -------------------- Unused Node Unused @@ -125,6 +132,7 @@ Unused Unused Unused Special to Jump To + -------------------- One-Time Give Item Dialog Stuff Done Flag Part A @@ -141,6 +149,7 @@ Amount of food to give Special if item IS taken Unused Special to Jump To + -------------------- Unused Node Unused @@ -157,6 +166,7 @@ Unused Unused Unused Special to Jump To + -------------------- Unused Node Unused @@ -173,6 +183,7 @@ Unused Unused Unused Special to Jump To + -------------------- One-Time Place Outdoor Enc. Stuff Done Flag Part A @@ -189,6 +200,7 @@ Unused Unused Unused Special to Jump To + -------------------- One-Time Place Town Enc. Stuff Done Flag Part A @@ -205,6 +217,7 @@ Unused Unused Unused Special to Jump To + -------------------- One-Time Trap Stuff Done Flag Part A @@ -221,4 +234,5 @@ Penalty (0 .. 100, higher is harder) (Custom only) Special node for effect Unused Special after trap finished + -------------------- diff --git a/rsrc/strings/specials-text-outdoor.txt b/rsrc/strings/specials-text-outdoor.txt index f38b8c933..0d42fe6d2 100644 --- a/rsrc/strings/specials-text-outdoor.txt +++ b/rsrc/strings/specials-text-outdoor.txt @@ -13,6 +13,7 @@ Unused Unused Unused Special to Jump To + -------------------- Force Town Entry Unused @@ -29,6 +30,7 @@ X coordinate to enter at (-1 default) Y coordinate to enter at (-1 default) Unused Special to Jump To + -------------------- Place Outdoor Encounter Unused @@ -45,6 +47,7 @@ Unused Unused Unused Special to Jump To + -------------------- Outdoor Move Party Unused @@ -61,5 +64,6 @@ Unused Unused Unused Special to Jump To + -------------------- diff --git a/rsrc/strings/specials-text-rect.txt b/rsrc/strings/specials-text-rect.txt index 559322068..8a90cfebe 100644 --- a/rsrc/strings/specials-text-rect.txt +++ b/rsrc/strings/specials-text-rect.txt @@ -13,6 +13,7 @@ Bottom of rectangle Right of rectangle Unused Special to Jump To + -------------------- Set Explored 0 - clear, 1 - explore @@ -29,6 +30,7 @@ Bottom of rectangle Right of rectangle Unused Special to Jump To + -------------------- Move Items X of space to move to @@ -45,6 +47,7 @@ Bottom of rectangle Right of rectangle Unused Special to Jump To + -------------------- Destroy Items Unused @@ -61,6 +64,7 @@ Bottom of rectangle Right of rectangle Unused Special to Jump To + -------------------- Change Rectange Terrain Terrain to change to @@ -77,6 +81,7 @@ Bottom of rectangle Right of rectangle Unused Special to Jump To + -------------------- Swap Rectangle Terrain Switch this ter. type @@ -93,6 +98,7 @@ Bottom of rectangle Right of rectangle Unused Special to Jump To + -------------------- Transform Rectangle Terrain Unused @@ -109,6 +115,7 @@ Bottom of rectangle Right of rectangle Unused Special to Jump To + -------------------- Lock Rectangle Unused @@ -125,6 +132,7 @@ Bottom of rectangle Right of rectangle Unused Special to Jump To + -------------------- Unlock Rectangle Unused @@ -141,4 +149,5 @@ Bottom of rectangle Right of rectangle Unused Special to Jump To + -------------------- diff --git a/rsrc/strings/specials-text-town.txt b/rsrc/strings/specials-text-town.txt index f9223ddc1..80a73f48f 100644 --- a/rsrc/strings/specials-text-town.txt +++ b/rsrc/strings/specials-text-town.txt @@ -13,6 +13,7 @@ New Attitude Unused Unused Special to Jump To + -------------------- Do Missile Animation Unused @@ -29,6 +30,7 @@ X coordinate of end space Y coordinate of end space Sound to play Special to Jump To + -------------------- Animate Monster Attack Unused @@ -45,6 +47,7 @@ Unused Unused Unused Special to Jump To + -------------------- Animate Fake Damage Unused @@ -61,6 +64,7 @@ Boom type Number to print (0 means print no number) Sound to play Special to Jump To + -------------------- Move Party Unused @@ -77,6 +81,7 @@ Unused Unused Unused Special to Jump To + -------------------- Hit Space Unused @@ -93,6 +98,7 @@ Damage to inflict (0 .. 1000) Type of damage (0..8) Unused Special to Jump To + -------------------- Explosion on Space Unused @@ -109,6 +115,7 @@ Damage to inflict (0 .. 1000) Type of damage (0..8) Unused Special to Jump To + -------------------- Lock Space Unused @@ -125,6 +132,7 @@ Unused Unused Unused Special to Jump To + -------------------- Unlock Space Unused @@ -141,6 +149,7 @@ Unused Unused Unused Special to Jump To + -------------------- Do sfx Burst Unused @@ -157,6 +166,7 @@ Type of explosion 0 - normal, 1 - huge Sound to play (-1 = default) Special to Jump To + -------------------- Make Wandering Monster Unused @@ -173,6 +183,7 @@ Unused Unused Unused Special to Jump To + -------------------- Place a Monster Unused @@ -189,6 +200,7 @@ Number of creature to place 1 - force placement Unused Special to Jump To + -------------------- Destroy Monster Unused @@ -205,6 +217,7 @@ Unused Unused Unused Special to Jump To + -------------------- Destroy All Monsters Unused @@ -221,6 +234,7 @@ Unused Unused Unused Special to Jump To + -------------------- Generic Lever Unused @@ -237,6 +251,7 @@ Unused Unused Unused Special to Jump To + -------------------- Generic Portal Unused @@ -253,6 +268,7 @@ Unused Unused Unused Special to Jump To + -------------------- Generic Button Unused @@ -269,6 +285,7 @@ Unused Unused Unused Special to Jump To + -------------------- Generic Stairway Unused @@ -285,6 +302,7 @@ Number of town to place party in What text? (0 - up, 1 - down) Trigger Limitations Special to Call in New Town + -------------------- Lever Unused @@ -301,6 +319,7 @@ Unused Unused Unused Special to Jump To + -------------------- Portal Unused @@ -317,6 +336,7 @@ Unused Unused Unused Special to Jump To + -------------------- Stairway Unused @@ -333,6 +353,7 @@ Number of town to place party in If 1, always change level. Trigger Limitations Special to Call in New Town + -------------------- Relocate Outdoors Unused @@ -349,6 +370,7 @@ X coordinate inside section Y coordinate inside section Unused Special to Jump To + -------------------- Place Item Unused @@ -365,6 +387,7 @@ Item to place Set to 1 to place in container, if present Unused Special to Jump To + -------------------- Split Party Unused @@ -381,6 +404,7 @@ Sound to play (10 = teleport) Unused Unused Special to Jump To + -------------------- Reunite Party Unused @@ -397,6 +421,7 @@ If 1, don't change location Unused Unused Special to Jump To + -------------------- Start Town Timer Unused @@ -413,6 +438,7 @@ Unused Unused Unused Special to Jump To + -------------------- Change Lighting Unused @@ -429,6 +455,7 @@ Party light level 0 - increase, 1 - drain Unused Special to Jump To + -------------------- Set Monster Attitude Unused @@ -445,6 +472,7 @@ Unused Unused Unused Special to Jump To + -------------------- Center View on Space Unused @@ -461,6 +489,7 @@ Unused Unused Unused Special to Jump To + -------------------- Lift Fog Unused @@ -477,6 +506,7 @@ Unused Unused Unused Special to Jump To + -------------------- Start Targeting Unused @@ -493,6 +523,7 @@ Special Called if Targeting Fails if 1, allow obstructed spaces if 1, allow targeting in antimagic fields Special to Call for Each Target + -------------------- Place Fields in Spell Pattern Unused @@ -509,6 +540,7 @@ Which field type? Unused Unused Special to Jump To + -------------------- Deal Damage in Spell Pattern Unused @@ -525,6 +557,7 @@ Which damage type? (0..8) How many dice? (calculated in d6's) 0 - sequential simple booms, 1 - simultaneous animated booms Special to Jump To + -------------------- Relocate Creature Unused @@ -541,6 +574,7 @@ Which creature Positioning mode Delay Special to Jump To + -------------------- Place Label Unused @@ -557,4 +591,5 @@ Unused Delay Unused Special to Jump To + -------------------- diff --git a/src/scenario/special.cpp b/src/scenario/special.cpp index dec0b447e..2b8b9cbd5 100644 --- a/src/scenario/special.cpp +++ b/src/scenario/special.cpp @@ -772,7 +772,7 @@ std::string node_properties_t::opcode() const { static std::string get_node_string(std::string base, eSpecType type, int which) { eSpecCat cat = getNodeCategory(type); int i = int(cat), j = int(type); - int strnum = (j - offsets[i]) * 16 + which + 1; + int strnum = (j - offsets[i]) * 17 + which + 1; switch(cat) { case eSpecCat::GENERAL: return get_str(base + "-general", strnum); @@ -798,6 +798,10 @@ std::string node_properties_t::name() const { return get_node_string("specials-text", self, 0); } +std::string node_properties_t::descr() const { + return get_node_string("specials-text", self, 15); +} + node_function_t::node_function_t() {} node_function_t::node_function_t(char c) { diff --git a/src/scenedit/scen.keydlgs.cpp b/src/scenedit/scen.keydlgs.cpp index 502baa4db..57a1be27c 100644 --- a/src/scenedit/scen.keydlgs.cpp +++ b/src/scenedit/scen.keydlgs.cpp @@ -969,6 +969,15 @@ bool edit_spec_enc(short which_node,short mode,cDialog* parent) { "sdf1-edit", "sdf2-edit", }); special["cancel"].attachClickHandler(std::bind(discard_spec_enc, _1, std::ref(edit_stack))); + special["node-help"].attachClickHandler([&edit_stack](cDialog& me, std::string item_hit, eKeyMod mods) { + eSpecType type = edit_stack.top().node.type; + const std::string& str = (*type).descr(); + // TODO: This is the same dialog as give_help(), the only difference being that we don't have a string number! + cStrDlog display_help(str,"","Instant Help",24,PIC_DLOG, &me); + display_help.setSound(57); + display_help.show(); + return true; + }); special["back"].hide(); edit_stack.push({which_node,mode,the_node});