none
Combining Variables RRS feed

  • Question

  • robotslaveselect[1]=999
    racename="robot"
    TextWindow.WriteLine(racename+slaveselect[1])

    Is there a way to fix this?

    This should happen.





    • Edited by Dinomite07 Saturday, April 25, 2015 6:49 PM
    Saturday, April 25, 2015 4:01 PM

Answers

  • How do you delete a graphics window rectangle? ????

    Filling it with BackgroundColor ??

    PS: To make the Shape transparent and only use it's border, you can use

    GraphicsWindow.BrushColor = "Transparent"

    or

    GraphicsWindow.BrushColor = "#00FFFFFF"

    instead.


    Saturday, April 25, 2015 7:08 PM
    Answerer
  • You can use a twe-dimensional array:
    racename="robot"
    slaveselect["robot"][1]=999
    TextWindow.WriteLine(slaveselect[racename][1])


    Jan [ WhTurner ] The Netherlands

    • Marked as answer by Dinomite07 Saturday, April 25, 2015 7:31 PM
    Saturday, April 25, 2015 5:03 PM
    Answerer

All replies

  • You can use a twe-dimensional array:
    racename="robot"
    slaveselect["robot"][1]=999
    TextWindow.WriteLine(slaveselect[racename][1])


    Jan [ WhTurner ] The Netherlands

    • Marked as answer by Dinomite07 Saturday, April 25, 2015 7:31 PM
    Saturday, April 25, 2015 5:03 PM
    Answerer
  • I also have this really long if statement, I don't know how to make it shorter.

       If slavetime[racename][a]=7 or slavetime[racename][a]=14 or slavetime[racename][a]=21 or slavetime[racename][a]=28 or slavetime[racename][a]=35 or slavetime[racename][a]=42 or slavetime[racename][a]=49 or slavetime[racename][a]=56 or slavetime[racename][a]=63 or slavetime[racename][a]=70 or slavetime[racename][a]=77 or slavetime[racename][a]=84 then







    • Edited by Dinomite07 Saturday, April 25, 2015 6:50 PM
    Saturday, April 25, 2015 5:06 PM
  • Hello Dinomite07

    Use

    Shapes.SetOpacity()

    to set the transparency level of a shape.

    Or

    use

    GraphicsWindow.DrawRectangle()
    to draw an outline of a shape. Inside of shape is empty.

    Saturday, April 25, 2015 6:06 PM
  • How do you delete a graphics window rectangle?
    I don't help with the transparency anymore.

    Got this >  GraphicsWindow.BrushColor = "#40FFFF00"

    :D

    • Edited by Dinomite07 Saturday, April 25, 2015 6:51 PM
    Saturday, April 25, 2015 6:39 PM
  • How do you delete a graphics window rectangle? ????

    Filling it with BackgroundColor ??

    PS: To make the Shape transparent and only use it's border, you can use

    GraphicsWindow.BrushColor = "Transparent"

    or

    GraphicsWindow.BrushColor = "#00FFFFFF"

    instead.


    Saturday, April 25, 2015 7:08 PM
    Answerer
  • long statemnet:

    tst=slavetime[racename][a]

    if Math.Remainder(tst,7)=0 And tst>0 And tst<85 Then

    If tst is always >0 and not greater then 84 you can delete both And's


    Jan [ WhTurner ] The Netherlands

    Sunday, April 26, 2015 9:57 AM
    Answerer