Jump to content

[LE] Real simple question that's probably dumb concerning Floats


Rizalgar

Recommended Posts

Ok, I'm wondering if I can call a Float from outside a Function/Event.


I ask because my attempts so far have been futile. So maybe one of you guys know a way, or whether it's even possible.

Edit 2 - I can post the actual script if prefered, it's not too long. Yet.

Edit 3 - Removed the dumb example script and replaced it with my actual script. Sorry, I have yet to figure out how to hide content so the scripts not spamming on page load.

 

Edit 4 - Ok, you CAN call from outside a function... However, it's not doing the multiplication part. I could use some advice as to why. Is there a max of one math function or something?

Float MXP = AStrikeXP + Damage * XPMultiplier

Is the bit in question

 

Figured it out. For anyone who runs across a similar error, all I had to do was change the XPMultiplier from a Float to an Int. Easy sauce.

Edited by Rizalgar
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...