Alliedassault           
FAQ Calendar
Go Back   Alliedassault > FPS Gaming General Discussion > MoH Maps, Mods & Skins
Reload this Page If-Then Statements
MoH Maps, Mods & Skins Discuss custom maps, skins and mods here.

Reply
 
Thread Tools Display Modes
If-Then Statements
Old
  (#1)
iNHuMaNe is Offline
Junior Member
 
Posts: 16
Join Date: Apr 2003
   
Default 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.
  
Reply With Quote
Old
  (#2)
iNHuMaNe is Offline
Junior Member
 
Posts: 16
Join Date: Apr 2003
   
Default 04-08-2003, 11:57 PM

Anyone?
  
Reply With Quote
Hmmm
Old
  (#3)
Brutal CarNage is Offline
Senior Member
 
Posts: 479
Join Date: Nov 2002
Location: Virginia
   
Default Hmmm - 04-08-2003, 11:58 PM

IF you goto Modding theater, THEN you may get the answer you need.
  
Reply With Quote
Old
  (#4)
iNHuMaNe is Offline
Junior Member
 
Posts: 16
Join Date: Apr 2003
   
Default 04-09-2003, 12:26 AM

ok . . . .not sure why I can't get it here, but what is the website?
  
Reply With Quote
Old
  (#5)
iNHuMaNe is Offline
Junior Member
 
Posts: 16
Join Date: Apr 2003
   
Default 04-09-2003, 12:30 AM

nm. i found it, but there is no where to talk on there. . . . http://www.modtheater.com right?
  
Reply With Quote
Here
Old
  (#6)
Brutal CarNage is Offline
Senior Member
 
Posts: 479
Join Date: Nov 2002
Location: Virginia
   
Default Here - 04-09-2003, 12:31 AM

http://www.modtheater.com/
  
Reply With Quote
Old
  (#7)
iNHuMaNe is Offline
Junior Member
 
Posts: 16
Join Date: Apr 2003
   
Default 04-09-2003, 12:33 AM

but they don't have any forums to talk on or anything. . .
  
Reply With Quote
Old
  (#8)
iNHuMaNe is Offline
Junior Member
 
Posts: 16
Join Date: Apr 2003
   
Default 04-09-2003, 12:34 AM

nm, found that too, sorry for ur hassal
  
Reply With Quote
Hmmm
Old
  (#9)
Brutal CarNage is Offline
Senior Member
 
Posts: 479
Join Date: Nov 2002
Location: Virginia
   
Default Hmmm - 04-09-2003, 12:38 AM

Try here as well...

http://www.mohfiles.com

http://www.alliedassault.us

They have forums as well.
  
Reply With Quote
Old
  (#10)
Dr. Deleto is Offline
Senior Member
 
Posts: 1,469
Join Date: Sep 2002
Location: At the bar
  Send a message via MSN to Dr. Deleto  
Default 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.
  
Reply With Quote
Old
  (#11)
iNHuMaNe is Offline
Junior Member
 
Posts: 16
Join Date: Apr 2003
   
Default 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.
  
Reply With Quote
Old
  (#12)
Simo Häyhä is Offline
Colonel
 
Simo Häyhä's Avatar
 
Posts: 8,177
Join Date: Dec 2002
Location: Ontario, New York
  Send a message via AIM to Simo Häyhä  
Default 04-09-2003, 01:02 AM

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


www.92bengals.com
It's like aa.com with more gay jokes.
  
Reply With Quote
Old
  (#13)
iNHuMaNe is Offline
Junior Member
 
Posts: 16
Join Date: Apr 2003
   
Default 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
  
Reply With Quote
Old
  (#14)
jv_map is Offline
Senior Member
 
Posts: 238
Join Date: Sep 2002
Location: Where I wanted to go today
  Send a message via MSN to jv_map  
Default 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.
  
Reply With Quote
Old
  (#15)
iNHuMaNe is Offline
Junior Member
 
Posts: 16
Join Date: Apr 2003
   
Default 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:
  
Reply With Quote
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



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.