- 0
Script to compare actors stats/parameters for a challenge system?
Asked by
neiljwd
-
Recently Browsing 0 members
No registered users viewing this page.
Asked by
neiljwd
No registered users viewing this page.
Apologies, this may be a long post, and a confusing one, I'm very much a newb in abilities and knowledge of terms.
What I am wanting to achieve is comparison of multiple actors parameters/stats against anothers. IE Strength, Health, Intellect etc, all at the same time. For example:
Actor1's: Agility + Brawn + Cunning VS Actor 2's Dexterity + Endurance + Fierceness = ?
So I can have the Conditional Argument:
IF A+B+C > D + E + F
Then Option 1
Else Option 2.
This would be on the normal game screen when just wondering about and talking to people.
I can not for the life of me figure out a simple way to do this, beacuse I want to do this for 25 fights - they were going to be actors/party members for simplicitiy's sake.
So far I've got a LOT of Variables:
Actor1's Agility =v1. V1+ B = v2. v2+C = v3
Oppositions Dex = v4 v5+ E = v5 v6+F =v6
Then the challenge is if v3 is > v6 = Success, else Fail.
With 25 competitors (with 6 stats each not 3), and the fight progression I wish to employ it means storing 150ish variables. Seems like an excessively convulted way to do it. Is it the only way?
What I'm hoping is I can just call 2 scripts that reads something LIKE
$actor[1].hp + $actor[1].agi + $actor[1].HP = Variable 5
$party_actor[2].hp + $party_actor[2].pdef + $party_actor[2].mdef = Variable 6
Then a conditional v5 vs v6.
I could then just put whoever im challenging as party member 2, and have those 2 script calls every time.
I've just no idea how to add multiple values to each other in a script call. Got NO idea.
Anyhoo anyone got anything to add on the matter? I realise it's a long and strange question and I ask more in hope than in expectation. I'll check here regularly for any responses, please press me for any further information u need.
Thank you. :)
Edited by neiljwdShare this post
Link to post
Share on other sites