• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

need help with 2 triggers

Status
Not open for further replies.
Level 2
Joined
Oct 15, 2007
Messages
5
hello im new this is my first post so here we go
i got a multiboard that when the numbers change i get a fatal error here is a trigger:

  • start it
    • Events
      • Time - Elapsed game time is 1.00 seconds
    • Conditions
    • Actions
      • -------- Title --------
      • Multiboard - Create a multiboard with 4 columns and 12 rows, titled Deserts of Fire: Sc...
      • Multiboard - Hide (Last created multiboard)
      • -------- Text Colors --------
      • Multiboard - Change the color of the title for (Last created multiboard) to (100.00%, 0.00%, 0.00%) with 0.00% transparency
      • Multiboard - Change the color of the title for (Last created multiboard) to (100.00%, 0.00%, 0.00%) with 0.00% transparency
      • Multiboard - Change the color of the title for (Last created multiboard) to (100.00%, 0.00%, 0.00%) with 0.00% transparency
      • Multiboard - Change the color of the title for (Last created multiboard) to (100.00%, 0.00%, 0.00%) with 0.00% transparency
      • -------- Display for all cells --------
      • Multiboard - Set the display style for (Last created multiboard) item in column 0, row 0 to Show text and Hide icons
      • -------- General cell spacing --------
      • Multiboard - Set the width for (Last created multiboard) item in column 0, row 0 to 3.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 1, row 0 to 7.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 2, row 0 to 4.00% of the total screen width
      • -------- HEADERS --------
      • Multiboard - Set the text for (Last created multiboard) item in column 1, row 1 to Humans
      • Multiboard - Set the text for (Last created multiboard) item in column 2, row 1 to Levels
      • Multiboard - Set the text for (Last created multiboard) item in column 3, row 1 to Kills
      • Multiboard - Set the text for (Last created multiboard) item in column 4, row 1 to PK's
      • Multiboard - Set the text for (Last created multiboard) item in column 1, row 7 to Scourge
      • Multiboard - Set the text for (Last created multiboard) item in column 2, row 7 to Level
      • Multiboard - Set the text for (Last created multiboard) item in column 3, row 7 to Kills
      • Multiboard - Set the text for (Last created multiboard) item in column 4, row 7 to PK's
      • For each (Integer A) from 2 to 6, do (Actions)
        • Loop - Actions
          • Multiboard - Set the width for (Last created multiboard) item in column 1, row (Integer A) to 7.00% of the total screen width
          • Multiboard - Set the width for (Last created multiboard) item in column 2, row (Integer A) to 4.00% of the total screen width
          • Multiboard - Set the color for (Last created multiboard) item in column 1, row (Integer A) to (100.00%, 80.00%, 20.00%) with 0.00% transparency
          • Multiboard - Set the text for (Last created multiboard) item in column 1, row (Integer A) to ((Name of (Player(((Integer A) - 1)))) + <Empty String>)
          • Multiboard - Set the text for (Last created multiboard) item in column 2, row (Integer A) to 1
          • Multiboard - Set the text for (Last created multiboard) item in column 3, row (Integer A) to 0
          • Multiboard - Set the text for (Last created multiboard) item in column 4, row (Integer A) to 0
      • For each (Integer A) from 8 to 12, do (Actions)
        • Loop - Actions
          • Multiboard - Set the width for (Last created multiboard) item in column 1, row (Integer A) to 7.00% of the total screen width
          • Multiboard - Set the width for (Last created multiboard) item in column 2, row (Integer A) to 4.00% of the total screen width
          • Multiboard - Set the color for (Last created multiboard) item in column 1, row (Integer A) to (100.00%, 80.00%, 20.00%) with 0.00% transparency
          • Multiboard - Set the text for (Last created multiboard) item in column 1, row (Integer A) to ((Name of (Player(((Integer A) - 2)))) + <Empty String>)
          • Multiboard - Set the text for (Last created multiboard) item in column 2, row (Integer A) to 1
          • Multiboard - Set the text for (Last created multiboard) item in column 3, row (Integer A) to 0
          • Multiboard - Set the text for (Last created multiboard) item in column 4, row (Integer A) to 0
      • For each (Integer A) from 2 to 6, do (Actions)
        • Loop - Actions
          • If (((Player((Integer A))) slot status) Equal to Is unused) then do (Multiboard - Set the display style for (Last created multiboard) item in column 0, row ((Player number of (Player((Integer A)))) + 1) to Hide text and Hide icons) else do (Do nothing)
      • For each (Integer A) from 2 to 6, do (Actions)
        • Loop - Actions
          • If (((Player((Integer A))) slot status) Equal to Is unused) then do (Multiboard - Set the display style for (Last created multiboard) item in column 0, row ((Player number of (Player((Integer A)))) + 2) to Hide text and Hide icons) else do (Do nothing)
      • Multiboard - Show (Last created multiboard)
