View previous topic :: View next topic |
Author |
Message |
bis_senchi

Joined: 08 Jun 2004 Posts: 460 Location: Reims, France
|
Posted: Sun Dec 10, 2006 2:07 am Post subject: I would like something like... |
|
|
I would like something that says
if any doors (=whatever is the number of the door) is used then, begin...
Could somoene help me to say it in plotscript language?
As always, thanks in advance for the help!
Bis_Senchi |
|
Back to top |
|
 |
Moogle1 Scourge of the Seas Halloween 2006 Creativity Winner


Joined: 15 Jul 2004 Posts: 3377 Location: Seattle, WA
|
Posted: Sun Dec 10, 2006 2:21 am Post subject: |
|
|
Just put a step-on NPC on the door tile. _________________
|
|
Back to top |
|
 |
bis_senchi

Joined: 08 Jun 2004 Posts: 460 Location: Reims, France
|
Posted: Sun Dec 10, 2006 7:38 am Post subject: Thanks! I came with an idea |
|
|
It works very well! Thanks a lot!
Would anybody knows if there is a command that returns our current amount of money? If not I think that I would a good thing to be able to store our money in a global variable so that we can use it later! Don't you think so?
Thanks for answering so quickly!
Last edited by bis_senchi on Sun Dec 10, 2006 9:44 pm; edited 1 time in total |
|
Back to top |
|
 |
Moogle1 Scourge of the Seas Halloween 2006 Creativity Winner


Joined: 15 Jul 2004 Posts: 3377 Location: Seattle, WA
|
Posted: Sun Dec 10, 2006 3:10 pm Post subject: |
|
|
You can use the paymoney command to figure out how much money the player has. Make sure to give it back. _________________
|
|
Back to top |
|
 |
Bob the Hamster OHRRPGCE Developer

Joined: 22 Feb 2003 Posts: 2526 Location: Hamster Republic (Southern California Enclave)
|
Posted: Sun Dec 10, 2006 3:21 pm Post subject: |
|
|
The next update (and the current nightly wip builds) allow you to get and set money with the '"party money" and "set money" commands. |
|
Back to top |
|
 |
msw188
Joined: 02 Jul 2003 Posts: 1041
|
Posted: Sun Dec 10, 2006 3:22 pm Post subject: |
|
|
This command has been made, I'm almost positive. It is probably in the nightly, and should be in Ubersetzung (which should be soon, it seems). Can a developer confirm this (and give the command, if it exists)? _________________ My first completed OHR game, Tales of the New World:
http://castleparadox.com/gamelist-display.php?game=161
This website link is for my funk/rock band, Euphonic Brew:
www.euphonicbrew.com |
|
Back to top |
|
 |
bis_senchi

Joined: 08 Jun 2004 Posts: 460 Location: Reims, France
|
Posted: Sun Dec 10, 2006 9:59 pm Post subject: Talking about existing commands... |
|
|
I was thinking : are there any equivalent of "find heroes" about Npcs?
When you have several copies of npcs: How do you manipulate and find its location on the map?
As always thanks for answering so quickly! |
|
Back to top |
|
 |
msw188
Joined: 02 Jul 2003 Posts: 1041
|
Posted: Sun Dec 10, 2006 10:43 pm Post subject: |
|
|
It depends on what you mean. There are the commands NPC X() and NPC Y() that take an NPC reference as an argument (thing in the parentheses) and return to you the X or Y coordinate of the NPC whose reference you sent. If you have multiple copies of a certain NPC, and you need to find say, copy 3 of NPC 12 (Bob), you could do it like this:
Code: |
variable(Bob3x)
variable(Bob3y)
Bob3x:=NPC X (NPC reference(12,3))
Bob3y:=NPC Y (NPC reference(12,3))
|
Oh, and don't forget that copy 3 means the 4th copy of the NPC on the map (because the first copy is copy zero, I'm pretty sure).
All of this is assuming you already know which copy of NPC 12 you are trying to find. Is this what you are asking for? Note that this is quite a different thing than "find hero ()". That command is used to find the hero's slot in the party, which has nothing to do with his or her X,Y coordinates. There is no equivalent to a 'party' when you are concerned with NPCs. _________________ My first completed OHR game, Tales of the New World:
http://castleparadox.com/gamelist-display.php?game=161
This website link is for my funk/rock band, Euphonic Brew:
www.euphonicbrew.com |
|
Back to top |
|
 |
|