[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
NoX Forum • View topic - how to can i treat console commands by script codes.

how to can i treat console commands by script codes.

Everything about NoX as a game.

how to can i treat console commands by script codes.

Postby panic » Mon Jan 30, 2017 12:10 pm

panic
Veteran
Posts: 336
Joined: Thu Nov 12, 2015 3:47 pm

Re: how to can i treat console commands by script codes.

Postby panic » Tue Jan 31, 2017 8:25 am

require expand script functions...
(maybe, expand script patch)

1. treat console command by script code.
it was very innovative.

example codes

cmdline("racoiaws");
cmdline("set spell SPELL_WALL off");

2. treat detailed properties of object.
can modify object flags.
- no_collision
- no_update
- dead
- push_character
- etc...

even, it was change max health of object.
(or speed)

3. about mana amount of object.
it is can check mana amount or restore mana from object.

example codes

CurrentMana(object)
RestoreMana(object)

4. add on kill event.
if it is not impossible, it can use by function setCallback(setProperty).

release relation.
self - dead unit id.
other - kill unit id.

5. available 'createMover' code and control 'sentry ray globe' direction by script.

6. add new enchant 'ENCHANT_POISON'.

7. available create 'magic missile' object.
also, harpoonBolt, RoundChakrumMotion ...
you can't put your map.
because, it will be stop nox.

however... now, it was impossible... T_T
panic
Veteran
Posts: 336
Joined: Thu Nov 12, 2015 3:47 pm


Return to NoX discussion

Who is online

Users browsing this forum: No registered users and 4 guests

cron