Omnimaga: The Coders Of Tomorrow
Welcome, Guest. Please login or register.
 
Omnimaga: The Coders Of Tomorrow
25 May, 2013, 02:57:38 *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   home   news downloads projects tutorials misc forums rules new posts irc about Login Register  
+-OmnomIRC

You must Register, be logged in and have at least 40 posts to use this shout-box! If it still doesn't show up afterward, it might be that OmnomIRC is disabled for your group or under maintenance.

Note: You can also use an IRC client like mIRC, X-Chat or Mibbit to connect to an EFnet server and #omnimaga.

Pages: 1 2 [3] 4   Go Down
  Print  
Author Topic: nooboish prgrammer -  (Read 1637 times) Bookmark and Share
0 Members and 1 Guest are viewing this topic.
graphmastur
King Graphmastur
LV11 Super Veteran (Next: 3000)
***********
Offline Offline

Gender: Male
Last Login: 02 February, 2013, 08:34:45
Date Registered: 03 June, 2010, 21:15:55
Posts: 2262


Total Post Ratings: +60

View Profile
« Reply #30 on: 23 November, 2011, 06:09:40 »
0

I don't entirely understand the question, but you can write one past the length of the list in TI-BASIC, and it will add another element for you.  Does that help?
Logged

obon7
LV2 Member (Next: 40)
**
Offline Offline

Last Login: 12 February, 2012, 07:35:15
Date Registered: 23 November, 2011, 02:22:11
Posts: 34


Topic starter
Total Post Ratings: 0

View Profile
« Reply #31 on: 23 November, 2011, 06:14:08 »
0

If you want something like this:

Where it shows how many potions you have, tell me.
You can use a custom menu, or a manipulated OS one
yeah that actaully looks really good was the potions menu accessed through a menu that took it to its own specific menu and sorry if by menu I actually mean and/or list
If you want something like this:

Where it shows how many potions you have, tell me.
You can use a custom menu, or a manipulated OS one
Logged

obon7
LV2 Member (Next: 40)
**
Offline Offline

Last Login: 12 February, 2012, 07:35:15
Date Registered: 23 November, 2011, 02:22:11
Posts: 34


Topic starter
Total Post Ratings: 0

View Profile
« Reply #32 on: 23 November, 2011, 06:14:54 »
0

yeah that actaully looks really good was the potions menu accessed through a menu that took it to its own specific menu and sorry if by menu I actually mean and/or list
Logged

chattahippie
LV6 Super Member (Next: 500)
******
Offline Offline

Gender: Male
Last Login: 27 March, 2013, 05:21:38
Date Registered: 19 July, 2011, 04:13:49
Location: Somewhere
Posts: 358


Total Post Ratings: +27

View Profile
« Reply #33 on: 23 November, 2011, 06:15:57 »
0

It would be a lot harder than just having them preset, but something like

