It is currently Mon Jan 05, 2009 5:42 pm

All times are UTC - 8 hours




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: die and custom vitals setup
PostPosted: Sat Feb 04, 2006 10:17 am 
Offline

Joined: Sat Feb 04, 2006 10:13 am
Posts: 12
Location: Livorno Italy
In current script I can add vitals (vitals.cfg) but character dies
when life go to zero on vital "Life" and this is hard-coded.

A new setting in vital:
"DieWhen 0"
that decide tha character dies when precise vital reach zero?

It could be usefull to use "DieWhen" on multiple vital also.

What do you think?

_________________
-----------------------------------------
Zandor
Scripter ZHI Shard


Top
 Profile  
 
 Post subject:
PostPosted: Sat Feb 04, 2006 1:09 pm 
Offline
Certified POL Expert
User avatar

Joined: Thu Feb 02, 2006 1:41 pm
Posts: 1252
Location: Southern Central USA
That's not a bad idea.

Like when mana reaches zero you die.

Could be like a set of flags. Might look something like this

// Flags to check for death on certain stats

ChecDeathStr 1 // a 1 means watch this stat a 0 means ignore this stat
CheckDeathSta 1
CheckDeathMan 1

DeathWhenStr 0 //sets the level to kill the character
DeathWhenSta 0
DeathWhenMan 0

_________________
Sincerely,
Yukiko

I know you think you understand what you thought I said but what you heard is not exactly what I meant.

Titus 2:13


Top
 Profile  
 
 Post subject:
PostPosted: Sat Feb 04, 2006 1:44 pm 
Offline
Packet Maintainer

Joined: Thu Feb 02, 2006 8:33 am
Posts: 346
I think there are more important things to do :wink:


Top
 Profile  
 
 Post subject:
PostPosted: Sat Feb 04, 2006 2:35 pm 
Offline
Certified POL Expert
User avatar

Joined: Thu Feb 02, 2006 1:41 pm
Posts: 1252
Location: Southern Central USA
Ahem..

Please refrain from knocking ideas. This is a "suggestion" forum after all.

Besides the idea wpuld add versatility to the emulator. And POL is known for its versatility.

_________________
Sincerely,
Yukiko

I know you think you understand what you thought I said but what you heard is not exactly what I meant.

Titus 2:13


Top
 Profile  
 
 Post subject:
PostPosted: Sun Feb 05, 2006 6:14 am 
Offline

Joined: Sat Feb 04, 2006 10:13 am
Posts: 12
Location: Livorno Italy
Vital customization is incomplete if scripter can't define itself when mobile die.

There is function death.src and chardeath.src in misc.
I think it could be also exist a
Code:
misc/candeath.src

and
Code:
misc/CanChrdeath.src


And after an old core function not very loved by staff (aready I suggested it):
Code:
KillMobile()

that kill but do not pass from vital mechanisms. I think that if vitals are custom shuld be possibile kill a mobile without use vital internal core functions.

I could also need to define that player do not more ever but only script can do die it with KillMobile() command.

This could be very flexibile.

And it cound be nice also to "define" new player status... non only live od dead... for a player it cound be interesting applly a new "state" like not_dead and for every state define what to do with vitals.

A command like:
Code:
const DIE := 0x01;
const LIVE := 0x02;
const NEW_STATE := 0x03;
ApplyMobileStatus(status);


that substituite:
Code:
KillMobile() -> ApplyMobileStatus(DIE);
Resurrect(mobile, flags := 0);  -> ApplyMobileStatus(LIVE);

_________________
-----------------------------------------
Zandor
Scripter ZHI Shard


Top
 Profile  
 
 Post subject:
PostPosted: Sun Feb 05, 2006 7:49 am 
Offline

Joined: Sun Feb 05, 2006 3:49 am
Posts: 9
I have only one simple word to comment this: lol


Top
 Profile  
 
 Post subject:
PostPosted: Sun Feb 05, 2006 1:44 pm 
Offline
Certified POL Expert
User avatar

Joined: Thu Feb 02, 2006 1:41 pm
Posts: 1252
Location: Southern Central USA
*smirks*

lol is an acronym.

_________________
Sincerely,
Yukiko

I know you think you understand what you thought I said but what you heard is not exactly what I meant.

Titus 2:13


Top
 Profile  
 
 Post subject: deathtest
PostPosted: Sun Feb 26, 2006 3:08 pm 
Offline

Joined: Fri Feb 03, 2006 5:47 am
Posts: 11
By the way, it would be nice if before calling death or chrdeath scripts, like when deciding wether an object is to be allowed for equipping with equiptest.ecl script, death would be tested with some (chr)deathtest.ecl script, returning 1 or 0 if the script is allowing or not death, respectively.

It's something like a generalized or customized invulnerability right; if the mob is invulnerable, the script is not called and death doesn't occur; otherwise the core runs (chr)death script only if (chr)deathtest returns 1.

It would be cool and useful for many situations :D

Regards

_________________
daneel - developer on altaria


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Style based on FI Subice by phpBBservice.nl