Results 1 to 3 of 3

Thread: Help with allowing char to run to another floor

  1. #1
    Normal User
    Join Date
    Jun 2012
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5

    Help with allowing char to run to another floor

    So im botting in 2 different floors, tho sometimes i only bot 1st floor and then sometimes i can go both floors, so this is how it looks like atm :

    Code:
    -- Setup
    -- Hunt Grounds
    
    area1 = ("true")
    area2 = ("true")
    Code:
    if(area2) then
       gotolabel("floor2")
    else
       gotolabel("floor1")
    end
    So if i write " False " on area 2 he would skip floor2 and go to floor1 instead, and if i "true" he would go down to floor2.

    is this possible ? help please

  2. #2
    Normal User
    Join Date
    Jul 2012
    Posts
    26
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    -- Setup
    -- Hunt Grounds

    area1 = true -- its need to be a bool variable not a string like area1 = ("true")
    area2 = true

  3. #3
    iBot User pink_panther's Avatar
    Join Date
    May 2012
    Location
    Australia
    Posts
    4,075
    Mentioned
    49 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    178 Post(s)
    Reputation
    309
    Rep Power
    10
    Quote Originally Posted by cpjohn View Post
    So im botting in 2 different floors, tho sometimes i only bot 1st floor and then sometimes i can go both floors, so this is how it looks like atm :

    Code:
    -- Setup
    -- Hunt Grounds
    
    area1 = ("true")
    area2 = ("true")
    Code:
    if(area2) then
       gotolabel("floor2")
    else
       gotolabel("floor1")
    end
    So if i write " False " on area 2 he would skip floor2 and go to floor1 instead, and if i "true" he would go down to floor2.

    is this possible ? help please
    Would actually need to look more like this...

    PHP Code:
    -- Setup
    -- Hunt Grounds

    area1 
    true
    area2 
    true 
    and...

    PHP Code:
    if area2 then 
    gotolabel
    ("floor2")
    else
    gotolabel("floor1")
    end 
    By the way, if 'bool' then assumes true, you dont need to write if area2 "== true" then

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •