View Single Post
Old 03-07-2008, 05:22 PM   #1
SilentThief
Symbol of Cyric
 
Burger Time Champion
Join Date: September 10, 2001
Location: USA
Age: 49
Posts: 1,301
Default Still here (kinda)

I'm in the middle of a move to another state, from Michigan to Florida; due to the fact that the Michigan economy is sad and there are NO JOBS. I mean, I could work fast food part time (only), get $8 an hour and not even make the gas to get to work, but I choose to leave intstead.

Anyhow, I've been playing around with DC still and I found something interesting out. I was playing with the idea of having a graphic display of a shop (where you cycle thru items for sale and it shows a pic of the item to look at). The thing is when an item is for sale, it displays the identified name (like "sword +3"), and doesn't show the unidentified name. So, the items for sale could have variable names in the un-identified name slot (like "1", "2", "3", ect).

Then you can $GIVE_CHAR_ITEM and/or $TAKE_CHAR_ITEM with the number in its slot. Something like this:

$VAR ItemNumber //(this command sets up a variable for tracking)

$GIVE_CHAR_ITEM("0", ItemNumber) //(this gives the item that has the "name" ItemNumber to the active character)


I'm still working on a way to display the picture (I'm thinking of naming the picture files with the same number as the item it represents), and if I wanted to make it so a player sells an item and then it displays in the list I have NO clue how to do this (yet)


Also, this would work for taking items away with special attacks like a black pudding attack, just number your weapons like 1- 1000 and your armor 1001-2000 and if the pudding hits run thru taking away ALL the armor items from the hit character. Still working out the other details, but if you wanted a special item like the Axe of Awesomeness that doesn't desintegrate then don't name it with a number, it also couldn't be sold in the store.

I also came across the public function call that should make it so if you set up a variable in one GPDL script it would retain its value in all later calls (like if you set up game variables in the first step of the game then you can use them in later steps and scripts).

But I have SO LITTLE TIME right now, that I haven't been able to do much.

-SilentThief
PS I'll be in touch
__________________
http://www.wilhelmscream.net/
SilentThief is offline   Reply With Quote