User Tag List

Page 2 of 2 FirstFirst 1 2
Results 11 to 16 of 16

Thread: Doppelganger Replicator

  1. #11
    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,960
    Level
    33
    vBActivity - Bars
    Lv. Percent
    26.34%

    Re: Doppelganger Replicator

    OK, I think should work fine. Feel free to ask any questions.

    Also; What ffc would you permanently want to use as Link? 32 maybe? I'll add that part later. I gotta run right now.



    Code:
    // pickup scripts
    
    item script pickup1{
    	void run(){
    		item_a = true;
    	}
    }
    
    item script pickup2{
    	void run(){
    		item_b = true;
    	}
    }
    
    item script pickup3{
    	void run(){
    		item_c = true;
    	}
    }
    
    item script pickup4{
    	void run(){
    		item_d = true;
    	}
    }
    
    //GLOBAL VARS --------------------------
    bool dop_is_active = false;
    
    bool item_a = false; //you need to attach pickup scripts to all these items
    bool item_b = false; //unless you want link to start with it, then set that one to true
    bool item_c = false;
    bool item_d = false;
    
    int a = 0; //set the id's here
    int b = 0;
    int c = 0;
    int d = 0;
    int e = 0;
    int f = 0;
    
    int ring = 0; // the 256 damage divisor ring
    
    int a1 = 0; // id's to give when used
    int b1 = 0;
    
    //--------------------------------------
    
    item script dop{
    	void run(){
    
    		if(dop_is_active==false){
    
    			dop_is_active==true;
    			Link->Item[ring]==true;
    
    			if(Link->Item[a])Link->Item[a]==false; 
    			if(Link->Item[b])Link->Item[b]==false;
    			if(Link->Item[c])Link->Item[c]==false;
    			if(Link->Item[d])Link->Item[d]==false;
    
    			// copy/paste as needed
    
    			if(Link->Item[a1]==false)Link->Item[a1]==true;
    			if(Link->Item[b1]==false)Link->Item[b1]==true;
    
    		}
    		else { // is true
    
    			dop_is_active==false;
    			Link->Item[ring]==false;
    
    			if(Link->Item[a]==false && item_a)Link->Item[a]==true;
    			if(Link->Item[b]==false && item_b)Link->Item[b]==true;
    			if(Link->Item[c]==false && item_c)Link->Item[c]==true;
    			if(Link->Item[d]==false && item_d)Link->Item[d]==true;
    
    
    			if(Link->Item[a1])Link->Item[a1]==false;	
    			if(Link->Item[b1])Link->Item[b1]==false;
    		}
    	}
    }	
    
    
    
    
    global script glob{
    	void run(){
    		while(true){
    
    //if you have another global script then cut here ------>8------
    
    			if(dop_is_active){
    
    				if(Link->MP==0 || Link->Action == LA_DROWNING){
    
    					//the else code of the item -------
    					//script is copy/pasted here!------
    
    				dop_is_active==false; 
    				}
    
    				Link->MP -= 1; //mp drain rate
    			}
    		Waitframe();
    		}
    	}
    }
    This post contains the official Gleeok seal of approval. Look for these and other posts in an area near you.

  2. #12
    Wizrobe The_Amaster's Avatar
    Join Date
    Dec 2005
    Location
    St. Mystere
    Age
    33
    Posts
    3,803
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    8,812
    Level
    28
    vBActivity - Bars
    Lv. Percent
    26.26%

    Re: Doppelganger Replicator

    Okay, just a few. You have me set A and A1. It looks like A1 is the given items, so, is A the items it takes away?
    And I don't quite understand what the pickup scripts are for.
    Also, how unfinished is it, as evidenced by your "I gotta run"?
    And finally, thank you sooo much. I really needed this.

    EDIT: Nevermind, I just looked at it harder and answered the first question myself. The other two still stand though.

  3. #13
    Polymorph
    Guest

    Re: Doppelganger Replicator

    I think the pickup scripts are what items you keep. (or get.)

  4. #14
    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,960
    Level
    33
    vBActivity - Bars
    Lv. Percent
    26.34%

    Re: Doppelganger Replicator

    Nuts, I forgot all about this. Did you get it working how you wanted it? What's the leftover damage that needs to be improved or finished?
    This post contains the official Gleeok seal of approval. Look for these and other posts in an area near you.

  5. #15
    Wizrobe The_Amaster's Avatar
    Join Date
    Dec 2005
    Location
    St. Mystere
    Age
    33
    Posts
    3,803
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    8,812
    Level
    28
    vBActivity - Bars
    Lv. Percent
    26.26%

    Re: Doppelganger Replicator

    Okay, Gleeok, this looks really good. If you can just have it create FFC 32(works as well as any) where Link was standing at the time of activation. Only how do I get it to be invisible until he activates? And then that should be it.

    EDIT: Okay, it compiles fine (which makes sense) but it doesn't seem to do anything. I have it set up to take away the sword, candle and boomerang. Now, I've entered those item values into the script, and given each the corosponding pickup script.
    You, know what, I'm just going to attach my test-quest. Umm, there are some other scripts above it, so you may need to scroll down a bit.
    Download

  6. #16
    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,960
    Level
    33
    vBActivity - Bars
    Lv. Percent
    26.34%

    Re: Doppelganger Replicator

    What version is that for? ...Oh wait, it's probably the newest one...I'll have to check it out.....

    ..yeah, I'll see what the problem is.


    ..I just thought of something cool...An item that gives you a fire Gleeok attack...fire breath!

    Ooh, i've got another: Homing bombs...bomchu's! ...wait, i've basically got that one already....clash man. That's like the same thing.
    This post contains the official Gleeok seal of approval. Look for these and other posts in an area near you.

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