0 Members and 2 Guests are viewing this topic.
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 listIf 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
1->L"L is length of list1->length(L1
If length(L1)=1Output(2,2,"PotionsIf length(L1)=2ThenOutput(2,2,"PotionsOutput(3,2,"ApplesEnd
Y-(G=25)(Y=/=2)+(G=34)(Y=/=(length(L1)+1)->Y
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?
1->length(L12->Y0->GOutput(1,1,"InventoryIf length(L1)Output(2,2,"PotionsIf length(L1)>1Output(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
2->length(L1
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 potionsCode: [Select]1->length(L12->Y0->GOutput(1,1,"InventoryIf length(L1)Output(2,2,"PotionsIf length(L1)>1Output(3,2,"Apples"Then the menu code I already posted, the basic menu one, just modified to use the Y+()()-()()->Y line I posted aboveThen, to add apples to the menu, all you have to do is Code: [Select]2->length(L1or 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
To display a list, you have to write your own routine.
{1,2,1,1,2}->L1for(A,1,length(L1)) ;;or any other listIf L1(A) = 1ThenOutput(A,0,"Blargh")Endrepeat for all other possible conditionsEnd
oh well maybe if I learn axe you guys could help me more