User Tools

Site Tools


script:world_event:randomparticleeffectid

randomParticleEffectID

  • Parameters and types: None
  • Return value and type:
    • code: numberSuccess (ErrorCode.OK) ErrorCode
      • particleId: numberspecial effect id
  • The main function of this method: Random special effect type, randomly return a special effect ID
  • The specific use cases are as follows:
--Get a random special effect id
local result,id=World:randomParticleEffectID()
--Display in the chat box
Chat:sendSystemMsg("Get a random special effect id:"..id)
script/world_event/randomparticleeffectid.txt · Last modified: 2024/06/10 14:20 by don