MoH Maps, Mods & Skins Discuss custom maps, skins and mods here. |
 If-Then Statements |
|
|
Junior Member
Posts: 16
Join Date: Apr 2003
|
If-Then Statements -
04-08-2003, 09:42 PM
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.
|
|
|
 |
|
|
Junior Member
Posts: 16
Join Date: Apr 2003
|

04-08-2003, 11:57 PM
Anyone?
|
|
|
 |
 Hmmm |
|
|
Senior Member
Posts: 479
Join Date: Nov 2002
Location: Virginia
|
Hmmm -
04-08-2003, 11:58 PM
IF you goto Modding theater, THEN you may get the answer you need.
|
|
|
 |
|
|
Junior Member
Posts: 16
Join Date: Apr 2003
|

04-09-2003, 12:26 AM
ok . . . .not sure why I can't get it here, but what is the website?
|
|
|
 |
|
|
Junior Member
Posts: 16
Join Date: Apr 2003
|

04-09-2003, 12:30 AM
nm. i found it, but there is no where to talk on there. . . . http://www.modtheater.com right?
|
|
|
 |
 Here |
|
|
Senior Member
Posts: 479
Join Date: Nov 2002
Location: Virginia
|
Here -
04-09-2003, 12:31 AM
|
|
|
 |
|
|
Junior Member
Posts: 16
Join Date: Apr 2003
|

04-09-2003, 12:33 AM
but they don't have any forums to talk on or anything. . .
|
|
|
 |
|
|
Junior Member
Posts: 16
Join Date: Apr 2003
|

04-09-2003, 12:34 AM
nm, found that too, sorry for ur hassal
|
|
|
 |
 Hmmm |
|
|
Senior Member
Posts: 479
Join Date: Nov 2002
Location: Virginia
|
Hmmm -
04-09-2003, 12:38 AM
|
|
|
 |
|
|
Senior Member
Posts: 1,469
Join Date: Sep 2002
Location: At the bar
|

04-09-2003, 12:46 AM
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.
|
|
|
 |
|
|
Junior Member
Posts: 16
Join Date: Apr 2003
|

04-09-2003, 12:52 AM
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.
|
|
|
 |
|
|
Colonel
Posts: 8,177
Join Date: Dec 2002
Location: Ontario, New York
|

04-09-2003, 01:02 AM
cant do VB in mohaa, its written in openGL. theres no way
|
|
|
 |
|
|
Junior Member
Posts: 16
Join Date: Apr 2003
|

04-09-2003, 02:13 AM
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
|
|
|
 |
|
|
Senior Member
Posts: 238
Join Date: Sep 2002
Location: Where I wanted to go today
|

04-09-2003, 04:42 AM
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.
|
|
|
 |
|
|
Junior Member
Posts: 16
Join Date: Apr 2003
|

04-09-2003, 02:04 PM
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:
|
|
|
 |
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
Powered by vBulletin® Version 3.8.12 by ScriptzBin Copyright ©2000 - 2025, vBulletin Solutions Inc.
vBulletin Skin developed by: vBStyles.com

© 1998 - 2007 by Rudedog Productions | All trademarks used are properties of their respective owners. All rights reserved.
|