I'm trying to edit my equipment menu so that when it shows the @new_atk, @new_pdef etc. It changes the font color depending on if the change is negative or positive.
This gives me a syntax error and I'm not sure as to why it does that. Its probably very obvious, and I'm an idiot. The main edit to the original is the 4th and 5th lines shown. Help?
Edit: I'm editing the window_EquipLeft here.
Code:
  if @new_atk != nil
   self.contents.font.color = system_color
   self.contents.draw_text(160, 160, 40, 32, "->", 1)
   self.contents.font.color = actor.atk > @new_atk ? (127, 0, 0, 255)
   actor.atk < @new_atk ? (0, 0, 127, 255) : (255, 255, 255, 255)
   self.contents.draw_text(200, 160, 36, 32, @new_atk.to_s, 2)
This gives me a syntax error and I'm not sure as to why it does that. Its probably very obvious, and I'm an idiot. The main edit to the original is the 4th and 5th lines shown. Help?
Edit: I'm editing the window_EquipLeft here.