Hashtable not loading strings.

Status
Not open for further replies.
Level 5
Joined
Apr 23, 2009
Messages
65
Hey could anyone tell me why this isnt working.
  • Set Quests
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Set Q_QuestCount[1] = 2
      • Set Q_Blacksmith_Quests[1] = You see, I need you to gather # iron ores for me. I will reward you if you suceed.
      • Set Q_Blacksmith_Quests[2] = Well, a group of beasts have invaded the cave. I need you to get rid of them. Here are some nets to help. I will reward you if you suceed.
      • Hashtable - Save Q_Blacksmith_Quests[1] as 1 of 1 in Q_Hashtable
      • Hashtable - Save Q_Blacksmith_Quests[2] as 2 of 1 in Q_Hashtable
  • Give Quests
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Talk
    • Actions
      • For each (Integer A) from 1 to 2, do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Target unit of ability being cast) Equal to Q_QuestGivers[(Integer A)]
            • Then - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • Q_IsInQuest[(Player number of (Owner of (Triggering unit)))] Equal to False
                • Then - Actions
                  • Player Group - Pick every player in (All allies of (Owner of (Triggering unit))) and do (Actions)
                    • Loop - Actions
                      • Set Q_IsInQuest[(Player number of (Picked player))] = True
                  • Set Q_Temp_Integer = (Random integer number between 1 and 5)
                  • Set Q_Intro = Q_Intro_Lines[Q_Temp_Integer]
                  • Set Q_Job = (Load 2 of 1 from Q_Hashtable)
                  • Set Q_CurrentQuest = ((|cFFFFFF00 + ((Name of (Target unit of ability being cast)) + : |r)) + (Q_Intro + Q_Job))
                  • For each (Integer B) from 1 to (Length of Q_CurrentQuest), do (Actions)
                    • Loop - Actions
                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                        • If - Conditions
                          • (Substring(Q_CurrentQuest, (Integer B), (Integer B))) Equal to #
                        • Then - Actions
                          • Set Q_Temp_Integer = (Random integer number between (Hero level of (Triggering unit)) and ((Hero level of (Triggering unit)) + 5))
                          • Set Q_CurrentQuest = ((Substring(Q_CurrentQuest, 1, ((Integer B) - 1))) + ((String(Q_Temp_Integer)) + (Substring(Q_CurrentQuest, ((Integer B) + 1), (Length of Q_CurrentQuest)))))
                        • Else - Actions
                  • Game - Display to (All allies of (Owner of (Triggering unit))) the text: Q_CurrentQuest
                • Else - Actions
            • Else - Actions
Everything works fine except for when it loads the string. It ends up displaying an empty string. Any help?
 
Status
Not open for further replies.
Top