• 0

    posted a message on checking inventory empty slots

    so, there is no way to check if specified inventory slot is empty?

    Posted in: Triggers
  • 0

    posted a message on checking inventory empty slots

    i think there is a problem of my understanding of the parameter of the item slot. can anyone explain me that condition (item carried by UNIT in INDEX, "Inventory Item Carried")?

    Posted in: Triggers
  • 0

    posted a message on auto-casting only when idle?

    noone can answer how to change that ability?

    Posted in: Data
  • 0

    posted a message on checking inventory empty slots

    noone got any ideas?

    Posted in: Triggers
  • 0

    posted a message on auto-casting only when idle?

    i have a problem with my auto-cast ability. i thought that i made everything ok, but unit uses that ability only when stands in one spot, but i wanted it to use ability anytime it is hurt (i set validators Life LT 50 Percent and something like Caster is not healing itself). i tested it when unit was under attack by ultralisk and unit was moving. when it is moving - the ability does not auto-cast. when it stops for a while - ability is used. any ideas how to change that?

    Posted in: Data
  • 0

    posted a message on checking inventory empty slots

    i check every slot. i wrote "1" for example only.

    ok. counting of items done (by using "Inventory Items Carried"). but how to check if specific slot is empty? i tried the examples i wrote earlier... but they don't work...

    Posted in: Triggers
  • 0

    posted a message on checking inventory empty slots

    i need to chceck, if all the inventory slots of my hero are empty. i tried some loops with conditions like "if item carried by hero in 1 != any item" or "if item carried by hero in 1 = no unit" but nothing works...

    i have used Bifuu's hero creation tutorial, btw.

    Posted in: Triggers
  • 0

    posted a message on bank does not work properly - signature and values

    i think i solved the problem.

    i moved preloading section to map initialization main trigger (but that doesn't matter for now). the thing that matters is that i used a constant expression while preloading. i mean:

    • Bank - Preload and synchronize bank "ATC" for player 1 (not "for player iPlayer" - that means: not for variable.)

    i have detected that in at least one trigger there should be at least one "open bank" or "preload bank" with a constant expression for all players. so, if i want to use my bank, i should put "preload bank for player" in the "map initialization" trigger with constants of all human players.

    anyway, thanks for replies.

    Posted in: Triggers
  • 0

    posted a message on bank does not work properly - signature and values

    i use the following function to save data:

    • SavePlayerBank
      • Options: Action
      • Return Type: (None)
      • Parameters
        • iPlayer <Integer>
      • Grammar Text: SavePlayerBank(iPlayer)
      • Hint Text: (None)
      • Custom Script Code
      • Local Variables
      • Actions
        • Bank - Remove bank Player Banks[iPlayer]
        • Bank - Open bank "ATC" for player iPlayer
        • Bank - Set Option Signature for Bank (Last opened bank) to Enable
        • Bank - Store unit PlayerHeroes[iPlayer] as "Hero" of section "SaveData" in bank (Last opened bank)
        • Bank - Save bank (Last opened bank)

    as you see, setting signature to enable is set after opening the bank, but the problem still exists.

    Posted in: Triggers
  • 0

    posted a message on bank does not work properly - signature and values

    does anybody know what is wrong?

    Posted in: Triggers
  • 0

    posted a message on bank does not work properly - signature and values

    while i've been trying to make thing work, i made a function:

    LoadPlayerBank

    • Options: Action
    • Return Type: (None)
    • Parameters
      • iPlayer <Integer>
    • Grammar Text: LoadPlayerBank(iPlayer)
    • Hint Text: (None)
    • Custom Script Code
    • Local Variables
    • Actions
      • Bank - Preload and synchronize bank "ATC" for player iPlayer
      • Bank - Open bank "ATC" for player iPlayer
      • Bank - Set Option Signature for Bank (Last opened bank) to Enable
      • General - If (Conditions) then do (Actions) else do (Actions)
        • If
          • (Bank (Last opened bank) is verified) == true
        • Then
          • UI - Display "Bank is valid." for (All players) to Subtitle area
          • General - If (Conditions) then do (Actions) else do (Actions)
            • If
              • (Bank (Last opened bank) has "Hero" in section "SaveData") == true
            • Then
              • Bank - Restore "Hero" of section "SaveData" from bank (Last opened bank) for player iPlayer at Player Spawn Point 01 facing 0.0
              • Variable - Set PlayerHeroes[iPlayer] = (Last restored unit)
            • Else
              • UI - Display "Hero data not found." for (All players) to Subtitle area
              • CreatePlayerHero(iPlayer)
        • Else
          • UI - Display "Invalid bank file." for (All players) to Subtitle area

    but that functions returns only "Invalid bank file.", but, as i think, it should create (restore) "hero" unit. i use that function in Map Initialization trigger (only Map Initialization). trigger is used for 8 players, but while testing, there was only one (me). any ideas how to fix the problem?

    Posted in: Triggers
  • 0

    posted a message on Bank rarely reseted?
    Quote from Hookah604: Go

    There are 14 slot and I think I played with all slots, but I checked that I am saving and loading the banks for all slots before even making these thread:D

    I think he meant if you were testing the map with other players occupying other slots. By the way: if you were testing your map as local player, then you couldn't test if ALL banks were successfully loaded. Every bank is connected with a human player, not computer player, i think...

    Posted in: Triggers
  • 0

    posted a message on bank does not work properly - signature and values

    i think they don't. a couple of days ago i've been testing bank operations (preload, open, save, store) and i could load bank anytime i wanted to. i made a trigger, which was executed, when player typed "load" in chat messages. it worked properly, but now - none of the bank operation works :/ (except storing and saving) anyone knows the way to fix that?

    Posted in: Triggers
  • 0

    posted a message on bank does not work properly - signature and values

    i have a problem with trigger: i think i did everything ok, but when i test map by Test Document option - i get message, that the bank is not valid. i use signature for checking if the bank has been modified by game or not.

    i will attach image in a minute.

    if i use that trigger without Signature Option and without Verify Bank - i get "no value", this is strange too, because in the bank there is a value of the specified key and section.

    Posted in: Triggers
  • 0

    posted a message on [bank] encryption of Unit type variable

    now, i use a bank signature, but i think it is easy to modify... really noone can help?

    Posted in: Triggers
  • To post a comment, please or register a new account.