Page 15 of 38

Re: RPG Project *TGC* (The Golden Coin)

Posted: February 23rd, 2010, 9:32 am
by arcones
Oops, sorry. I meant of TGC itself. Your codes you were mentioning earlier. If you could put those up for the people who don't have TGC.

Arc

Re: RPG Project *TGC* (The Golden Coin)

Posted: February 23rd, 2010, 11:04 am
by damiandj
Hehe, I still don't understand what you mean. The TGC libraries are currently very very big. Only the inventory is bigger then 30 sites :D if not even more :lol:
Tell me what you exacly need and then I will show off the code :D

Re: RPG Project *TGC* (The Golden Coin)

Posted: February 23rd, 2010, 11:29 am
by arcones
Leo_V117 wrote:Yeah, that'll be helpful, level connection codes would be cool too, and if you have custom spells, that would be great. I sort of need them form my RPG, dont worry, you will be credited.


Leo was wondering if you had any spells you used and if it would be possible to give us permission to use them.
@Leo there are support topics on connecting maps to one another ;)

I was wondering whether you could show any code you have for triggering objects to talk, give quests, buy stuff and otherwise interact with the main character (like you said earlier, "weight systems").

I think it would help a lot of people with understanding cube scripting if you did this.

Thanks,

Arc

Re: RPG Project *TGC* (The Golden Coin)

Posted: February 23rd, 2010, 12:01 pm
by Leo_V117
I forgot to mention those scripts arc, that would also help us with our FPS Project too.

- Leo

Re: RPG Project *TGC* (The Golden Coin)

Posted: February 23rd, 2010, 12:28 pm
by damiandj
An example created here in 3 minutes:

Code: Select all

apple = [0] //variable apple with weight 2
weight = [0] // weight system

"level_trigger_X1" = [showgui applequest]  //trigger se to X1 show the gui applequest
"level_trigger_X2" = [showgui inventory]  //trigger se to X2 show the gui inventory

apple_1 = [apple = (+ $apple 1); echo "You got an apple"; weight = (+ $weight 2)] //function that adds an apple
apple_0 = [apple = (- $apple 1); echo "You lost an apple"; weight = (- $weight 2)] //viceversa

newgui applequest [
   guitext "Hey, here is an apple for you!!!" chat
   guibar
   guibutton "Oh thanks!!!" [apple_1] cleargui
] "QUEST APPLE"

newgui inventory [
   guitext (format "apples = %1" $apple)
   guitext (format "weight = %1" $weight)
   guibar
   guibutton "Exit" cleargui
] "INVENTORY"

Re: RPG Project *TGC* (The Golden Coin)

Posted: February 23rd, 2010, 12:34 pm
by Leo_V117
You had custom spells for it right? Can we please have a few, just to give is an idea?

Re: RPG Project *TGC* (The Golden Coin)

Posted: February 23rd, 2010, 12:52 pm
by arcones
wow damian! thanks!

I didn't realize that you needed guibar before guibutton!

Thanks! :mrgreen:

Arc

Re: RPG Project *TGC* (The Golden Coin)

Posted: February 23rd, 2010, 1:05 pm
by damiandj
I didn't made custom spells yet. But I think that's easy to create one(thanks to the PAS TEAM). Maybe I will try this weekend to create one...

@Arcones
guibar is not really needed. It sets only a bar between guitext and guibutton...

Re: RPG Project *TGC* (The Golden Coin)

Posted: February 23rd, 2010, 1:17 pm
by arcones
ahh... thanks anyway! :)

Arc

Re: RPG Project *TGC* (The Golden Coin)

Posted: February 23rd, 2010, 5:39 pm
by Leo_V117
okay, what about multiple choice functions? for example:

GUI: Have a look for the cake:

Response: Sure thing. I know its here somewhere
Response: No way, Everyone knows the cake is a lie.