Hello Guest, please login or register.
Did you miss your activation email?
Login with username, password and session length.

Pages: [1]   Go Down

Author Topic: request-zelda mc chest opening gm7  (Read 1492 times)

0 Members and 1 Guest are viewing this topic.
request-zelda mc chest opening gm7
« on: April 14, 2008, 10:06:05 pm »
  • You got the Master Sword!
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 255
anybody able to help me? :huh:
Logged

Come hither o traveler... I sing ye a song yet so melancholy, my voice speaketh the epitaph of darkness.Come into my world young Hylian.Darkest apocalypse hour approaches...Awaken from thy slumber whilst destiny's dreaming of ye soul. Dost thou haveith the time to end thy slumber? Lest thee interfere with my plan, death shall find ye!My mask sees the beginning is the end...I am Majora!
  • zfgc
Re: request-zelda mc chest opening gm7
« Reply #1 on: April 17, 2008, 12:29:49 am »
  • You got the Master Sword!
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 255
come on no body i really need the help i cant figure it out i allways fail...
Logged

Come hither o traveler... I sing ye a song yet so melancholy, my voice speaketh the epitaph of darkness.Come into my world young Hylian.Darkest apocalypse hour approaches...Awaken from thy slumber whilst destiny's dreaming of ye soul. Dost thou haveith the time to end thy slumber? Lest thee interfere with my plan, death shall find ye!My mask sees the beginning is the end...I am Majora!
  • zfgc
Re: request-zelda mc chest opening gm7
« Reply #2 on: April 18, 2008, 10:18:47 pm »
  • The king of Awesome
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Posts: 198
OMFG!!

ok in the chest object, make a collision with the hero object.

Create Event:
open_chest = false;
ani_speed = "you set this";
Collision Event:

if dir == "u" { if keyboard_check(vk_enter) { open_chest = true; }};

Step Event:
image_speed = ani_speed;
if image_index >= 5 { dialog("You've recieved some Crap"); }

image_index = "last image";

Note: the dialog is not a function it'd be a script, you would have to have your own dialog script inorder for that to work.

Ok hope that helps.
Logged

Xiphirx

wat
Re: request-zelda mc chest opening gm7
« Reply #3 on: April 18, 2008, 10:47:45 pm »
  • Xiphirx
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 3007
Ok to correct and make the code better,

Create Event:
open_chest = false;
ani_speed = "you set this";
itemtr = "bow";
image_single = 0
doanim = false

Collision Event:
if dir == "u" { if keyboard_check(vk_enter) { open_chest = true; doanim=true; }};

Step Event:
if doanim = true {
image_speed = ani_speed;
}
if image_index >= 5 { dialog("You've recieved some Crap");
image_index = "last image";
}

Have fun! :)
Logged
  • For The Swarm
Re: request-zelda mc chest opening gm7
« Reply #4 on: April 19, 2008, 01:49:46 am »
  • You got the Master Sword!
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 255
thanks xiphirx that makes more sence but ok i used crispys engines item scripts so there really isnt an obj_bow or somethin can u help me with that plz?
Logged

Come hither o traveler... I sing ye a song yet so melancholy, my voice speaketh the epitaph of darkness.Come into my world young Hylian.Darkest apocalypse hour approaches...Awaken from thy slumber whilst destiny's dreaming of ye soul. Dost thou haveith the time to end thy slumber? Lest thee interfere with my plan, death shall find ye!My mask sees the beginning is the end...I am Majora!
  • zfgc

Xiphirx

wat
Re: request-zelda mc chest opening gm7
« Reply #5 on: April 19, 2008, 08:34:51 pm »
  • Xiphirx
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 3007
no no no, that is a variable as soon as the chest is open something like global.herohasbow = true is activated and he can now use the bow. No obj's required
Logged
  • For The Swarm
Re: request-zelda mc chest opening gm7
« Reply #6 on: April 20, 2008, 12:32:15 am »
  • You got the Master Sword!
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 255
no no no, that is a variable as soon as the chest is open something like global.herohasbow = true is activated and he can now use the bow. No obj's required
oooooooo that makes sence ill try it right now

EDIT:

im a noob at invetory sytyms so i need yr help again heres the code

if (objmenu.inventory[global.weapon]=1 && !usingsword && !usingbow & !usingboomerang && !instance_exists(holding_pot))
 switch global.weapon
 {
  case 0:
   scr_bow();
  break;
  case 1:
   scr_boomerang();
  break;
  case 3:
   scr_bombs();
  break;
  case 6:
   scr_lamp();
  break;
  case 7:
   scr_firerod();

}
  break;
« Last Edit: April 20, 2008, 12:38:01 am by skullkid rules »
Logged

Come hither o traveler... I sing ye a song yet so melancholy, my voice speaketh the epitaph of darkness.Come into my world young Hylian.Darkest apocalypse hour approaches...Awaken from thy slumber whilst destiny's dreaming of ye soul. Dost thou haveith the time to end thy slumber? Lest thee interfere with my plan, death shall find ye!My mask sees the beginning is the end...I am Majora!
  • zfgc
Pages: [1]   Go Up

 


Contact Us | Legal | Advertise Here
2013 © ZFGC, All Rights Reserved



Page created in 0.214 seconds with 49 queries.

anything