![]() |
If-Then Statements
I don't know how many of you know VB, but innit you can make statements that have an If(Condition) and a Then(result). I was wondering if there was a way to do this in MOHAA Scripting, not OGL, but MOHAA.
Like If the players Health is less then 50, then Say "ouch' or something along those lines. If you know how please post or PM me. Thanks iNHuMaNe I.H. |
Anyone?
|
Hmmm
IF you goto Modding theater, THEN you may get the answer you need.
|
ok . . . .not sure why I can't get it here, but what is the website?
|
nm. i found it, but there is no where to talk on there. . . . http://www.modtheater.com right?
|
Here
|
but they don't have any forums to talk on or anything. . .
|
nm, found that too, sorry for ur hassal
|
Hmmm
|
I know a little VB and a lot of QB. Never really thought of usin it for moh tho except maybe to make some sort of anticheat interface. If you get any help be sure to share with me. I'd love to know if thats possible.
|
I am not really trying to use VB in MOHAA, tho that would be awesome, and would put no limits to what I could do, I was just using it's If-Then Statements as an example as to what I am looking for it to do. What I mean is a Cause, and the effect. Like when their health < 60 Then make them jump or say something.
|
cant do VB in mohaa, its written in openGL. theres no way
|
damnit, i know that, Forget i ever mention VB, I was just saying the it has If-Then Statements, and i want to know the equivalent in MOHAA scripting, not OGL, but MOHAA Scripting
|
if(condition)
{ // <-- execute this if true (condition is 1) } else // optional { // <-- execute this if false (condition is 0) } example [code:fad00] if($player.health < 50) { $player iprint "ouch!" } [/code:fad00] In this example you don't strictly need the curly braces as there's just one line below the if. |
Thanks for your responses, I now know what the script should look like, But I do not know how to implement it into the game. . .Any help would be appreciated.
Thanks, iNHuMaNe cool: |
All times are GMT -6. The time now is 04:54 PM. |
Powered by vBulletin® Version 3.8.12 by ScriptzBin
Copyright ©2000 - 2025, vBulletin Solutions Inc.
© 1998 - 2007 by Rudedog Productions | All trademarks used are properties of their respective owners. All rights reserved.