1
2
3
4
1->L
"L is length of list
1->length(L1
Then, code a menu like I showed, but include something like

1
2
3
4
5
6
7
8
If length(L1)=1
Output(2,2,"Potions
If length(L1)=2
Then
Output(2,2,"Potions
Output(3,2,"Apples
End
And instead of checking y against constants (Y+(G=34)(Y=/=4)), you should check against the length of the list
Make sure Y starts at 2 (2->Y)

1
Y-(G=25)(Y=/=2)+(G=34)(Y=/=(length(L1)+1)->Y
The +1 on the length is due to Y starting at 2 instead of 1
Logged
obon7
LV2 Member (Next: 40)
**
Offline Offline

Last Login: 12 February, 2012, 07:35:15
Date Registered: 23 November, 2011, 02:22:11
Posts: 34


Topic starter
Total Post Ratings: 0

View Profile
« Reply #34 on: 23 November, 2011, 06:19:32 »
0

what I am saying is that I don't want to have It preset I just want it to increase and add size and objects to the list/menu
Logged

obon7
LV2 Member (Next: 40)
**
Offline Offline

Last Login: 12 February, 2012, 07:35:15
Date Registered: 23 November, 2011, 02:22:11
Posts: 34


Topic starter
Total Post Ratings: 0

View Profile
« Reply #35 on: 23 November, 2011, 06:23:31 »
0

I don't entirely understand the question, but you can write one past the length of the list in TI-BASIC, and it will add another element for you.  Does that help?
sorry I get that alot to clarify I want to make a menu/list that changes as you find, lose, or use items. Yeah it is pretty difficult in TI Basic
Logged

chattahippie
LV6 Super Member (Next: 500)
******
Offline Offline

Gender: Male
Last Login: 27 March, 2013, 05:21:38
Date Registered: 19 July, 2011, 04:13:49
Location: Somewhere
Posts: 358


Total Post Ratings: +27

View Profile
« Reply #36 on: 23 November, 2011, 06:26:56 »
0

Yeah, that should work... as a new item is introduced to the game, just increase the size of length(L1) and make sure you have EVERY item built into the game so that when the length increases, it knows which item to add to the menu.
For instance, at the beginning, maybe the character can only use potions

1
2
3
4
5
6
7
8
9
1->length(L1
2->Y
0->G
Output(1,1,"Inventory
If length(L1)
Output(2,2,"Potions
If length(L1)>1
Output(3,2,"Apples
"Then the menu code I already posted, the basic menu one, just modified to use the Y+()()-()()->Y line I posted above
Then, to add apples to the menu, all you have to do is

1
2->length(L1
or for all three items, store 3 to the length.

Then to remove items from the menu, if you had all three items, but didn't want feathers anymore, just use 2->length(L1) and the feathers are gone
Logged
obon7
LV2 Member (Next: 40)
**
Offline Offline

Last Login: 12 February, 2012, 07:35:15
Date Registered: 23 November, 2011, 02:22:11
Posts: 34


Topic starter
Total Post Ratings: 0

View Profile
« Reply #37 on: 24 November, 2011, 01:06:05 »
0

Yeah, that should work... as a new item is introduced to the game, just increase the size of length(L1) and make sure you have EVERY item built into the game so that when the length increases, it knows which item to add to the menu.
For instance, at the beginning, maybe the character can only use potions

1
2
3
4
5
6
7
8
9
1->length(L1
2->Y
0->G
Output(1,1,"Inventory
If length(L1)
Output(2,2,"Potions
If length(L1)>1
Output(3,2,"Apples
"Then the menu code I already posted, the basic menu one, just modified to use the Y+()()-()()->Y line I posted above
Then, to add apples to the menu, all you have to do is

1
2->length(L1
or for all three items, store 3 to the length.

Then to remove items from the menu, if you had all three items, but didn't want feathers anymore, just use 2->length(L1) and the feathers are gone
So I kind of have some more questions, So in order to attain a certain item do you have to increase the length of the list to the exact size that that item is speicified to or will it automatically in the newly availble spot put the item there, also what is the command/operation to display a list.
Logged

aeTIos
You got stair'd!
LV12 Extreme Poster (Next: 5000)
************
Offline Offline

Gender: Male
Last Login: Today at 02:17:21
Date Registered: 15 September, 2010, 06:00:00
Location: Netherlands, Overijssel
Posts: 3121


Total Post Ratings: +120

View Profile
« Reply #38 on: 24 November, 2011, 01:08:47 »
0

To display a list, you have to write your own routine.
Logged

If something above sounds rude, feel free to vote it down, it was not meant to be rude<<lolol
--Always stay relAXEd!--


Spoiler for Hidden:


[







Spoiler for Still Alive:
This was a triumph.
I'm making a note here: HUGE SUCCESS.
It's hard to overstate my satisfaction.

Aperture Science:
We do what we must because we can.
For the good of all of us
Except the ones who are dead.

But there's no sense crying over every mistake
You just keep on trying till you run out of cake
And the science gets done and you make a neat gun
For the people who are still alive.

I'm not even angry.
I'm being so sincere right now.
Even though you broke my heart and killed me.
And tore me to pieces.
And threw every piece into a fire.
As they burned it hurt because
I was so happy for you.

Now these points of data make a beautiful line
And we're out of beta we're releasing on time.
So I'm GLaD I got burned think of all the things we learned
For the people who are still alive.

Go ahead and leave me.
I think I prefer to stay inside.
Maybe you'll find someone else to help you.
Maybe Black Mesa -
THAT WAS A JOKE. HA HA, FAT CHANCE.
Anyway, this cake is great:
It's so delicious and moist.

Look at me still talking when there's science to do.
When I look out there it makes me GLaD I'm not you.
I've experiments to run there is research to be done
On the people who are still alive

And believe me I am still alive.
I'm doing science and I'm still alive.
I feel FANTASTIC and I'm still alive.
While you're dying I'll be still alive.
And when you're dead I will be still alive.

Still alive
Still alive
obon7
LV2 Member (Next: 40)
**
Offline Offline

Last Login: 12 February, 2012, 07:35:15
Date Registered: 23 November, 2011, 02:22:11
Posts: 34


Topic starter
Total Post Ratings: 0

View Profile
« Reply #39 on: 24 November, 2011, 01:56:50 »
0

To display a list, you have to write your own routine.
I dont understand
Logged

aeTIos
You got stair'd!
LV12 Extreme Poster (Next: 5000)
************
Offline Offline

Gender: Male
Last Login: Today at 02:17:21
Date Registered: 15 September, 2010, 06:00:00
Location: Netherlands, Overijssel
Posts: 3121


Total Post Ratings: +120

View Profile
« Reply #40 on: 24 November, 2011, 02:01:34 »
0

Okay, here is a sample routine (which is basically a program)

1
2
3
4
5
6
7
8
9
{1,2,1,1,2}->L1
for(A,1,length(L1)) ;;or any other list
If L1(A) = 1
Then
Output(A,0,"Blargh")
End
repeat for all other possible conditions
End
Does this make things more clear?
Also, have you already introduced yourself?

Logged

If something above sounds rude, feel free to vote it down, it was not meant to be rude<<lolol
--Always stay relAXEd!--


Spoiler for Hidden:


[







Spoiler for Still Alive:
This was a triumph.
I'm making a note here: HUGE SUCCESS.
It's hard to overstate my satisfaction.

Aperture Science:
We do what we must because we can.
For the good of all of us
Except the ones who are dead.

But there's no sense crying over every mistake
You just keep on trying till you run out of cake
And the science gets done and you make a neat gun
For the people who are still alive.

I'm not even angry.
I'm being so sincere right now.
Even though you broke my heart and killed me.
And tore me to pieces.
And threw every piece into a fire.
As they burned it hurt because
I was so happy for you.

Now these points of data make a beautiful line
And we're out of beta we're releasing on time.
So I'm GLaD I got burned think of all the things we learned
For the people who are still alive.

Go ahead and leave me.
I think I prefer to stay inside.
Maybe you'll find someone else to help you.
Maybe Black Mesa -
THAT WAS A JOKE. HA HA, FAT CHANCE.
Anyway, this cake is great:
It's so delicious and moist.

Look at me still talking when there's science to do.
When I look out there it makes me GLaD I'm not you.
I've experiments to run there is research to be done
On the people who are still alive

And believe me I am still alive.
I'm doing science and I'm still alive.
I feel FANTASTIC and I'm still alive.
While you're dying I'll be still alive.
And when you're dead I will be still alive.

Still alive
Still alive
chattahippie
LV6 Super Member (Next: 500)
******
Offline Offline

Gender: Male
Last Login: 27 March, 2013, 05:21:38
Date Registered: 19 July, 2011, 04:13:49
Location: Somewhere
Posts: 358


Total Post Ratings: +27

View Profile
« Reply #41 on: 24 November, 2011, 02:31:32 »
0

You have to have a predefined order of items that your list is arranged by (ex: Potions, then apples, then feathers for simplicities sake) then you change the length of the list to the exact new item, like I previously said.
And if you want to have Potions and feathers, but no apples, it would be much harder to code, and would probably be a lot slower
Good luck! Cheesy
Logged
obon7
LV2 Member (Next: 40)
**
Offline Offline

Last Login: 12 February, 2012, 07:35:15
Date Registered: 23 November, 2011, 02:22:11
Posts: 34


Topic starter
Total Post Ratings: 0

View Profile
« Reply #42 on: 24 November, 2011, 04:44:14 »
0

oh well maybe if I  learn axe you guys could help me more
Logged

saintrunner
Custom Spriter: You ask it! I'll Make it!
LV10 31337 u53r (Next: 2000)
**********
Offline Offline

Gender: Male
Last Login: 09 March, 2013, 02:00:40
Date Registered: 27 October, 2011, 21:52:46
Location: Right here....I think?
Posts: 1776


Total Post Ratings: +97

View Profile WWW
« Reply #43 on: 24 November, 2011, 04:46:35 »
0

DO IT! Axe is faster anyways, so there is a lot more enjoyment! Easy to learn too! I learned it in like 2 days after I learned BASIC (and I barely understood BASIC!)
Logged

My Sprites Thread   :Updated often Smiley for your viewing pleasure

GAMES:
chattahippie
LV6 Super Member (Next: 500)
******
Offline Offline

Gender: Male
Last Login: 27 March, 2013, 05:21:38
Date Registered: 19 July, 2011, 04:13:49
Location: Somewhere
Posts: 358


Total Post Ratings: +27

View Profile
« Reply #44 on: 24 November, 2011, 05:04:54 »
0

oh well maybe if I  learn axe you guys could help me more
I think that Basic is more suited for RPGs and games that need large amounts of easily accessible memory and variables, and not necessarily speed, but Axe is all about speed, good for arcade games and similar things.
Logged
Pages: 1 2 [3] 4   Go Up
  Print  
 
Jump to:  

Powered by EzPortal
Powered by MySQL Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Powered by PHP
Page created in 0.317 seconds with 31 queries.
Skin by DJ Omnimaga edited from SMF default theme with the help of tr1p1ea.
All programs, games and songs avaliable on this website are property of their respective owners.
Best viewed in Opera, Firefox, Chrome and Safari with a resolution of 1024x768 or above.