Gamestudio Links
Zorro Links
Newest Posts
Newbie Questions
by fairtrader. 12/05/23 14:22
Zorro Trader GPT
by TipmyPip. 12/04/23 11:34
Square root rule
by Smallz. 12/02/23 09:15
RTest not found error
by TipmyPip. 12/01/23 21:43
neural function for Python to [Train]
by TipmyPip. 12/01/23 14:47
Xor Memory Problem.
by TipmyPip. 11/28/23 14:23
Training with command line parameters
by TipmyPip. 11/26/23 08:42
Combine USD & BTC Pairs In Asset Loop
by TipmyPip. 11/26/23 08:30
AUM Magazine
Latest Screens
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Who's Online Now
2 registered members (3run, AndrewAMD), 667 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 2 1 2
Re: Kampsystem wie in Gothic 1 und 2 [Re: Pappenheimer] #320866
04/25/10 13:51
04/25/10 13:51
Joined: Apr 2009
Posts: 161
austria
L
littlejacky Offline OP
Member
littlejacky  Offline OP
Member
L

Joined: Apr 2009
Posts: 161
austria
Danke!
Der Code funzt. ^^
Aber ich hab jetzt wieder ein anderes Problem.
Also:

...
c_trace(my.x, trace_attack, IGNORE_ME | IGNORE_PASSABLE);
if(you)
{
you.ambient = 100;
}
...

Der Trace heißt "trace_attack".
Nach dem "if(you) ..." bekomme ich immer eine Fehlermeldung, wenn ich eine "else" hinzufügen will.
Warum???

Re: Kampsystem wie in Gothic 1 und 2 [Re: littlejacky] #320869
04/25/10 14:29
04/25/10 14:29
Joined: Aug 2007
Posts: 1,922
Schweiz
Widi Offline
Serious User
Widi  Offline
Serious User

Joined: Aug 2007
Posts: 1,922
Schweiz
Was setzt du hinter else? you.ambient = 0?
Das geht nicht, da you = NULL ist. Du musst die getroffene Entity zwischenspeichern.

ENTITY* Trace_ent;
...
c_trace(my.x, trace_attack, IGNORE_ME | IGNORE_PASSABLE);
if(you)
{
Trace_ent = you;
Trace_ent.ambient = 100;
} else {
if(Trace_ent) Trace_ent.ambient = 0;
}
...

Re: Kampsystem wie in Gothic 1 und 2 [Re: Widi] #320871
04/25/10 14:53
04/25/10 14:53
Joined: Apr 2009
Posts: 161
austria
L
littlejacky Offline OP
Member
littlejacky  Offline OP
Member
L

Joined: Apr 2009
Posts: 161
austria
Danke!
Der Rest des Kampfsystems ist ein Kinderspiel. ^^
Danke nochmal!

Re: Kampsystem wie in Gothic 1 und 2 [Re: littlejacky] #320874
04/25/10 14:58
04/25/10 14:58
Joined: Aug 2007
Posts: 1,922
Schweiz
Widi Offline
Serious User
Widi  Offline
Serious User

Joined: Aug 2007
Posts: 1,922
Schweiz
Kein Problem...

Page 2 of 2 1 2

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1