I have this problem, you see, with trying to make a Ki battle system. What I'm trying to do, is if Powerlevel is equal to each other, I want it to bump it. I've got that part, however the part I don't have is if it's more than the other, push it towards the weaker opponent. By my logic, which most of the time has flaws, it should be something along the lines of if (src.PL > usr.PL) . If I'm wrong, could someone correct me, and guide me in the way of properly setting this up?
Edit: I also meant to add in that I am using the projectile Demo, http://www.byond.com/developer/Kaioken/ProjectileDemo, for this project.
-Sponge
ID:156423
Oct 12 2010, 4:29 pm (Edited on Oct 12 2010, 4:42 pm)
|
|
Oct 13 2010, 12:26 pm
|
|
Bump
|
You need to start off with some basics.
In general, yes, what you're saying could work in many situations. You can define a variable for the other mob you are attacking, though. This would be best, because it may not always be a client attacking another mob, it could be another mob attacking a client, a mob attacking a mob, etc. |
In response to OrangeWeapons
|
|
mob
var PL Stamina = 100 mob/proc BeamStruggle() if(usr.PL% > src.PL%) usr.Stam -=2 usr.Blast -=(-1) else if (usr.PL% < src.PL%) scr.Stam -=2 src.Blast -=(-1) else Bump() That's what I have so far. I need to delete the trail as it goes back, and extend the stronger one. Also, for some reason, on the if(usr.PL% > src.PL%), it says missing left-hand argument to > |
In response to Readingdrummer123
|
|