User Tag List

Page 9 of 9 FirstFirst ... 7 8 9
Results 81 to 90 of 90

Thread: newww questions

  1. #81
    &&
    ZC Developer
    Joe123's Avatar
    Join Date
    Sep 2006
    Age
    32
    Posts
    3,061
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    7,303
    Level
    26
    vBActivity - Bars
    Lv. Percent
    8.71%

    Re: newww questions

    No I don't think they do.

    I'd bool personally though.

  2. #82
    Gibdo Master Maniac's Avatar
    Join Date
    Aug 2007
    Location
    umm in a house
    Age
    32
    Posts
    646
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    2,533
    Level
    16
    vBActivity - Bars
    Lv. Percent
    47.05%

    Re: newww questions

    umm... well i kinda got everything set up for it to check the HP already... i just changed it from checking the ffc's data to checking the enemies HP...

    i could change it to bool but it seems pointless to me.

    would you like to see it now?
    ... i just died a little inside...

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    "this time, of this sixteenth of a thousand lives will be my last, and this curse will be broken. though my fate is to burn in hell, it is worse to live among the thousand lifetimes that i have been sentenced to, than it would be to have satan tear the flesh from my body repeatedly for an eternity"

    --Andross Maximillion Remedy
    (otherwise known as Rem)

  3. #83
    &&
    ZC Developer
    Joe123's Avatar
    Join Date
    Sep 2006
    Age
    32
    Posts
    3,061
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    7,303
    Level
    26
    vBActivity - Bars
    Lv. Percent
    8.71%

    Re: newww questions

    If you want to show it to me

  4. #84
    Gibdo Master Maniac's Avatar
    Join Date
    Aug 2007
    Location
    umm in a house
    Age
    32
    Posts
    646
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    2,533
    Level
    16
    vBActivity - Bars
    Lv. Percent
    47.05%

    Re: newww questions

    ok then XD

    im sure that its done now too... except for attacking.

    Code:
    import "std.zh"
    ffc script eyesore{
    	void run(int barieo, int bar){
    
    		int x;	int y;
    		int speed = 2;
    
    		npc ghosted_hp_enemy1 = Screen->CreateNPC(barieo);
    		npc ghosted_hp_enemy2 = Screen->CreateNPC(barieo);
    		npc ghosted_hp_enemy3 = Screen->CreateNPC(barieo);
    		npc ghosted_hp_enemy4 = Screen->CreateNPC(barieo);		
    		ffc eye1 = Screen->LoadFFC(1);
    		ffc eye2 = Screen->LoadFFC(2);
    		ffc eye3 = Screen->LoadFFC(3);
    		ffc eye4 = Screen->LoadFFC(4);
    		ffc center = Screen->LoadFFC(5);
    		ghosted_hp_enemy1->HP = bar;
    		ghosted_hp_enemy2->HP = bar;
    		ghosted_hp_enemy3->HP = bar;
    		ghosted_hp_enemy4->HP = bar;
    
    		while (true){
    
    			eye1-> Vx = speed;
    			eye1-> Vy = speed;
    			ghosted_hp_enemy1->X = eye1-> X;
    			ghosted_hp_enemy1->Y = eye1-> Y;
    
    			if(Screen->ComboF[ComboAt(eye1->Y)] == 98){
    				eye1->Vy *= -1;
    				
    			}
    
    			if(Screen->ComboF[ComboAt(eye1->X)] == 98){
    				eye1-> Vx *= -1;
    
    			}
    
    			if((ghosted_hp_enemy1->HP)==0){
    				eye1->Data = 0;
    
    			}
    
    			eye2-> Vx = speed;
    			eye2-> Vy = speed;
    			ghosted_hp_enemy2->X = eye2-> X;
    			ghosted_hp_enemy2->Y = eye2-> Y;
    
    			if(Screen->ComboF[ComboAt(eye2->Y)] == 98){
    				eye2-> Vy *= -1;
    				
    			}
    
    			if(Screen->ComboF[ComboAt(eye2->X)] == 98){
    				eye2-> Vx *= -1;
    
    			}
    
    			if((ghosted_hp_enemy2->HP)==0){
    				eye2->Data = 0;
    
    			}
    
    			eye3-> Vx = speed;
    			eye3-> Vy = speed;
    			ghosted_hp_enemy3->X = eye3-> X;
    			ghosted_hp_enemy3->Y = eye3-> Y;
    
    			if(Screen->ComboF[ComboAt(eye3->Y)] == 98){
    				eye3-> Vy *= -1;	
    			}
    
    			if(Screen->ComboF[ComboAt(eye3->X)] == 98){
    				eye3-> Vx *= -1;
    
    			}
    
    			if((ghosted_hp_enemy3->HP)==0){
    				eye3->Data = 0;
    
    			}
    
    			eye4-> Vx = speed;
    			eye4-> Vy = speed;
    			ghosted_hp_enemy4->X = eye4-> X;
    			ghosted_hp_enemy4->Y = eye4-> Y;
    			
    			if(Screen->ComboF[ComboAt(eye4->Y)] == 98){
    				eye4-> Vy *= -1;
    				
    			}
    
    			if(Screen->ComboF[ComboAt(eye4->X)] == 98){
    				eye4-> Vx *= -1;
    
    			}
    
    			if((ghosted_hp_enemy4->HP)==0){
    				eye4->Data = 0;
    
    			}
    
    			if(ghosted_hp_enemy1->HP ==0 && ghosted_hp_enemy2->HP == 0 && ghosted_hp_enemy3->HP == 0 && ghosted_hp_enemy4->hp == 0){
    				center->Data = 0;
    
    			}
    
    			Waitframe();
    		}
    	}
    however, i would like to know how the best way to bool it is tho.

    would it be like this:
    Code:
    if(Bool(ghosted_hp_enemy1 && ghosted_hp_enemy2 && ghosted_hp_enemy3 && ghosted_hp_enemy4 == false)){
    or like this:
    Code:
    if(Bool(ghosted_hp_enemy1 == false) && Bool(ghosted_hp_enemy2 == false) && Bool(ghosted_hp_enemy3 == false) && Bool(ghosted_hp_enemy4 == false)){
    also, would i use one equal sign or 2? i understand that = means "is set to" and == means "is equal to" but im not sure which i would use with bool. and bool does need to be capitalized, too right?
    ... i just died a little inside...

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    "this time, of this sixteenth of a thousand lives will be my last, and this curse will be broken. though my fate is to burn in hell, it is worse to live among the thousand lifetimes that i have been sentenced to, than it would be to have satan tear the flesh from my body repeatedly for an eternity"

    --Andross Maximillion Remedy
    (otherwise known as Rem)

  5. #85
    &&
    ZC Developer
    Joe123's Avatar
    Join Date
    Sep 2006
    Age
    32
    Posts
    3,061
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    7,303
    Level
    26
    vBActivity - Bars
    Lv. Percent
    8.71%

    Re: newww questions

    'ComboAt(x,y)' takes two parameters.
    You can't put 'ComboAt(x)', because coordinates have two parts to them.

    You've done that a lot.


    And I don't know what you think you're doing with booleans, but it shouldn't be anything like that...

    A bool is just a variable with two states.
    So you do it like this:
    Code:
    	void run(){
    	bool eye1check;
    	bool eye2check;
    	//etc...
    	
    	//......
    		while(true){
    		//....
    
    			if(!eye1->IsValid) eye1check = true;
    			if(!eye2->IsValid) eye1check = true;
    			//etc...
    
    			if(eye1check && eye2check && etc){
    				//do stuff
    			}

  6. #86
    Gibdo Master Maniac's Avatar
    Join Date
    Aug 2007
    Location
    umm in a house
    Age
    32
    Posts
    646
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    2,533
    Level
    16
    vBActivity - Bars
    Lv. Percent
    47.05%

    Re: newww questions

    ...?

    this confuses me...

    i thought ! meant "not"?
    ... i just died a little inside...

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    "this time, of this sixteenth of a thousand lives will be my last, and this curse will be broken. though my fate is to burn in hell, it is worse to live among the thousand lifetimes that i have been sentenced to, than it would be to have satan tear the flesh from my body repeatedly for an eternity"

    --Andross Maximillion Remedy
    (otherwise known as Rem)

  7. #87
    &&
    ZC Developer
    Joe123's Avatar
    Join Date
    Sep 2006
    Age
    32
    Posts
    3,061
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    7,303
    Level
    26
    vBActivity - Bars
    Lv. Percent
    8.71%

    Re: newww questions

    It does, what's confusing?

  8. #88
    Gibdo Master Maniac's Avatar
    Join Date
    Aug 2007
    Location
    umm in a house
    Age
    32
    Posts
    646
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    2,533
    Level
    16
    vBActivity - Bars
    Lv. Percent
    47.05%

    Re: newww questions

    Code:
    			if(!eye1->IsValid) eye1check = true;
    			if(!eye2->IsValid) eye1check = true;
    this part. you said ! meant "not" right? then this says "if not eye1 is valid..."

    does this mean that "if anything other than eye1 exists"? of does it check near eye1 for anything out of the ordinary like flags?
    ... i just died a little inside...

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    "this time, of this sixteenth of a thousand lives will be my last, and this curse will be broken. though my fate is to burn in hell, it is worse to live among the thousand lifetimes that i have been sentenced to, than it would be to have satan tear the flesh from my body repeatedly for an eternity"

    --Andross Maximillion Remedy
    (otherwise known as Rem)

  9. #89
    The Time-Loop Continues ZC Developer
    Gleeok's Avatar
    Join Date
    Apr 2007
    Posts
    4,826
    Mentioned
    259 Post(s)
    Tagged
    10 Thread(s)
    vBActivity - Stats
    Points
    12,958
    Level
    33
    vBActivity - Bars
    Lv. Percent
    26.18%

    Re: newww questions

    isValid is a bool already. It can either mean true or false.




    So;
    if(!eye1->IsValid) eye1check = true;
    Translation:

    if eye1 is not found, (it died), eye1check becomes true.
    This post contains the official Gleeok seal of approval. Look for these and other posts in an area near you.

  10. #90
    Gibdo Master Maniac's Avatar
    Join Date
    Aug 2007
    Location
    umm in a house
    Age
    32
    Posts
    646
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    2,533
    Level
    16
    vBActivity - Bars
    Lv. Percent
    47.05%

    Re: newww questions

    ahh i understand now lol

    thank you gleeok =)
    ... i just died a little inside...

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    "this time, of this sixteenth of a thousand lives will be my last, and this curse will be broken. though my fate is to burn in hell, it is worse to live among the thousand lifetimes that i have been sentenced to, than it would be to have satan tear the flesh from my body repeatedly for an eternity"

    --Andross Maximillion Remedy
    (otherwise known as Rem)

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Armageddon Games is a game development group founded in 1997. We are extremely passionate about our work and our inspirations are mostly drawn from games of the 8-bit and 16-bit era.
Social