Home   Help Search Login Register  

Author Topic: Zombie guy  (Read 1850 times)

0 Members and 1 Guest are viewing this topic.

max_killer_payne

  • Guest
Zombie guy
« on: 22 Jul 2003, 19:48:51 »
im making a mission where there are zombies and I want them to be hard to kill I use this in a script:

Code: [Select]

#getdammage
GetDammage zombie> 0.9 : goto "heal"

#heal
zombie setdammage 0.8
goto "getdammage"

It works and everything. But I want after the loop has run 5 times, for the zombie 2 b able to die.

P.S Sorry if this got posted twice elsewhere, but it said Page Cannot Be Displayed so I presumed it wasnt posted
« Last Edit: 22 Jul 2003, 19:49:56 by max_killer_payne »

Offline dmakatra

  • Members
  • *
  • Better known as Armsty
Re:Zombie guy
« Reply #1 on: 22 Jul 2003, 19:51:49 »
I suck at scritpin but u could do it this way but it pobably wont work:

_killthatbastard = _killthatbastard + 5

#getdammage
GetDammage zombie> 0.9 : goto "heal"

#heal
zombie setdammage 0.8
_killthatbastard = _killthatbastard - 1
goto "getdammage"

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:Zombie guy
« Reply #2 on: 22 Jul 2003, 20:17:23 »
ny1 of u ever learned scriptin ? ::)

@ armsty

Quote
_killthatbastard = _killthatbastard + 5

he didnt set nythin 2 _killthatbastard @ start so he cant add 5 (wat +5 equals 2 ?)

da line shud b

_killthatbastard = 5

also u forgot 2 make him exit da script

? _killthatbastard <= 0 : exit

@ maxy

ur script is equal 2

#heal
zombie setdammage 0.8
goto "heal"

wich is fast loop dat drainslots of resources  (+ u forgot 2 put ny conditionals b4 da comndition ):P wat u ment (e thinks :P) is somin like

Code: [Select]
_killthatbastard = 5
#getdammage
? _killthatbastard <= 0 : exit
@ GetDammage zombie> 0.9 : goto "heal"

#heal
zombie setdammage 0.8
_killthatbastard  = _killthatbastard -1
goto "getdammage"

:P

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

max_killer_payne

  • Guest
Re:Zombie guy
« Reply #3 on: 22 Jul 2003, 20:26:01 »
cheers botha you. But I worked out how 2 do it just usin triggers  :P thnx ne way   ::)


Offline dmakatra

  • Members
  • *
  • Better known as Armsty
Re:Zombie guy
« Reply #4 on: 22 Jul 2003, 21:03:59 »
I told u I sucked. ;D :P

max_killer_payne

  • Guest
Re:Zombie guy
« Reply #5 on: 22 Jul 2003, 21:36:57 »
One quickie 4 the both of you. Just remember im pretty damn thick. What would i set _killthatbastard as?

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:Zombie guy
« Reply #6 on: 22 Jul 2003, 21:39:47 »
5 :P

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

max_killer_payne

  • Guest
Re:Zombie guy
« Reply #7 on: 22 Jul 2003, 21:46:57 »
Quote
5 :P


huh? Whaddya mean?

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:Zombie guy
« Reply #8 on: 22 Jul 2003, 21:48:28 »
Quote
What would i set _killthatbastard as?

5

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

max_killer_payne

  • Guest
Re:Zombie guy
« Reply #9 on: 22 Jul 2003, 21:54:24 »
O rite   ;D . I understand what you mean now *Slaps self extremely hard* :-[ owwww

But I dont think you quite understand what I mean. I mean do I have to name a unit _killthatbastard or name anything that?? or should I change _killthatbastard in the script to the name of my unit

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:Zombie guy
« Reply #10 on: 22 Jul 2003, 21:57:40 »
did u try da script as it is now ? :P

if deres somin u need 2 do we mention it :P

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

max_killer_payne

  • Guest
Re:Zombie guy
« Reply #11 on: 22 Jul 2003, 22:18:15 »
Alrite, cheers LCD

max_killer_payne

  • Guest
Re:Zombie guy
« Reply #12 on: 23 Jul 2003, 11:47:01 »
dont work   :-\

adamstanners

  • Guest
Re:Zombie guy
« Reply #13 on: 23 Jul 2003, 16:38:26 »
so this code makes people (zombies) invincible?  :D

Offline dmakatra

  • Members
  • *
  • Better known as Armsty
Re:Zombie guy
« Reply #14 on: 23 Jul 2003, 17:36:47 »
so this code makes people (zombies) invincible?  :D
Nope, it makes em tougher. I don't think u could make any1 invisibe in scripts.

Max: Have u named yer Zombie, "Zombie"? Tried to shoot him in the leg, not in the head?