Page 1 of 1

An RPG with Rpg Snow

Posted: February 12th, 2010, 11:36 am
by SpudManTwo
Hello Hello I am SpudManTwo.
This goes out to anyone who can help or wants help I am still working with an old download of Sandbox so you will have to bear with me.
I have generated a RPG in RPG Snow in FPS mode(don't ask why it's in FPS mode) and I will make one in RPG mode soon. However I have some questions

1.
(This one is probably more for adminastrators and very talented programmers.)
If and how can you make a variable count so that way you can create a changing quest status. Here is my code.

QuestStatus = 0

newgui main [
guilist [
guilist [
guibutton "Quest information" "showgui quests"

]
guibar
guilist [
guibutton "Unload Test UI" "newgui main [@main]"
]
]
guibar
@main
]

newgui quests [
guibutton "Back" "cleargui 1"
guibar
if (= QuestStatus 0) [
guitext (format "To begin the game go to the village and talk to the pie maker.") ]
if (= QuestStatus 1) [
guitext (format " Follow the guard's orders and find the swimming pool in the castle. " ]
]



level_trigger_1 = [showgui PieMaker]

newgui PieMaker [

guitext "Pies there are three," chat
guitext "but you only want one" chat

guibar
guibutton "Thank You" "cleargui" ]

level_trigger_2 = [showgui Guard]

newgui Guard [
QuestStatus = 1
guitext " You there you young man," chat
guitext " I need you to find the pool" chat
guitext "inside this castle so that way" chat
guitext "I can swim and defend this place" chat
guitext "at the same time" chat
guibar
guibutton "Will do Sir" "cleargui" ]


2.
(For Anyone)
Does anybody else have a RPG project that I can help with because I have become pretty good with scripting and I want to help someone else out.

Re: An RPG with Rpg Snow

Posted: February 12th, 2010, 1:02 pm
by damiandj
1. QuestStatus = (+ $QuestStatus 1); ;)

2. if you want you can help the TGC project to create some quests...or other things... :D

If you want I can send you the TGC cubescript libs :D So you can check out the TGC scripts!!!
And maybe you can learn more things for your project too...

Re: An RPG with Rpg Snow

Posted: February 12th, 2010, 1:20 pm
by SpudManTwo
Thanks. I truly feellike an idiot for over looking the $ sign. I had tried it hundreds of different ways but I left that out. I also might help that out nowthat I just got Version 2.5. I had been running on 2.4

Re: An RPG with Rpg Snow

Posted: February 18th, 2010, 5:45 am
by Venima
To help me learn stuff like that I checked out the village cfg in the main maps. (assuming you've got that one)

Although it wasn't long before I surpassed that simple coding.

A handy thing to know: locked door and key
door: trigger type 11, trigger 17 (doesn't matter which trigger)
key: trigger type 12, trigger 13 (again doesn't matter which trigger)

Code: Select all

key = 0

level_trigger_13 = [
	key = (+ $key 1)
	echo "Picked up a key"
]
level_trigger_17 = [
	if (> $key 0) [trigger 17 1] [echo "This door appears to be locked."]
	// in "trigger 17 1", 17 refers to the door that has trigger 17 and 1 refers to it's open state
]