hero level part:
  • level
    • Events
      • Unit - A unit Gains a level
    • Conditions
    • Actions
      • Multiboard - Set the text for (Last created multiboard) item in column 3, row ((Player number of (Owner of (Leveling Hero))) + 1) to (String((Hero level of (Leveling Hero))))
unit kills
  • Events
    • Unit - A unit Dies
  • Conditions
    • ((Dying unit) is A Hero) Equal to False
    • (Owner of (Dying unit)) Not equal to (Owner of (Killing unit))
  • Actions
    • Set kills[(Player number of (Owner of (Killing unit)))] = kills[((Player number of (Owner of (Killing unit))) + 1)]
    • Multiboard - Set the text for (Last created multiboard) item in column 4, row 2 to (String(kills[1]))
    • Multiboard - Set the text for (Last created multiboard) item in column 4, row 3 to (String(kills[2]))
    • Multiboard - Set the text for (Last created multiboard) item in column 4, row 4 to (String(kills[3]))
    • Multiboard - Set the text for (Last created multiboard) item in column 4, row 5 to (String(kills[4]))
    • Multiboard - Set the text for (Last created multiboard) item in column 4, row 6 to (String(kills[5]))
    • Multiboard - Set the text for (Last created multiboard) item in column 4, row 8 to (String(kills[6]))
    • Multiboard - Set the text for (Last created multiboard) item in column 4, row 9 to (String(kills[7]))
    • Multiboard - Set the text for (Last created multiboard) item in column 4, row 10 to (String(kills[8]))
    • Multiboard - Set the text for (Last created multiboard) item in column 4, row 11 to (String(kills[9]))
    • Multiboard - Set the text for (Last created multiboard) item in column 4, row 12 to (String(kills[10]))
player kills:
  • player kills
    • Events
      • Unit - A unit Dies
    • Conditions
      • ((Dying unit) is A Hero) Equal to True
      • ((Killing unit) belongs to an enemy of (Owner of (Dying unit))) Equal to True
    • Actions
      • Set pk[(Player number of (Owner of (Killing unit)))] = pk[((Player number of (Owner of (Killing unit))) + 1)]
      • Multiboard - Set the text for (Last created multiboard) item in column 4, row 2 to (String(pk[1]))
      • Multiboard - Set the text for (Last created multiboard) item in column 4, row 3 to (String(pk[2]))
      • Multiboard - Set the text for (Last created multiboard) item in column 4, row 4 to (String(pk[3]))
      • Multiboard - Set the text for (Last created multiboard) item in column 4, row 5 to (String(pk[4]))
      • Multiboard - Set the text for (Last created multiboard) item in column 4, row 6 to (String(pk[5]))
      • Multiboard - Set the text for (Last created multiboard) item in column 4, row 8 to (String(pk[6]))
      • Multiboard - Set the text for (Last created multiboard) item in column 4, row 9 to (String(pk[7]))
      • Multiboard - Set the text for (Last created multiboard) item in column 4, row 10 to (String(pk[8]))
      • Multiboard - Set the text for (Last created multiboard) item in column 4, row 11 to (String(pk[9]))
      • Multiboard - Set the text for (Last created multiboard) item in column 4, row 12 to (String(pk[10]))
ok thats the multi board now for my spell trigger:
  • Watery Wrath spell
    • Events
      • Unit - A unit Is attacked
    • Conditions
      • (Integer((Mana of (Attacking unit)))) Greater than or equal to 40
      • (((Attacking unit) has buff Watery Wrath ) Equal to True) and ((Random integer number between 1 and 1000) Less than or equal to (((Level of Watery Wrath for (Attacking unit)) x 50) + 150))
      • ((Attacked unit) is A structure) Not equal to True
    • Actions
      • Unit - Set mana of (Attacking unit) to ((Mana of (Attacking unit)) - 40.00)
      • Unit - Create 1 dummy for (Owner of (Attacking unit)) at (Position of (Attacking unit)) facing 0.00 degrees
      • Unit - Add a 1.50 second Generic expiration timer to (Last created unit)
      • Unit - Add watery wrath dummy to (Last created unit)
      • Unit - Set level of watery wrath dummy for (Last created unit) to (Level of Watery Wrath for (Attacking unit))
      • Unit - Order (Last created unit) to Night Elf Warden - Shadow Strike (Attacked unit)
my spell does like 60 damage then 2 damage each .0 sec for 10000000 secs i check the object editor
 
Last edited:
Level 2
Joined
Oct 15, 2007
Messages
5
in object editor looks liek this:
decay power 3
decay power 3
decay power 3
decay power 3
decay power 3

decay damage 2
decay damage 4
decay damage 6
decay damage 8
decay damage 10

inital damage 60
inital damage 120
inital damage 180
inital damage 240
inital damage 300

i fixed the board i jut need help with the spell plz
 
Last edited:
Status
Not open for further replies.
Top