expedition
This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.
-
-
File: MissionCaseExpedition.class.php
Function: EndStayEvent
There you can change the event chance. This is the dice:
$GetEvent = mt_rand(0, 1000);
If you change this to mt_rand(0, 812); you will always have an event, if the location is not mined out. If you also dont want a location to depleet, change this code:
Lines 2 and 3 are commented out by inserting // at the beginningThe post was edited 1 time, last by Palatinus ().
-
Of course, it depends on what codebase you are using.
-
Palatinus wrote:
Of course, it depends on what codebase you are using.
-
In your code, there are 3 Events:
- Ressources
- DM
- Ships
This code will have event every second time (50% Chance):
This code will have event every time (100% Chance):
The code is in line 58. Have fun! - Ressources
-
Palatinus wrote:
In your code, there are 3 Events:
- Ressources
- DM
- Ships
This code will have event every second time (50% Chance):
This code will have event every time (100% Chance):
The code is in line 58. Have fun!
- Ressources
-
tellez wrote:
Lo he puesto en mt_rand(1, 6); y solo me ha traido un solo recurso. Tiene este cambio algo que ver con eso?
-------------------------------------------------------------------
Yes it's normal it's due to this part of the code which gives the chances of obtaining 1 or more resources
You can contact me by Discord or Telegram
Discord Galactic Conquest
Video Youtube dev + tutorials
Webside -
y como puedo hacer para aumentar la probabilidad de éxito sin perjudicar la cantidad de recursos a traer?
-
it all depends on what you want to do. Have the 3 see 4 resources or only 3 or only 2 or only 1 etc...
The quantity does not changeYou can contact me by Discord or Telegram
Discord Galactic Conquest
Video Youtube dev + tutorials
Webside
-
Share
- Facebook 0
- Twitter 0
- Google Plus 0
- Reddit 0
-
Similar Threads