[JASS] is CreateUnitByName bugged?

Status
Not open for further replies.

  • Melee Initialization
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Hashtable - Create a hashtable
      • Set uht = (Last created hashtable)
      • -------- -------------------------------------------- --------
      • Set str = paladin
      • Set ut = Paladin
      • Custom script: call SaveInteger(udg_uht, StringHash(udg_str), 0, udg_ut)
      • -------- -------------------------------------------- --------
      • Set str = footman
      • Set ut = Footman
      • Custom script: call SaveInteger(udg_uht, StringHash(udg_str), 0, udg_ut)
      • -------- -------------------------------------------- --------
      • Set str = grunt
      • Set ut = Grunt
      • Custom script: call SaveInteger(udg_uht, StringHash(udg_str), 0, udg_ut)
  • Untitled Trigger 001
    • Events
      • Player - Player 1 (Red) types a chat message containing create as A substring
    • Conditions
    • Actions
      • Set str = (Substring((Entered chat string), 8, (Length of (Entered chat string))))
      • Custom script: if HaveSavedInteger(udg_uht, StringHash(udg_str), 0) then
      • Custom script: set udg_ut = LoadInteger(udg_uht, StringHash(udg_str), 0)
      • Unit - Create 1 ut for (Triggering player) at (Center of (Playable map area)) facing Default building facing degrees
      • Custom script: endif


create paladin
create grunt
create footman
etc.
 

Attachments

Status
Not open for further replies.
Back
Top