• 🏆 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!

stats buff not working , it does the special effect but the units don't get the bu(SOLVED)

Status
Not open for further replies.
Level 7
Joined
Oct 12, 2020
Messages
81
Screenshot (69).png
 

Uncle

Warcraft Moderator
Level 63
Joined
Aug 10, 2018
Messages
6,457
Your substring is going from the 6th letter of the chat string to the 5th. What you want to do is 6 -> Length of chat message.
  • Hero - Modify Intelligence of (Picked unit): Add (Integer((Substring((Entered chat string), 5, (Length of chat string))
- = 1
i = 2
n = 3
t = 4
space = 5
6 = the first digit of the integer you typed (if you typed one)
 
Level 7
Joined
Oct 12, 2020
Messages
81
Your substring is going from the 6th letter of the chat string to the 5th. What you want to do is 6 -> Length of chat message.
  • Hero - Modify Intelligence of (Picked unit): Add (Integer((Substring((Entered chat string), 5, (Length of chat string))
- = 1
i = 2
n = 3
t = 4
space = 5
6 = the first digit of the integer you typed (if you typed one)
oops my bad didn't even realize that
thanks for the help!
 
Status
Not open for further replies.
Top