im trying to make a trigger that is based on a player chat message.
the chat message needs to be used to create units.
basically the player would say a1-11 or a1-24
a1 would just mean area 1, thats definite, so im just putting a1- as the first string as a value.
the second part is two numbers. the first is suposed to be a unit type.
1 might mean footman, 2 might mean grunt, and 3 rifleman, etc.
and the second for how many, a number between 1 and 10, if possible.
Im trying to get the trigger to look something like this
Events -
Player Red types a1-((variable here... Integer?)(variable here Unit type?))
Player blue types a1-((variable here... Integer?)(variable here Unit type?))
Player teal types a1-((variable here... Integer?)(variable here Unit type?))
(etc.)
Conditions -
Actions
create (variable ... integer?) (variable - unittype?) for player neutral hostile at Area 1
I guess the trigger would work i could figure out how to set the variable depending on the chat message...
Im pretty sure the best way to do this is with variables, but as im pretty new to using warcraft editor, i dont really know what to do.
i dont no much about setting variables and such, and i dont no when or how to use array. If any1 could please help
the chat message needs to be used to create units.
basically the player would say a1-11 or a1-24
a1 would just mean area 1, thats definite, so im just putting a1- as the first string as a value.
the second part is two numbers. the first is suposed to be a unit type.
1 might mean footman, 2 might mean grunt, and 3 rifleman, etc.
and the second for how many, a number between 1 and 10, if possible.
Im trying to get the trigger to look something like this
Events -
Player Red types a1-((variable here... Integer?)(variable here Unit type?))
Player blue types a1-((variable here... Integer?)(variable here Unit type?))
Player teal types a1-((variable here... Integer?)(variable here Unit type?))
(etc.)
Conditions -
Actions
create (variable ... integer?) (variable - unittype?) for player neutral hostile at Area 1
I guess the trigger would work i could figure out how to set the variable depending on the chat message...
Im pretty sure the best way to do this is with variables, but as im pretty new to using warcraft editor, i dont really know what to do.
i dont no much about setting variables and such, and i dont no when or how to use array. If any1 could please help