Click here to join us on IRC (#charas on irc.freenode.net)!
Maaaaaaaaaaaaaaaaaaan I missed you.
Maaaaaaaaaaaaaaan I missed that welcome.
If you thought of cross multiplying, you were right. For those of you who don't know, cross multiplying is the term for the metheod we'll use to solve this. Lets say the hero has 2 life left our of 10. And we're trying to find the percentage of that. Heres what the coding would look like. [percentage] = hero current life (2) [percentage] times 100 (percentage) [percentage] / hero complete life (10) we have 2, times 100 = 200, divided by 10 = 20. Thus, we'll get 20% as the amount of life left. Whenever you want to find a value that you can't get by using the variable options command (percentage for example) you need an algorithm to find the value. You need to think of what it needs to accomplish, and what you have to work with.
Originally posted by RPG noobYou want an event that loops with a condition switch (switch 1 on) which counts a seconds variable up to how ever many seconds you want until the players turn e.g 10. When it reaches 10 seconds make the event stop (switch 1 off) and show the commands. When the character has used a command flick the switch on and set the timer variable back to 0 and hopefully the process will start again.Sorry if thats a bit hard to understand