• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

C++ Question about Condition_param_delay

gohamvsgoku

Member
Joined
Aug 21, 2017
Messages
151
Reaction score
9
C++:
else if (identifier == "poison") {
                            conditionDamage = new ConditionDamage(CONDITIONID_COMBAT, CONDITION_POISON);
                            conditionDamage->setParam(CONDITION_PARAM_DELAYED, true);
                            combatType = COMBAT_EARTHDAMAGE;
                            items[id].combatType = combatType;
                            items[id].conditionDamage.reset(conditionDamage);

I found this code in my items.cpp

This add a delay to start the condition yes?
How can i set the time for this delay?
Because in condition.cpp i found this function and is a boolean.

And about this
CONDITION_PARAM_STARTVALUE
If i put this, can be starvalue different of my items.xml?

For example:
C++:
else if (identifier == "poison") {
                            conditionDamage = new ConditionDamage(CONDITIONID_COMBAT, CONDITION_POISON);
                            conditionDamage->setParam(CONDITION_PARAM_STARTVALUE, 10)
                            combatType = COMBAT_EARTHDAMAGE;
                            items[id].combatType = combatType;
                            items[id].conditionDamage.reset(conditionDamage);

Using this the condition will start with value 10? And after read the real value start on items.xml?
 
Back
Top