script:world_event:randomweatherid
randomWeatherID
- Parameters and types: None
- Return value and type:
- code: numberSuccess (ErrorCode.OK) ErrorCode
- wtype: numberweather value (WEATHERSTATUS) WEATHERSTATUS
- The main function of this method: Randomly generate a weather ID
- The specific use cases are as follows:
local code, wtype = World:randomWeatherID() if code == ErrorCode.OK then print('Execution successful', code, wtype ) else print('Execution failed') end
script/world_event/randomweatherid.txt · Last modified: 2024/06/09 09:35 by don