User Tag List

Page 3 of 3 FirstFirst 1 2 3
Results 21 to 27 of 27

Thread: Climbing script

  1. #21
    &&
    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.62%

    Re: Climbing script

    Code:
    const int ClimbingFlag = 99;
    
    global script Slot_2{
    	void run(){
    		while(true){
    			//Other Global functions called before Waitdraw(); go here...
    			
    			
    			Waitdraw();
    			//Climbing script functions...
    			if((Screen->ComboF[ComboAt(Link->X+8, Link->Y+9)] == ClimbingFlag || Screen->ComboI[ComboAt(Link->X+8, Link->Y+9)] == ClimbingFlag) && Link->Z == 0){
    				Link->InputA = false;
    				Link->InputB = false;
    				Link->InputL = false;
     				Link->Dir = 0;
    			}
    			//Other Global Functions called after Waitdraw(); go here...
    			
    			
    		Waitframe();
    		}
    	}
    }
    And now for Climbing number 3!

    This time, it's a global script, as Waitdraw() doesn't work in FFC scripts.
    It's by far more simple to use. All you have to do is add this in as your global script, and then all instances in the game of Flag 99 will become ladders.
    Be wary that it'll only work with Diagonal Movement checked though.
    If you want to change the flag it uses, just edit the integer at the top.

    And if you want any help combining it with another global script (as we can only really have one), then I'll be happy to help =)

  2. #22
    Octorok
    Join Date
    Jan 2008
    Age
    32
    Posts
    129
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    938
    Level
    10
    vBActivity - Bars
    Lv. Percent
    63.32%

    Re: Climbing script

    Ohh thanks for that Joe123. :)

  3. #23
    &&
    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.62%

    Re: Climbing script

    No problem

  4. #24
    On top of the world ShadowTiger's Avatar
    Join Date
    Jun 2002
    Location
    Southeastern New York
    Posts
    12,231
    Mentioned
    31 Post(s)
    Tagged
    3 Thread(s)
    vBActivity - Stats
    Points
    29,578
    Level
    46
    vBActivity - Bars
    Lv. Percent
    60.3%
    Achievements It's over 9000!

    Re: Climbing script

    And if you want any help combining it with another global script (as we can only really have one), then I'll be happy to help =)
    Well a general description of the process in a few minutes couldn't hurt. :)

    Would they go after the //Other Global Functions called after Waitdraw(); go here... line but before the closing bracket?

  5. #25
    &&
    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.62%

    Re: Climbing script

    Oh, sorry.

    They would go after the '//Other Global functions called before Waitdraw(); go here...' line
    And before 'Waitdraw();' line.

    Unless they were functions that would be called after Waitdraw();, in which case they'd go where you said.
    But they're more likely to go in the first place.

  6. #26
    Octorok
    Join Date
    Jan 2008
    Age
    32
    Posts
    129
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    938
    Level
    10
    vBActivity - Bars
    Lv. Percent
    63.32%

    Re: Climbing script

    Yeah, hum, ComboAt doesn't seem to work in 864. Wouldn't it be ComboT instead?

    EDIT-Never mind... Forgot to import std.zh.

  7. #27
    Keese Rastael's Avatar
    Join Date
    Nov 2010
    Location
    Austria
    Age
    33
    Posts
    32
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    598
    Level
    8
    vBActivity - Bars
    Lv. Percent
    70.6%
    I have some toubles with the scripts:

    The ffc-scripts don't work, but it doesn't matter, cause I want to use the global script.
    The problem with the global-script is that I can use the A and B button, even on flag 99 (but there are lots of bugs, when I use the weapos, because of the upwards-facing)


    I'm using the newest windows build (actually 1330)

    Can anybody help me?












    Edit:
    It worked, after I put "Waitdraw();" between "}" and "Waitframe();", don't know, why...







    Edit2:
    OK, when I put "Waitdraw();" between "}" and "Waitframe();", the function of stoping the input works, but Link isn't facing upwards all the time.
    But when I let "Waitdraw();" on his orginal place, the facing-up function works, but the stop-input function not.
    What should I do?

    (sorry for my bad english)

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