Warcraft III resources & community, 2003–2006 · archived

Rp command

9 posts
#1

Rp command

Is there a way that i can just not pick units 1 by one to make them spawn for it to go faster or am i just needing to do it 1 by 1?

I don't know if u understand...
#2
You can pick as many units as you want by the use of Unitgroup - Pick every unit in ...
Is that what u meant or is it something else ?
If so please explain more precisely
#3
What I am meaning is that when u play a Rp u type spawn ## unitname
but for tigerring it, am I need to select all the unit one by one to tigger this command
or can i just select all units at once to make the command
That my question
#4
U mean u want to spwan multiple unit-types at once ?
That should be like a trigger loop which spawns an unit-type array spawnunit[x] and that x is each integer from 1 to 12 for example
then you have to create a table in which you define the unit-types
spawnunit[1] == unit 1
spawnunit[2] == unit 2

of course this works also to spawn just one unit type
you will need one trigger with the definition table
one for the chatmsg
#5
No, I mean to select all units at once
#6
You will always have to create a list of possible units for a spawn there is no way to select all, afaik
#7
Wow that will be long :? than you any way
#8
Events:
Player 1 (Red) types a chat message containing spawn as A Substring
Player 2 (Blue) types a chat message containing spawn as A Substring
....(And so on until Player 12/10)

Conditions:
None

Actions:
Create 1 (Unit-Type((Substring((Entered Chat String), 7, 127)))) for (Triggering Player) at Position of Spawner facing (...)

Ok, this creates a unit by simply typing spawn Unittype.

spawn ghoul
spawn acolyte

Substrings? What does 7 and 127 mean?
7= The 7 is the spawn and the space after it.

spawn
123456

The 1 is the S, the 2 is the P, etc. The 7 starts in the next entered number or symbol after the space, so that's where you enter the unit type.

127 = I belive it's the maximum number of characters you can enter while playing.
For the spawner, you simply need creating a Footman custom unit and giving it a Start Location model, if you want, and set it's Collision Size to 0.00. The Start Location can be used by just double clicking on the Model File. Then you have a list of Units/Units-Missiles/Units-Special, etc. Select Extra. At the end of the list you'll see Start Location. Select it and press OK.
#9
Hu, for the substring in the action I just can't find it I have up to Unit-type of
I know i have to click on the triggering unit to change it but what for the substring?