|
|
|
|
|
|
pftq
Administrator
![*](https://www.pftq.com/forums/Themes/pq/images/staradmin.gif) ![*](https://www.pftq.com/forums/Themes/pq/images/staradmin.gif) ![*](https://www.pftq.com/forums/Themes/pq/images/staradmin.gif) ![*](https://www.pftq.com/forums/Themes/pq/images/staradmin.gif) ![*](https://www.pftq.com/forums/Themes/pq/images/staradmin.gif)
Offline
![](https://www.pftq.com/forums/index.php?action=dlattach;attach=314;type=avatar)
Posts: 4202
|
![](https://www.pftq.com/forums/Themes/pq/images/post/xx.gif) |
« Reply #51 on: September 23, 2007, 10:13:55 AM » |
|
then wouldn't the rmXFractionToMeters(rmPlayerLocXFraction(playa)) have to be a string too? and for the quotes does it make a difference to make the " as opposed to the ' or are they the same?
(and sorry for all the seemingly stupid questions but they make all the difference to me )
When you do integer+string, it converts the whole thing to string. So: 1+"2" = "12" 1+2 = 3 For integers + floats, it takes the type of the first number. 1.2*3 = 3.6 3*1.2 = 3
|
|
|
Logged
|
|
|
|
|
|
|
|
River_God
Member
![*](https://www.pftq.com/forums/Themes/pq/images/star.gif) ![*](https://www.pftq.com/forums/Themes/pq/images/star.gif) ![*](https://www.pftq.com/forums/Themes/pq/images/star.gif) ![*](https://www.pftq.com/forums/Themes/pq/images/star.gif) ![*](https://www.pftq.com/forums/Themes/pq/images/star.gif)
Offline
![](https://www.pftq.com/forums/index.php?action=dlattach;attach=57;type=avatar)
Posts: 184
|
![](https://www.pftq.com/forums/Themes/pq/images/post/xx.gif) |
« Reply #56 on: September 24, 2007, 06:01:29 PM » |
|
ok for the army deploy, how do I decide who's it is? The type test file only sais some things but not PlayerID
<Effect name="Army Deploy"> <Param name="SrcArmy" dispName="$$22348$$Army" VarType="group">default</Param> <Param name="ProtoName" dispName="$$22434$$ProtoName" varType="protounit">Villager</Param> <Param name="Location" dispName="" varType="area">0,0,0</Param> <Param name="Count" dispName="$$22435$$Count" varType="long">0</Param> <Param name="Heading" dispName="$$22432$$Heading" varType="long">0</Param> <Param name="Clear" dispName="$$22464$$Clear Existing Units:" varType="bool">true</Param> <Command>trArmyDispatch("%SrcArmy%", "%ProtoName%", %Count%, %Location%, %Heading%, %Clear%);</Command> </Effect>
Would it be the SrcArmy command? Then how do I make armies?
|
|
|
Logged
|
"I am not sure why people are so afraid of new ideas, I am afraid of the old ones" :p
|
|
|
|
|
|