Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 06-26-2001, 02:18 AM
Solareon Solareon is offline
Registered User
Solareon's Avatar
Join Date: Jun 2001
Location: In a corn field
Posts: 548
Solareon is on a distinguished road
Send a message via AIM to Solareon
GraalBoy

I have been trying to make a GraalBoy but I need some help with it. I have the concept laid out, the games under a submenu in the weapons list for the GraalBoy but I need someone to help me script the games an such. I really bite the big one at gfx, maybe KawaiiSaria would be interested in helping? I would just need someone to write the script events for the button presses and the main concept of the game since you can just create an instance of the npc and then use the call npc to call the function of the game. the game engine doesn't really exist since it all lies in the games you make (the perfect way of making low end games but higher end games cost too much to produce all the chip and such). Hopefully this isn't illegal (different name and the games must not be copyrighted), most of the games would be more like movies but I assume some type of mini rpgs can be done this way. Action games would be way to difficult cause the images are are just a plain ole image. RPGs could be made for attack scenes by switching the images around. Is there a limit of the number of images that can be created for indexes? also is there a way to remove images by their index?
__________________
-Solareon Doll, thanks to BirdBird_0 for making it
-
First person to choke on a gummi bear and cough it up =)

AIM: SolareonX
flame me 24/7 roffel
-- l33t
JubieSaotomeX < Me
Reply With Quote
  #2  
Old 06-26-2001, 03:00 AM
Shard_IceFire Shard_IceFire is offline
Registered User
Shard_IceFire's Avatar
Join Date: Jun 2001
Location: Eastern Harkoonia
Posts: 861
Shard_IceFire is on a distinguished road
Yeah I didn't really get that...
__________________

-=Shard IceFire=-
Reply With Quote
  #3  
Old 06-26-2001, 03:06 AM
Solareon Solareon is offline
Registered User
Solareon's Avatar
Join Date: Jun 2001
Location: In a corn field
Posts: 548
Solareon is on a distinguished road
Send a message via AIM to Solareon
I mean

like if you are making a real game, to include all the hardware on each cartridge (in real life) would cost a bundle, ignore that part
__________________
-Solareon Doll, thanks to BirdBird_0 for making it
-
First person to choke on a gummi bear and cough it up =)

AIM: SolareonX
flame me 24/7 roffel
-- l33t
JubieSaotomeX < Me
Reply With Quote
  #4  
Old 06-26-2001, 03:10 AM
Solareon Solareon is offline
Registered User
Solareon's Avatar
Join Date: Jun 2001
Location: In a corn field
Posts: 548
Solareon is on a distinguished road
Send a message via AIM to Solareon
yeah

thats it. I just wanted people to help me make games for it
__________________
-Solareon Doll, thanks to BirdBird_0 for making it
-
First person to choke on a gummi bear and cough it up =)

AIM: SolareonX
flame me 24/7 roffel
-- l33t
JubieSaotomeX < Me
Reply With Quote
  #5  
Old 06-26-2001, 03:14 AM
TeirDal_RC5 TeirDal_RC5 is offline
Registered User
Join Date: Jun 2001
Location: Canada,eh?
Posts: 43
TeirDal_RC5 is on a distinguished road
Send a message via ICQ to TeirDal_RC5 Send a message via AIM to TeirDal_RC5
Ah, Kaimetsu, picture a GameBoy on Graal as an NPCW, and you'll get what he's talking about.
__________________
:Sacred Silver


-I put the 'fun' in dysfunctional.
Reply With Quote
  #6  
Old 06-26-2001, 03:26 AM
Solareon Solareon is offline
Registered User
Solareon's Avatar
Join Date: Jun 2001
Location: In a corn field
Posts: 548
Solareon is on a distinguished road
Send a message via AIM to Solareon
maybe even

linking the games together so you can have multiplayer. but that would be difficult without an npc server. not sure if possible but maybe.

here the basic concept for the Graalboy

the game script is as follows

if (abuttonpressed) {
scripted part of what happens when presses a
}
if (dbuttonpressed) {
scripted part of what happens when presses d
}

to add more functionality to the game it would be something like after an event runs and changes the image shown, it sets a flag saying the current state of the game. and does all the changes internally.

etc. for s and any other buttons you want.
The Game Engine is what calls the functions of the script. By doing

putnpc graalboy_game1.txt,0,0; //loading part of game engine
callnpc... with the name of the event which is called

at the end of the game it calls destroynpc or whatever the command is to remove an npc from the level. it would have to have somethign to make the player like invunerable to damage so they don't get pked while playing.
__________________
-Solareon Doll, thanks to BirdBird_0 for making it
-
First person to choke on a gummi bear and cough it up =)

