Project X Forums



It is currently Fri Apr 19, 2024 3:52 am

All times are UTC




Post new topic Reply to topic  [ 99 posts ]  Go to page Previous  1 ... 4, 5, 6, 7, 8, 9, 10  Next
Author Message
 Post subject: Re: Highlander (strategic) (last updated 16/10/12) (V.1.3)
PostPosted: Sun Oct 28, 2012 7:24 pm 
Offline

Joined: Thu Oct 18, 2012 11:24 pm
Posts: 26
Right done it you can now kill a worm and get his remaming hp even if you kill him at full hp next step were making the lighting cloud have a chance to either instant kill a worm give hp or take hp away then after that a grenade that can steal hp of another worm and you will love this a samurai sword like in highlander the films is instant kill but once you kill worm with it lighting will strike that worm possibly give it 200 extra hp and any other worm around that worm will get hit by lighting and reduced hp by up to half of current hp gonna make this scheme the best there is.


Top
 Profile  
Reply with quote  
 Post subject: Re: Highlander (strategic) (last updated 16/10/12) (V.1.3)
PostPosted: Sun Oct 28, 2012 7:39 pm 
Offline
User avatar

Joined: Sat Nov 27, 2010 12:59 pm
Posts: 346
dassadasdsdadad i didn't understand anything
i already made the script for you, what else do you want
viewtopic.php?f=13&t=512


Top
 Profile  
Reply with quote  
 Post subject: Re: Highlander (strategic) (last updated 16/10/12) (V.1.3)
PostPosted: Sun Oct 28, 2012 7:48 pm 
Offline

Joined: Thu Oct 18, 2012 11:24 pm
Posts: 26
Thanks man well i managed to solve the problem well not really a problem just trying make this scheme here best it can be so many ideas for it.


Top
 Profile  
Reply with quote  
 Post subject: Re: Highlander (strategic) (last updated 16/10/12) (V.1.3)
PostPosted: Sun Oct 28, 2012 7:49 pm 
Offline

Joined: Thu Oct 18, 2012 11:24 pm
Posts: 26
And yeah i got dyslexia so i cant really punctuate so sorry you can read what ive put. oh and yeah why have you used 57 lines code to produce that i done about 3 lines code to steal hp from worm.


Top
 Profile  
Reply with quote  
 Post subject: Re: Highlander (strategic) (last updated 16/10/12) (V.1.3)
PostPosted: Sun Oct 28, 2012 7:56 pm 
Offline
User avatar

Joined: Sat Nov 27, 2010 12:59 pm
Posts: 346
curtcooll wrote:
And yeah i got dyslexia so i cant really punctuate so sorry you can read what ive put. oh and yeah why have you used 57 lines code to produce that i done about 3 lines code to steal hp from worm.

i ensured all cases, including plopping ;)
if you want, show me your method


Top
 Profile  
Reply with quote  
 Post subject: Re: Highlander (strategic) (last updated 16/10/12) (V.1.3)
PostPosted: Sun Oct 28, 2012 8:40 pm 
Offline

Joined: Thu Oct 18, 2012 11:24 pm
Posts: 26
There you go.

HPtoADD = GS->Info.Teams[WormTeam-1].Worms[WormNumber-1].DamageTaken;
int health = GS->Info.GetWormHealth(CurW->WormTeam, CurW->WormNumber);
GS->Info.SetWormHealth(CurW->WormTeam, CurW->WormNumber, health + HPtoADD);


Those 3 lines count for everything no matter what you do including plopping,and ive have tested every possible bug that could happen.


Top
 Profile  
Reply with quote  
 Post subject: Re: Highlander (strategic) (last updated 16/10/12) (V.1.3)
PostPosted: Sun Oct 28, 2012 8:59 pm 
Offline

Joined: Sun Oct 28, 2012 8:44 pm
Posts: 1
Below is the Code I wrote for highlander strategic
Remove the // to add this to your Highlander pxl

Code:
if(CurW != this && CurW != NullObj && CurW->dead != true)
{
   StealWeapons(CurW);
   //int HPtoADD = GS->Info.Teams[WormTeam-1].Worms[WormNumber-1].DamageTaken;             
   
   //int health = GS->Info.GetWormHealth(CurW->WormTeam, CurW->WormNumber);
   //GS->Info.SetWormHealth(CurW->WormTeam, CurW->WormNumber, health + HPtoADD);
}


GS->Info.Teams[WormTeam-1].Worms[WormNumber-1].DamageTaken;

This is the line that gets the HP done to the worm, I store this in a variable "HPtoADD".

The next two are pretty straight forward. As
GS->Info.SetWormHealth(Team#, Worm#, HealthToSet);
Sets the hp to an actual value, you need to get the original hp first with.
int health = GS->Info.GetWormHealth(Team#, Worm#);

use Set, Get and HPtoADD to add 'x' amount of HP to your original worms HP.


Top
 Profile  
Reply with quote  
 Post subject: Re: Highlander (strategic) (last updated 16/10/12) (V.1.3)
PostPosted: Mon Oct 29, 2012 8:10 am 
Offline

Joined: Thu Oct 18, 2012 11:24 pm
Posts: 26
Naleen why would you do this to me lol well on both our parts Sarah was one who made it i tried to help haha rather just play it. Made the lighting cloud put worms hp to 1 or give 25 or take away 25 hp at random. more to come


Top
 Profile  
Reply with quote  
 Post subject: Re: Highlander (strategic) (last updated 16/10/12) (V.1.3)
PostPosted: Tue Oct 30, 2012 9:48 am 
Offline
User avatar

Joined: Tue Oct 04, 2011 2:44 pm
Posts: 294
wow great idea! its good too see more active users on the forum.. great script.

_________________
“If you can't explain it simply, you don't understand it well enough” - Albert Einstein.


Top
 Profile  
Reply with quote  
 Post subject: Re: Highlander (strategic) (last updated 16/10/12) (V.1.4)
PostPosted: Tue Oct 30, 2012 4:47 pm 
Offline

Joined: Thu Oct 18, 2012 11:24 pm
Posts: 26
even got random stuff with lighting cloud makes worms hp go to 1 or even give or take 25 hp away it balances the steal hp so if u get a worm with say 600 hp u got 10% chance of reducing that worm to 1 its funny watching a guy with his last worm reduce his own hp.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 99 posts ]  Go to page Previous  1 ... 4, 5, 6, 7, 8, 9, 10  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 130 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Skin by Lucas Kane