Alliedassault

Alliedassault (alliedassault.us/index.php)
-   MoH Maps, Mods & Skins (alliedassault.us/forumdisplay.php?f=11)
-   -   If-Then Statements (alliedassault.us/showthread.php?t=22685)

iNHuMaNe 04-08-2003 09:42 PM

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.

iNHuMaNe 04-08-2003 11:57 PM

Anyone?

Brutal CarNage 04-08-2003 11:58 PM

Hmmm
 
IF you goto Modding theater, THEN you may get the answer you need.

iNHuMaNe 04-09-2003 12:26 AM

ok . . . .not sure why I can't get it here, but what is the website?

iNHuMaNe 04-09-2003 12:30 AM

nm. i found it, but there is no where to talk on there. . . . http://www.modtheater.com right?

Brutal CarNage 04-09-2003 12:31 AM

Here
 
http://www.modtheater.com/

iNHuMaNe 04-09-2003 12:33 AM

but they don't have any forums to talk on or anything. . .

iNHuMaNe 04-09-2003 12:34 AM

nm, found that too, sorry for ur hassal

Brutal CarNage 04-09-2003 12:38 AM

Hmmm
 
Try here as well...

http://www.mohfiles.com

http://www.alliedassault.us

They have forums as well.

Dr. Deleto 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.

iNHuMaNe 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.

Simo Häyhä 04-09-2003 01:02 AM

cant do VB in mohaa, its written in openGL. theres no way

iNHuMaNe 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

jv_map 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.

iNHuMaNe 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:


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.