AIM: SolareonX
flame me 24/7 roffel
-- l33t
JubieSaotomeX < Me
Reply With Quote
  #7  
Old 06-26-2001, 07:31 AM
Solareon Solareon is offline
Registered User
Solareon's Avatar
Join Date: Jun 2001
Location: In a corn field
Posts: 548
Solareon is on a distinguished road
Send a message via AIM to Solareon
I found a mistake in my game code

I'm not sure if you can change an image by it's index or not. The games would be selected by a flag setting with the name of the game script. If the images cannot be changed by indexs that would limit the amount of game time that you could play for.
__________________
-Solareon Doll, thanks to BirdBird_0 for making it
-
First person to choke on a gummi bear and cough it up =)

AIM: SolareonX
flame me 24/7 roffel
-- l33t
JubieSaotomeX < Me
Reply With Quote
  #8  
Old 06-26-2001, 08:39 AM
Solareon Solareon is offline
Registered User
Solareon's Avatar
Join Date: Jun 2001
Location: In a corn field
Posts: 548
Solareon is on a distinguished road
Send a message via AIM to Solareon
Okay games under submenu won't work

I tried it but it didn't call the functions right and made like 70000 little games. I am working on a sample game that will utilise all of the button events and the explanation of the flags. The graphics will be really crappy just a switch between two different images. I will zip up a level pack and post it on here
__________________
-Solareon Doll, thanks to BirdBird_0 for making it
-
First person to choke on a gummi bear and cough it up =)

AIM: SolareonX
flame me 24/7 roffel
-- l33t
JubieSaotomeX < Me
Reply With Quote
  #9  
Old 06-26-2001, 09:32 AM
Solareon Solareon is offline
Registered User
Solareon's Avatar
Join Date: Jun 2001
Location: In a corn field
Posts: 548
Solareon is on a distinguished road
Send a message via AIM to Solareon
I am havign some issues

It seems to not want to load the gmee based on what the game sets for variables, it doesn't load the images as it should but plays the music (last part of the game loaded event maybe I need to just change it to a cll npc but not sure.
__________________
-Solareon Doll, thanks to BirdBird_0 for making it
-
First person to choke on a gummi bear and cough it up =)

AIM: SolareonX
flame me 24/7 roffel
-- l33t
JubieSaotomeX < Me
Reply With Quote
  #10  
Old 06-26-2001, 05:48 PM
Solareon Solareon is offline
Registered User
Solareon's Avatar
Join Date: Jun 2001
Location: In a corn field
Posts: 548
Solareon is on a distinguished road
Send a message via AIM to Solareon
here is what happens

okay here is what I have so far,
gameex.txt is the game script,
the images are used to display game,

it will do the loading of the game engine but it won't go past the
loading screen (see script for details)

Attached Files
File Type: zip graalboy.zip (25.0 KB, 193 views)
__________________
-Solareon Doll, thanks to BirdBird_0 for making it
-
First person to choke on a gummi bear and cough it up =)

AIM: SolareonX
flame me 24/7 roffel
-- l33t
JubieSaotomeX < Me
Reply With Quote
  #11  
Old 06-26-2001, 08:34 PM
Shard_IceFire Shard_IceFire is offline
Registered User
Shard_IceFire's Avatar
Join Date: Jun 2001
Location: Eastern Harkoonia
Posts: 861
Shard_IceFire is on a distinguished road
Hmm...one problem...the gif is graalboy.gif, and you didn't include a graalboy.gif in the zip file. I just changed it to block.gif though so I could test it anyway..It still didn't work.
__________________

-=Shard IceFire=-
Reply With Quote
  #12  
Old 06-27-2001, 10:34 AM
Solareon Solareon is offline
Registered User
Solareon's Avatar
Join Date: Jun 2001
Location: In a corn field
Posts: 548
Solareon is on a distinguished road
Send a message via AIM to Solareon
okay sorry

my bad forgot which director I had the image in..... silly me, I can fix that part.

