Page 1 of 1

Help!

Posted: Wed Oct 10, 2007 10:31 pm
by Jue
I have the square head, trying to understand the manuals with a translation program, but I am learning to end of brute force.


This can be done?

inventory: Card of Access
Level: a door

{
Start [()

{
if (Card=1) // the player has the card
{
the door allows the step
}
else
{
the door does not allow the step
}
}

}

How I do it?

-----------------------
English this has not been translated by google.

Posted: Thu Oct 11, 2007 12:03 am
by AndyCR
You can do it that way, but there is a simpler way. I forget how exactly and I can't look how to right now, but you can use entities built into the level editor to do this.

!!!!!!!

Posted: Thu Oct 11, 2007 2:07 am
by Jue
what I cannot do is like in script having access to the variable to know if the player has the card.

card=1 true
card=0 false

as it is the order to do it?

since with the organization attribute, profit not to have access by means of escript to the value of the variable.

I need an example please

Posted: Fri Oct 12, 2007 4:34 pm
by darksmaster923

Help!

Posted: Fri Oct 12, 2007 7:00 pm
by Jue
Image


Image

If key = true in the inventory, then opens door

Image

help

Posted: Fri Oct 12, 2007 11:45 pm
by AndyCR
Jue: Here is how.

Open install/player.ini. Add:

Code: Select all

[key]
initial=0
low=0
high=1
Add a door to level. If you do not know how, tell me and I will explain.

In door entity, set Trigger to doortrig.

Create LogicGate entity. Set szEntityName to doortrig, Type to 8, and Trigger1Name to key.

Create Attribute entity. Set AttributeName to key. Set szActorName to attributes/medkit.act.

Here is my attempt at saying this in Spanish:

Abra install/player.ini. Mas:

Code: Select all

[key]
initial=0
low=0
high=1
Mas una "Door" a level. Si usted no entiende, preguntan me.

En "Door" entity, "Trigger" equal "doortrig".

Mas "LogicGate" entity. En "LogicGate", "szEntityName" egual "doortrig", y "Type" egual "8", y "Trigger1Name" egual "key".

Mas "Attribute" entity. En "Attribute", "AttributeName" egual "key", y "szActorName" egual "attributes/medkit.act".

Espero que esta obra; Lo que funciona para mí.

thank

Posted: Sat Oct 13, 2007 10:02 pm
by Jue
AndyCR

It is brilliant!, I thank you the help, the code works me perfectly with the door, of truthful I thank a lot you to help me.
I hope to have some day connection at home to learn many things but.


Je je je is very happy.


now I want an orientation for packages of health!
so that the player takes medications from the inventory and his health improves.


Good a greeting.


-----------------------------------------------------------------------
I am an ignoramus, the first step it is to accept it
the second to lower my levels of ignorance

/Text translated by LogoTrans / computer Program

----------------------------------------------------------------------------
As administrators, there is the possibility that this site is in two languages as mine, so a good suggestion, thank you. http://www.iris3d.net