Author Topic: (no subject)  (Read 2150 times)

Anonymous

  • Member
  • *
  • Posts: 545
    • View Profile
(no subject)
« on: February 02, 2004, 04:51:32 AM »
hey
i need help with this if statement stuff. Im new to the whole rpg toolkit. ive only been using it for about 2weeks now. but my problem is i cant have my character get an item then have another item(character) say something else. heres my code;

chest1.prg
#giveitem("sword.itm")
#mwin("You found a Sword!")
#system.pause()

swordsman.prg
#if (sword! = 0)
{
   #mwin(" Swordsman: ")
   #mwin("   (PlayersName), I'm affrid that the sword has been stolen. ")
   #mwin("   Please find it and return to me. ")
   #wait(a$)
   #end
}
#mwin(" Swordsman: ")
#mwin("   You've found the sword! ")
#mwin("   Now go... and learn how to use it. ")
#wait(a$)

If there is anbody that could help please do.

brandon
« Last Edit: December 31, 1969, 06:00:00 PM by Anonymous »

DarkElite

  • Member
  • *
  • Posts: 1452
    • View Profile
    • http://cryosoft.mysticsoftware.net/Home.html
(no subject)
« Reply #1 on: February 02, 2004, 06:12:56 AM »
ah yes, i didnt realize about this command till later too, but you cant just use a variable with the name of the item. you have to use #ItemCount(?Sword?,sword!) inorder to find the number of the item "sword" they have.

good luck with your game!  Very Happy
« Last Edit: December 31, 1969, 06:00:00 PM by DarkElite »
DarkElite

Dei vobem omniam proditiverunt.  Iam vobis quis deposcibitis sacrificium rersum vitae est!

DarkElite

  • Member
  • *
  • Posts: 1452
    • View Profile
    • http://cryosoft.mysticsoftware.net/Home.html
(no subject)
« Reply #2 on: February 02, 2004, 06:14:41 AM »
heres the modified code:

Code: [Select]
[B][U]chest1.prg[/U][/B]
#giveitem("sword.itm")
#mwin("You found a Sword!")
#system.pause()

[B][U]swordsman.prg[/U][/B]
#ItemCount(?sword?,sword!)
#if (sword! = 0)
{
#mwin(" Swordsman: ")
#mwin(" (PlayersName), I'm affrid that the sword has been stolen. ")
#mwin(" Please find it and return to me. ")
#wait(a$)
#end
}
#mwin(" Swordsman: ")
#mwin(" You've found the sword! ")
#mwin(" Now go... and learn how to use it. ")
#wait(a$)
« Last Edit: December 31, 1969, 06:00:00 PM by DarkElite »
DarkElite

Dei vobem omniam proditiverunt.  Iam vobis quis deposcibitis sacrificium rersum vitae est!

DarkElite

  • Member
  • *
  • Posts: 1452
    • View Profile
    • http://cryosoft.mysticsoftware.net/Home.html
(no subject)
« Reply #3 on: February 02, 2004, 06:15:57 AM »
ahh! srry, forget the stuf next to the program names  Laughing
« Last Edit: December 31, 1969, 06:00:00 PM by DarkElite »
DarkElite

Dei vobem omniam proditiverunt.  Iam vobis quis deposcibitis sacrificium rersum vitae est!

Anonymous

  • Member
  • *
  • Posts: 545
    • View Profile
(no subject)
« Reply #4 on: February 02, 2004, 09:11:24 AM »
Thank you very much for the help. now i know where to go for quick help. thank you.
brandon
« Last Edit: December 31, 1969, 06:00:00 PM by Anonymous »

DarkElite

  • Member
  • *
  • Posts: 1452
    • View Profile
    • http://cryosoft.mysticsoftware.net/Home.html
(no subject)
« Reply #5 on: February 02, 2004, 04:18:34 PM »
anytime  Very Happy , im interested in you game, when you get some done on the story line, let me know about it
« Last Edit: December 31, 1969, 06:00:00 PM by DarkElite »
DarkElite

Dei vobem omniam proditiverunt.  Iam vobis quis deposcibitis sacrificium rersum vitae est!

Anonymous

  • Member
  • *
  • Posts: 545
    • View Profile
(no subject)
« Reply #6 on: February 05, 2004, 01:46:23 AM »
my game is in the begining stages and is to early to realease the name because of safty issues.  but i have put it on hold for a couple of days. im going through one of those times that your with someone but like somebody else and dont know how to end the one your in now and just how to get the other one. so im gonna make a simple game to get the feeling of 'toolkit'. ive only been using it for a couple of weeks. but anyways, i would like some help if its possible with the use of the toolkit. im not really interested in the battle system and would like to make my game like the zelda games where you fight on the maps. i have an idea of how i might be able to do that but the way i have it figured its probably harder then it really would be. but hey, for all your help, when i get the one done that im working on for this girl, ill upload it to a web page and let you try it out and see what you think.
« Last Edit: December 31, 1969, 06:00:00 PM by Anonymous »

Cesque

  • Member
  • *
  • Posts: 2178
    • View Profile
    • http://cesque.mysticsoftware.net
(no subject)
« Reply #7 on: February 05, 2004, 05:08:15 AM »
Well, you should be proud of your courage...

I work on tk for 3 years, I tried to make a simply on-board BS a'la "knight's bounty" (or was it "king's bounty"?), and resigned after about a week of work. It overgrown me. (through it almost worked well)

But, keep on trying - propably you can do it.
« Last Edit: December 31, 1969, 06:00:00 PM by Cesque »
TKGB cancelled Spyder.

Bastard.

Haraldur

  • Member
  • *
  • Posts: 2860
    • View Profile
    • http://haraldur.mysticsoftware.net
(no subject)
« Reply #8 on: February 05, 2004, 11:37:08 AM »
Hope springs eternal in the human breast, the guy who made that up forgot to add: until they get depressed.

To travel hopefully is better than to arrive: hmmm... maybe not, but it is probably not very nice after 2 years to find that your game is crap...
« Last Edit: December 31, 1969, 06:00:00 PM by Haraldur »

Cesque

  • Member
  • *
  • Posts: 2178
    • View Profile
    • http://cesque.mysticsoftware.net
(no subject)
« Reply #9 on: February 05, 2004, 11:47:01 AM »
No, really... I put too much work into this game. Too much... theoretical work.

This game is simply too, hmm, real. There are already loads of dialogue options, each of character classes (one of, let's say, 20) responds differently, there are options to change by player, etc... It's all too advanced as for my nerves, but I have wanted it to be this way.

AND THE DAMN BS... One day I'll really get off my nerves with that.
« Last Edit: December 31, 1969, 06:00:00 PM by Cesque »
TKGB cancelled Spyder.

Bastard.

Haraldur

  • Member
  • *
  • Posts: 2860
    • View Profile
    • http://haraldur.mysticsoftware.net
(no subject)
« Reply #10 on: February 05, 2004, 12:24:54 PM »
Well, I did just about say that, sort of.
« Last Edit: December 31, 1969, 06:00:00 PM by Haraldur »