How the hell else am I supposed to do it. The put npc is to place a game on the level (instead of having like 7 npcs for each game or making the graalboy exteremely laggy by having all the game code (elimination the chance of people making games for it in a timely manner, with putnpc is just a simple flag that is set and then any game tat is on the server can be played. Putnpc is probably what is causing the problems but not sure, any help on this would be appreciated
__________________
-Solareon Doll, thanks to BirdBird_0 for making it
-
First person to choke on a gummi bear and cough it up =)

AIM: SolareonX
flame me 24/7 roffel
-- l33t
JubieSaotomeX < Me
Reply With Quote
  #13  
Old 06-27-2001, 03:27 PM
entravial entravial is offline
Registered User
entravial's Avatar
Join Date: Mar 2001
Posts: 825
entravial is on a distinguished road
Send a message via ICQ to entravial Send a message via AIM to entravial Send a message via Yahoo to entravial
this sounds like a good idea, but from what ive seen u need better graphics, and better scripting =/

but it's still a good idea
__________________


If the post says ~AlphaFlame~, that's who's posting. If not, it's Entravial (owner)
Reply With Quote
  #14  
Old 06-28-2001, 09:56 AM
Solareon Solareon is offline
Registered User
Solareon's Avatar
Join Date: Jun 2001
Location: In a corn field
Posts: 548
Solareon is on a distinguished road
Send a message via AIM to Solareon
okay

since callnpc is pretty slow I could just have the games into inventory and then for the game engine have it just set a flag for the keyevent and then have it done that way. btw I will update it with the new concept and do this
__________________
-Solareon Doll, thanks to BirdBird_0 for making it
-
First person to choke on a gummi bear and cough it up =)

AIM: SolareonX
flame me 24/7 roffel
-- l33t
JubieSaotomeX < Me
Reply With Quote
  #15  
Old 06-28-2001, 10:25 AM
Solareon Solareon is offline
Registered User
Solareon's Avatar
Join Date: Jun 2001
Location: In a corn field
Posts: 548
Solareon is on a distinguished road
Send a message via AIM to Solareon
okay here is my new status

the game functions normally, the only problem is it doesn't respond to the keydown events to the game engine so it can set a flag to make the game fire events. I have redone it so to start you fire up the graalboy and then use the game you wish to play and it loads, I will have to make an additional property so tat multiple games to not fire. I am not going to attach the new code until I can get the keydowns, the main way to play is by sayign the commands (not good for action games) btw I still need a good gfx designer to help make game graphix, send me a pm if intersted
__________________
-Solareon Doll, thanks to BirdBird_0 for making it
-
First person to choke on a gummi bear and cough it up =)

AIM: SolareonX
flame me 24/7 roffel
-- l33t
JubieSaotomeX < Me
Reply With Quote
  #16  
Old 06-28-2001, 12:35 PM
General General is offline
Banned
Join Date: Apr 2001
Location: Station Square
Posts: 984
General is on a distinguished road
Send a message via ICQ to General Send a message via AIM to General Send a message via Yahoo to General
if (timeout) {
if(keydown(0)) //Blah
if(keydown(1)) //Blah
timeout=0.05;
}
keydown will function well
Reply With Quote
  #17  
Old 06-28-2001, 01:29 PM
entravial entravial is offline
Registered User
entravial's Avatar
Join Date: Mar 2001
Posts: 825
entravial is on a distinguished road
Send a message via ICQ to entravial Send a message via AIM to entravial Send a message via Yahoo to entravial
nobody remembers to loop
__________________


If the post says ~AlphaFlame~, that's who's posting. If not, it's Entravial (owner)
Reply With Quote
  #18  
Old 06-28-2001, 07:15 PM
Solareon Solareon is offline
Registered User
Solareon's Avatar
Join Date: Jun 2001
Location: In a corn field
Posts: 548
Solareon is on a distinguished road
Send a message via AIM to Solareon
damn

why did I think of that............ well this is my only script that has used the function so far.

btw If I use disable def movement does the play become invincible?
__________________
-Solareon Doll, thanks to BirdBird_0 for making it
-
First person to choke on a gummi bear and cough it up =)

AIM: SolareonX
flame me 24/7 roffel
-- l33t
JubieSaotomeX < Me
Reply With Quote
  #19  
Old 06-29-2001, 12:19 AM
General General is offline
Banned
Join Date: Apr 2001
Location: Station Square
Posts: 984
General is on a distinguished road
Send a message via ICQ to General Send a message via AIM to General Send a message via Yahoo to General
Disabledefmovement disables the built-in keydown events, since being hurt diesnt require you to press a key, no it is not disable
Reply With Quote
  #20  
Old 06-29-2001, 03:52 PM
grim_squeaker_x grim_squeaker_x is offline
Retired Oldbie
grim_squeaker_x's Avatar
Join Date: Mar 2001
Posts: 3,084
grim_squeaker_x will become famous soon enough
NPC Code:
if (weaponfired) this.oldinfo={playerx,playery,playerhearts};
if (playerhurt) {
playerhurtdx=0;
playerhurtdy=0;
playerx=this.oldinfo[0];
playery=this.oldinfo[1];
playerhearts=this.oldinfo[2];
}

__________________

Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 01:51 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.