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

changing units size via trigger

Status
Not open for further replies.
Level 5
Joined
Sep 27, 2011
Messages
141
I have a problem with my trigger to change a units size I dont actually know wether it is the trigger or not but it seems that only the length plays a part in altering the units size for example i can change height and width is much as I want but unless i change the length it will not do anything anyway here is my trigger.
Hero Size
Events
Player - Player 1 (Red) types a chat message containing - as A substring
Player - Player 2 (Blue) types a chat message containing - as A substring
Player - Player 3 (Teal) types a chat message containing - as A substring
Player - Player 4 (Purple) types a chat message containing - as A substring
Conditions
Confirmed[(Player number of (Triggering player))] Equal to True
Actions
Set Number = (Player number of (Triggering player))
Set Single_Player = (All players matching ((Matching player) Equal to (Triggering player)))
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Entered chat string) Equal to -back
Then - Actions
Set Confirmed[Number] = False
Custom script: call DestroyForce(udg_Single_Player)
Skip remaining actions
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Entered chat string) Equal to (-height + (Substring((Entered chat string), 9, 11)))
Then - Actions
Set Height[Number] = (Real((Substring((Entered chat string), 9, 11))))
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Height[Number] Greater than 150.00
Then - Actions
Set Height[Number] = 150.00
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Height[Number] Less than 50.00
Then - Actions
Set Height[Number] = 50.00
Else - Actions
Animation - Change Hero[Number]'s size to (Length[Number]%, Width[Number]%, Height[Number]%) of its original size
Cinematic - Clear the screen of text messages for Single_Player
Game - Display to Single_Player for 1000.00 seconds the text: (|c00FF0303Length|r: + ((String((Integer(Length[Number])))) + %))
Game - Display to Single_Player for 1000.00 seconds the text: (|c000042FFWidth|r: + ((String((Integer(Width[Number])))) + %))
Game - Display to Single_Player for 1000.00 seconds the text: (|c0020C000Height|r: + ((String((Integer(Height[Number])))) + %))
Custom script: call DestroyForce(udg_Single_Player)
Skip remaining actions
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Entered chat string) Equal to (-length + (Substring((Entered chat string), 9, 11)))
Then - Actions
Set Length[Number] = (Real((Substring((Entered chat string), 9, 11))))
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Length[Number] Greater than 150.00
Then - Actions
Set Length[Number] = 150.00
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Length[Number] Less than 50.00
Then - Actions
Set Length[Number] = 50.00
Else - Actions
Animation - Change Hero[Number]'s size to (Length[Number]%, Width[Number]%, Height[Number]%) of its original size
Cinematic - Clear the screen of text messages for Single_Player
Game - Display to Single_Player for 1000.00 seconds the text: (|c00FF0303Length|r: + ((String((Integer(Length[Number])))) + %))
Game - Display to Single_Player for 1000.00 seconds the text: (|c000042FFWidth|r: + ((String((Integer(Width[Number])))) + %))
Game - Display to Single_Player for 1000.00 seconds the text: (|c0020C000Height|r: + ((String((Integer(Height[Number])))) + %))
Custom script: call DestroyForce(udg_Single_Player)
Skip remaining actions
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Entered chat string) Equal to (-width + (Substring((Entered chat string), 8, 10)))
Then - Actions
Set Width[Number] = (Real((Substring((Entered chat string), 8, 10))))
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Width[Number] Greater than 150.00
Then - Actions
Set Width[Number] = 150.00
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Width[Number] Less than 50.00
Then - Actions
Set Width[Number] = 50.00
Else - Actions
Animation - Change Hero[Number]'s size to (Length[Number]%, Width[Number]%, Height[Number]%) of its original size
Cinematic - Clear the screen of text messages for Single_Player
Game - Display to Single_Player for 1000.00 seconds the text: (|c00FF0303Length|r: + ((String((Integer(Length[Number])))) + %))
Game - Display to Single_Player for 1000.00 seconds the text: (|c000042FFWidth|r: + ((String((Integer(Width[Number])))) + %))
Game - Display to Single_Player for 1000.00 seconds the text: (|c0020C000Height|r: + ((String((Integer(Height[Number])))) + %))
Custom script: call DestroyForce(udg_Single_Player)
Else - Actions

also how do you make it actually show up as a trigger instead of words?
 
Status
Not open for further replies.
Top