Spawn
Events
Player - Player 1 (Red) types a chat message containing -spawn as A substring
Conditions
(Entered chat string) Equal to (Substring(-spawn, 7, 10))
Actions
Unit - Create ??? Footman for Neutral Hostile at (Random point in Region 000 <gen>) facing Default building facing (270.0) degrees
Some how i want it to create the number of units that you use in the substring. How can i make a trigger like that?
Spawning Shit
Events
Player - Player 1 (Red) types a chat message containing -spawn as A substring
Conditions
Actions
Unit - Create (Integer((Substring((Entered chat string), 7, 10)))) Footman for Player 1 (Red) at (Where ever)) facing Default building facing (270.0) degrees
The commands would look like -spawn 10
This is a very basic command.
Contact me on WC3 Killing_Spree22, I'm at US west!
As far as I can see it doesn't leak a location just yet. It will though if he puts what he plans to put in it, Random point in Region 000 <gen>. ;/ And to fix that all he'd have to do is define a variable as Random point in Region 000 <gen> and then destroy the location and null the var after use.
Spawning Shit
Events
Player - Player 1 (Red) types a chat message containing -spawn as A substring
Conditions
Actions
Unit - Create (Integer((Substring((Entered chat string), 7, 10)))) Footman for Player 1 (Red) at (Where ever)) facing Default building facing (270.0) degrees
A location hasn't even been specified yet its where ever he wants to make it which he could put a global ter if he wanted to so do tell me what I'm missing.