Hi! Welcome to the forum for Platinum Arts Sandbox Free 3D Game Maker. I currently have the forums locked as I am attempting to properly update them.
In the meantime please join the new Discord Server!
If you have any questions please e-mail me through the Platinum Arts website.
In the meantime please join the new Discord Server!
If you have any questions please e-mail me through the Platinum Arts website.
The Land of Terak
- GR1M
- Support Team
- Posts: 1305
- Joined: August 22nd, 2009, 4:35 pm
- Name: Luke
- IRC Username: Gr1m
- Location: Texas
- Contact:
Re: The Land of Terak
Ok, but how would you make it to where you give the "npc merchant" a item and then it appears to other people?

Want a user bar like this one? PM Leo
-
- Support Team
- Posts: 2734
- Joined: January 13th, 2010, 12:42 pm
- Name: Timothy
- IRC Username: I use Steam
- Location: Looking over your shoulder...
- Contact:
Re: The Land of Terak
Idk...
But, since it might help me w/ Terak, please... keep talking!!
But, since it might help me w/ Terak, please... keep talking!!


Want a user bar like this one? PM Leo!
- Leo_V117
- Support Team
- Posts: 1640
- Joined: February 16th, 2010, 8:00 pm
- Name: Leo
- IRC Username: Leo_V117
- Location: That one place...
- Contact:
Re: The Land of Terak
- Meaning Who?arcones said:
I'm not a super coding genius (like someone I know)
I set my merchant up as a trader. Accidentally anyway.
This may be useful:
Code: Select all
"on_start" = [
money = 0
pie = 0
sword = 0
treasure = 0
]
"level_trigger_1" = [ money = ( + $money 5 )
echo "You got 5 moneys."
]
"level_trigger_2" = "showgui Shopkeeper"
newgui Shopkeeper [
guitext "What're ya buyin, stranger?" chat
guibar
guilist [
guibutton "Pie: 10 moneys" [
if ( > $money 9 ) [
money = ( - $money 10 )
pie = ( + $pie 1 )
]
]
guibar
guibutton "Sword: 20 moneys" [
if ( > $money 19 ) [
money = ( - $money 20 )
sword = ( + $sword 1 )
]
]
guibar
guibutton "Treasure: 40 moneys" [
if ( > $money 39 ) [
money = ( - $money 40 )
treasure = ( + $treasure 1 )
]
]
]
]
newgui Inventory [
guibutton "Back" "cleargui 1"
guibar
guitext ( format "You have %1 moneys in your wallet." $money )
guitext ( format "You have %1 pies. Yum." $pie )
guitext ( format "You have %1 swords. Not that you can use them..." $sword )
guitext ( format "You have %1 treasures. Lucky you!" $treasure )
]
newgui main [
guilist [
guilist [
guibutton "Inventory" "showgui Inventory"
]
]
guibar
@main
]
Game Projects
Sandbox Tools
- GR1M
- Support Team
- Posts: 1305
- Joined: August 22nd, 2009, 4:35 pm
- Name: Luke
- IRC Username: Gr1m
- Location: Texas
- Contact:
Re: The Land of Terak
I've seen that script before a long time ago.

Want a user bar like this one? PM Leo
-
- Support Team
- Posts: 2734
- Joined: January 13th, 2010, 12:42 pm
- Name: Timothy
- IRC Username: I use Steam
- Location: Looking over your shoulder...
- Contact:
Re: The Land of Terak
Simple stuff Leo. (I was talking about Venima)
I believe the original question was
the NPC
2nd player and whatnot. The shop script just allows the NPC to give stuff to you, not you to it and then it to someone else.
Just clearing things up!

I believe the original question was
We're trying to make something go between three people. From the 1st playerGR1M wrote:Ok, but how would you make it to where you give the "npc merchant" a item and then it appears to other people?


Just clearing things up!


Want a user bar like this one? PM Leo!
- Venima
- Support Team
- Posts: 259
- Joined: February 17th, 2010, 4:56 am
- Name: Tombstone
- IRC Username: Venima
- Location: Somewhere in the eternal planes between the living and the dead
Re: The Land of Terak
Rough example:
Only thing is, how do we check which player is triggering the event?
Code: Select all
player1_apples = 0
player2_apples = 0
shop1_apples = 0
level_trigger_1 = [ //the shop
showgui shop1a
]
newgui shop1a [
guitext "Hello!" chat
guibar
guibutton "[buy an apple]" "showgui shop1c"
guibutton "[sell an apple]" "showgui shop1b"
guibutton "[exit]" "cleargui"
]
newgui shop1b [
//If statement needed here to query which player has triggered this
[player1_apples = (- $player1_apples 1)] [player2_apples = (- $player1_apples 1)]
shop1_apples = (+ $shop1_apples 1)
guitext "you have sold an apple."
guibar
guibutton "Ok." "cleargui 1" //I think
]
newgui shop1b [
//If statement needed here to query which player has triggered this
[player1_apples = (+ $player1_apples 1)] [player2_apples = (+ $player1_apples 1)]
shop1_apples = (- $shop1_apples 1)
guitext "you have sold an apple."
guibar
guibutton "Ok." "cleargui 1" //I think
]
Tombstone's Tournament round 2 has begun! Tombstone's Posting Tournament
Try out my: CFG Easy Text Editor (Note: still in beta)
-----Venima


Try out my: CFG Easy Text Editor (Note: still in beta)
-----Venima


- GR1M
- Support Team
- Posts: 1305
- Joined: August 22nd, 2009, 4:35 pm
- Name: Luke
- IRC Username: Gr1m
- Location: Texas
- Contact:
Re: The Land of Terak
I really don't know, are you still trying to figure it out?

Want a user bar like this one? PM Leo
- Venima
- Support Team
- Posts: 259
- Joined: February 17th, 2010, 4:56 am
- Name: Tombstone
- IRC Username: Venima
- Location: Somewhere in the eternal planes between the living and the dead
Re: The Land of Terak
I never started...
Tombstone's Tournament round 2 has begun! Tombstone's Posting Tournament
Try out my: CFG Easy Text Editor (Note: still in beta)
-----Venima


Try out my: CFG Easy Text Editor (Note: still in beta)
-----Venima


- GR1M
- Support Team
- Posts: 1305
- Joined: August 22nd, 2009, 4:35 pm
- Name: Luke
- IRC Username: Gr1m
- Location: Texas
- Contact:
Re: The Land of Terak
I would be very happy and I'm sure others will to if this thing gets spoken in existence.

Want a user bar like this one? PM Leo