Home   Help Search Login Register  

Author Topic: Prob With My Script  (Read 871 times)

0 Members and 2 Guests are viewing this topic.

BaKaRa

  • Guest
Prob With My Script
« on: 12 Jun 2003, 23:21:05 »
Hi Guys !
This Script Have To Check If The M2 (M2A) Is " Injured ". If It Is, S2, S3, S6, N2, N3 And N7 Are Able To Repair It.
My Prob Is When The M2 Is " Injured ", These Unit Don't Play The Animation And , Of Course, The M2 Is Always " Injured ". What The Fuck Is Not Working ? I Thought To Change " > " And "< " But Don't Work At All...
MayBe I Have To Use 2 Scripts?

There It Is:

#0
_Z=GetDammage M2A
?(_Z >= .5):GoTo "Z"
GoTo "0"
#Z
?(S2 Distance M2A < 2):GoTo "A"
?(S3 Distance M2A < 2):GoTo "B"
?(S6 Distance M2A < 2):GoTo "C"
?(N2 Distance M2A < 2):GoTo "D"
?(N3 Distance M2A < 2):GoTo "E"
?(N7 Distance M2A < 2):GoTo "F"
GoTo "0"
#A
?(_Z >= .5):Exit
S2 PlayMove "MedicToCombat"
~2
M2A SetDammage 0
Exit
#B
?(_Z >= .5):Exit
S3 PlayMove "MedicToCombat"
~2
M2A SetDammage 0
Exit
#C
?(_Z >= .5):Exit
S6 PlayMove "MedicToCombat"
~2
M2A SetDammage 0
Exit
#D
?(_Z >= .5):Exit
N2 PlayMove "MedicToCombat"
~2
M2A SetDammage 0
Exit
#E
?(_Z >= .5):Exit
N3 PlayMove "MedicToCombat"
~2
M2A SetDammage 0
Exit
#F
?(_Z >= .5):Exit
N7 PlayMove "MedicToCombat"
~2
M2A SetDammage 0
Exit

AnyBody Could Help ??? ?
 :-\

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:Prob With My Script
« Reply #1 on: 12 Jun 2003, 23:33:26 »
arghhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh

gloin red text my eyes hurt :P  8) <----- need sunglases now  :P

use da code thingy 2 display code next time ;)

Code: [Select]
it wil look like dat ;D
som comments bout ur script ;)

add delay in da main loop - or it wil drain meny CPU resources  :-X

u r checkin twice if da dammage is more (or equal) to 0.5 - 1st time 2 send medic 2 him - sec time 2 exit ? so wat does it helps u ?

Code: [Select]
?(_Z >= .5):GoTo "Z"

and

Code: [Select]
?(_Z >= .5):Exit
it wil goto somwere nd den imidietly exit from da script  :P

also change all da _Z things 2

Code: [Select]
GetDammage M2A
so in ur main loop will look like dat

Code: [Select]
#0
?(GetDammage M2A >= .5):GoTo "Z"
~0.1
GoTo "0"

:cheers:

LCD OUT
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta

BaKaRa

  • Guest
Re:Prob With My Script
« Reply #2 on: 12 Jun 2003, 23:37:16 »
Mmmmmmmm Ok Mr LCD ;)
I Will Try Now, Stay Here Please Just In Case  :-\
Sorry For The Red Text  ::)

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:Prob With My Script
« Reply #3 on: 12 Jun 2003, 23:40:40 »
im workin on somin (@ gameer - im finishin dat thin soon ;D - @ LCD tsk tsk deres IM sys here somwere ::) mebe i shud report maself ;D)

but ill get here every 20 mins i think ;) ;D

LCD OUT
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta

BaKaRa

  • Guest
Re:Prob With My Script
« Reply #4 on: 13 Jun 2003, 00:07:26 »
It' Always The Same Shit...
The Script " Updated "

___________________________________________________________

#0
?(GetDammage M2A >= .5):GoTo "Z"
~0.1
GoTo "0"
#Z
?(S2 Distance M2A < 2):GoTo "A"
?(S3 Distance M2A < 2):GoTo "B"
?(S6 Distance M2A < 2):GoTo "C"
?(N2 Distance M2A < 2):GoTo "D"
?(N3 Distance M2A < 2):GoTo "E"
?(N7 Distance M2A < 2):GoTo "F"
~0.1
GoTo "0"
#A
?(GetDammage M2A >= .5):Exit
S2 PlayMove "MedicToCombat"
~2
M2A SetDammage 0
Exit
#B
?(GetDammage M2A >= .5):Exit
S3 PlayMove "MedicToCombat"
~2
M2A SetDammage 0
Exit
#C
?(GetDammage M2A >= .5):Exit
S6 PlayMove "MedicToCombat"
~2
M2A SetDammage 0
Exit
#D
?(GetDammage M2A >= .5):Exit
N2 PlayMove "MedicToCombat"
~2
M2A SetDammage 0
Exit
#E
?(GetDammage M2A >= .5):Exit
N3 PlayMove "MedicToCombat"
~2
M2A SetDammage 0
Exit
#F
?(GetDammage M2A >= .5):Exit
N7 PlayMove "MedicToCombat"
~2
M2A SetDammage 0
Exit

___________________________________________________________

What's Fuckin' Wrong  :'( ?
LCD , U R The ONLY ONE Dat Can Help Me  :P  ::)
BaKaRa OUT  ;)

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:Prob With My Script
« Reply #5 on: 13 Jun 2003, 00:22:58 »
u r checkin twice if da dammage is more (or equal) to 0.5 - 1st time 2 send medic 2 him - sec time 2 exit ? so wat does it helps u ?

Code: [Select]
?(_Z >= .5):GoTo "Z"

and

Code: [Select]
?(_Z >= .5):Exit
it wil goto somwere nd den imidietly exit from da script  :P

dont u just luv 2 qoute uself ??? ;)

LCD OUT
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta

BaKaRa

  • Guest
Re:Prob With My Script
« Reply #6 on: 13 Jun 2003, 00:45:59 »
Ok My Script Work
Thanks For The Time LCD, I Hope You Will Quickly Make Addons For The Everon Cartel, I Saw The Trailer And I Want To Play Dat Fuckin' Mod  ;D Seems To Be Sooooooooooooooooooooo Great!

Here The Script FOr Who Want It...

_______________________________________________________________

#0
?(GetDammage M2A >= .5):GoTo "Z"
~0.1
GoTo "0"
#Z
~0.1
?(S2 Distance M2A < 2):GoTo "A"
?(S3 Distance M2A < 2):GoTo "B"
?(S6 Distance M2A < 2):GoTo "C"
?(N2 Distance M2A < 2):GoTo "D"
?(N3 Distance M2A < 2):GoTo "E"
?(N7 Distance M2A < 2):GoTo "F"
Exit
#A
S2 PlayMove "MedicToCombat"
~1
~2
M2A SetDammage 0
~1
Exit
#B
?(GetDammage M2A >= .5):Exit
S3 PlayMove "MedicToCombat"
~2
M2A SetDammage 0
Exit
#C
?(GetDammage M2A >= .5):Exit
S6 PlayMove "MedicToCombat"
~2
M2A SetDammage 0
Exit
#D
?(GetDammage M2A >= .5):Exit
N2 PlayMove "MedicToCombat"
~2
M2A SetDammage 0
Exit
#E
?(GetDammage M2A >= .5):Exit
N3 PlayMove "MedicToCombat"
~2
M2A SetDammage 0
Exit
#F
?(GetDammage M2A >= .5):Exit
N7 PlayMove "MedicToCombat"
~2
M2A SetDammage 0
Exit

__________________________________________________________