This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
scriptlib:betatestwolf [2015/05/16 15:56] emerald |
scriptlib:betatestwolf [2015/08/15 11:13] (current) emerald |
||
---|---|---|---|
Line 19: | Line 19: | ||
local cid = inst.cids(ACTOR_CDEFID)[0]; | local cid = inst.cids(ACTOR_CDEFID)[0]; | ||
if(randmodrng(0, 100) <= SPEAK_CHANCE) { | if(randmodrng(0, 100) <= SPEAK_CHANCE) { | ||
- | inst.emote(cid, ANIMATION); | + | inst.queue(function() { |
- | inst.creatureChat(cid, "s/", phrases[randmodrng(0, phrases.len())]); | + | inst.emote(cid, ANIMATION); |
+ | inst.creature_chat(cid, "s/", phrases[randmodrng(0, phrases.len())]); | ||
+ | }, 1000); | ||
} | } | ||
inst.queue(say_something, 10000); | inst.queue(say_something, 10000); | ||
Line 26: | Line 28: | ||
inst.queue(say_something, 1000); | inst.queue(say_something, 1000); | ||
+ | |||
</code> | </code> |