You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Explanation of what you want to do that is currently impossible
changing the output text based on input this way: return text, type
if onSay is misleading, we can name it onSpeak
Desired functionality
replace text and talktype of spoken message
return text, type to send the message return false to cancel it
Available workarounds
none for players if statements for npcs
rewriting yell system to lua (creaturescript onThink) for monsters
note: since other creatures have other ways to deal with it, we can make it players only to save performance
Prior art
example code that could be written with such function:
function Creature:onSay(text, type)
if self:isPlayer() and self:getStorageValue(someStorage) == 1 then
type = TALKTYPE_MONSTER_SAY
end
return text, type
end
The text was updated successfully, but these errors were encountered:
Explanation of what you want to do that is currently impossible
changing the output text based on input this way:
return text, type
if onSay is misleading, we can name it onSpeak
Desired functionality
replace text and talktype of spoken message
return text, type
to send the messagereturn false
to cancel itAvailable workarounds
none for players
if
statements for npcsrewriting yell system to lua (creaturescript onThink) for monsters
note: since other creatures have other ways to deal with it, we can make it players only to save performance
Prior art
example code that could be written with such function:
The text was updated successfully, but these errors were encountered: