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.

container not working in RPG

Chat and ask questions about the RPG Maker Mode here.
Post Reply
Ghostman Gaming
Member
Member
Posts: 49
Joined: July 9th, 2012, 6:44 pm
Name: Tyler Mangino
IRC Username: ghostman1996
Contact:

container not working in RPG

Post by Ghostman Gaming »

I wrote this code

Code: Select all

r_container_name "Exoacutioner"
r_container_script 15
r_container_mdl "ogre/guard"

Code: Select all

//exacutioner

r_script_signal spawn [
	r_additem self 1 (rnd 4)
]

r_script_signal interact [
	r_chat self (? (r_get_amount self 1) 1 0)
]


r_script_say "[The guard looks at you and asks "any last requests?]" [ //1

	r_response "[grab his sword and kill him]" (? (r_get_amount player 7) 10 9)
]


r_script_say "[???: You grab his sword from its stealth and slice his head clean off.]" [ //10
	r_response "[Face your next attacker]" -1 [
		dmg  = (+ (rnd (r_get_amount talker 1)) 1)
		r_additem player 7 $dmg
		r_additem player 1 (- (r_get_amount talker 1) $dmg)
		r_destroy talker
	]
]
its pretty simple the player is supost to kill the guy with the guys sword then take the sword i do not know what i did wrong i get the error message no such dialogue node:1 :twisted:
Hirato
Developer
Developer
Posts: 689
Joined: May 30th, 2009, 1:23 pm
IRC Username: hirato

Re: container not working in RPG

Post by Hirato »

http://www.sandboxgamemaker.com/wiki/in ... _first_NPC
consult part 2 of the RPG tutorial, the syntax for defining dialogue nodes has changed.

Otherwise, you'll want to change the dialogue too, so it's less of an apparent rip of the apple trees.
The code used there is quite inappropriate for what you're doing, and to be honest, so is the use of a container over a critter.
This is not a url, clicking it is pointless
Post Reply