Gamestudio Links
Zorro Links
Newest Posts
Newbie Questions
by fairtrader. 12/05/23 10:32
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
6 registered members (AndrewAMD, alibaba, fairtrader, ozgur, TipmyPip, Quad), 604 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: Loading skins in real time [Re: JetpackMonkey] #121191
04/04/07 16:29
04/04/07 16:29
Joined: Oct 2005
Posts: 4,771
Bay City, MI
lostclimate Offline
Expert
lostclimate  Offline
Expert

Joined: Oct 2005
Posts: 4,771
Bay City, MI
i assume you got it now?

Re: Loading skins in real time [Re: JetpackMonkey] #121192
04/12/07 13:47
04/12/07 13:47
Joined: Oct 2005
Posts: 528
Italy
M
Mondivirtuali Offline
User
Mondivirtuali  Offline
User
M

Joined: Oct 2005
Posts: 528
Italy
I think about a script that could be very funny , cheap but useful.
I can't write it , now I have no time for learning C script also , but for your coders would be easy.
Changing the skin of the npc or the bot , in regards of its health level.
in pseudo code
{if myhealth is =<70 , 51
then skin=skin 1
elseif myhealth is =<50,1
then skin=skin 2
if myhealth = O [ death skin]
then skin= skin 3
else
skin= skin 1[ normal skin]
end if
}

and attach it in somewhere of the template scripts

Last edited by Mondivirtuali; 04/12/07 13:51.
Re: Loading skins in real time [Re: Mondivirtuali] #121193
04/12/07 16:48
04/12/07 16:48
Joined: Mar 2006
Posts: 2,503
SC, United States
xXxGuitar511 Offline
Expert
xXxGuitar511  Offline
Expert

Joined: Mar 2006
Posts: 2,503
SC, United States
Code:

if (my.health >= 70)
{my.skin = 1;} // good
if (my.health < 70 && my.health >= 50)
{my.skin = 2;} // not-so-good
if (my.health < 50 && my.health > 0)
{my.skin = 3; // bad
if (my.health <= 0)
{my.skin = 4;} // dead



yeah, I just thought I'd write it just for the hell of it


xXxGuitar511
- Programmer
Re: Loading skins in real time [Re: xXxGuitar511] #121194
04/12/07 17:28
04/12/07 17:28
Joined: Aug 2006
Posts: 652
Netherlands
bstudio Offline
User
bstudio  Offline
User

Joined: Aug 2006
Posts: 652
Netherlands
you have to define healrth as a skill though:
Code:

define skill1,health;


thought it was something like that


BASIC programmers never die, they GOSUB and don't RETURN.
Re: Loading skins in real time [Re: bstudio] #121195
04/12/07 18:06
04/12/07 18:06
Joined: Oct 2005
Posts: 528
Italy
M
Mondivirtuali Offline
User
Mondivirtuali  Offline
User
M

Joined: Oct 2005
Posts: 528
Italy
Thanks but...where is have to put this code in the A.I guard script?
May I make a personalized script of the A 6 template ( with this switch skin include) and put in the work directory?

Page 2 of 2 1 2

Moderated by  Blink, Hummel, Superku 

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