# Variable problem

**URL:** <https://forum.kirupa.com/t/variable-problem/245698>\
**Category:** Uncategorized\
**Created:** [December 3, 2007, 5:14am UTC](https://forum.kirupa.com/t/variable-problem/245698 "2007-12-03T05:14:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![leonthelion](https://avatars.discourse-cdn.com/v4/letter/l/58956e/32.png) [@leonthelion](https://forum.kirupa.com/u/leonthelion)\
**Post date:** [December 3, 2007, 5:14am UTC](https://forum.kirupa.com/t/variable-problem/245698/1 "2007-12-03T05:14:48Z")

</div>

Im having a really weird variable problem, for some reason the variable says something like 97,57, and then gets cut off, it should actually be less than 100 😛 heres my code(or similar)

```php
_root.atk=_global.atk+random(_global.maxattack)
_global.ehp-=atk

```

you also get a preview of my game 😛  
im gonna delete it in like 4 days though, so not everyone gets to play it \>=(  
anyway  
If you need anymore info just ask ^^  
Also tell what you think about the demo  
Also the guy never dies and you don’t get hurt yet 😛  
Thanks ^^  
[http://www.fileshack.us/get\_file.php?id=52428&file=Xin](http://www.fileshack.us/get_file.php?id=52428&file=Xin) Chapter 1.swf
