Anyways, I've started the dive into AI modifications. I haven't done this in a long time and when i did, it was EXTREMELY basic edits and without a this wonderful compiler.
The syntax for NASC seems amazingly simple. I know exactly what's going on syntacticly but not what is happening in terms of functionality and for each method call.
For example, I edited the Gremlin class from blank to this:
My understanding is that the EventHandler is exactly that: A bit of code that sits around and waits for it to be called and then executes. I'm ASSUMING the MY_DYING event handler is triggered when the Gremlin has or is about to die. This code though seems to do nothing and never gets executed.
So, This brings me to some questions:
-Is there a guide with comments and examples somewhere? Like a directory of all the functions and what they do?
- The arguments passed in to the handler, what do these mean?
- The ::'s, are these like C++ class namespaces?
- Is myself similar to this in C++ or self in Obj-C?
- BOOL seems to be non-existant. Is that true? (Doesn't matter, is just odd)
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
DISCORD :
https://discord.com/users/325653525793210378
utchiha_market
telegram :
https://t.me/utchiha_market
SELLIX STORE :
https://utchihamkt.mysellix.io/
Join our server for more products :
https://discord.gg/uthciha-services
https://campsite.bio/utchihaamkt
Question
tk422
Greetings, Again!
Finally got things up and running thanks to Xel.
Anyways, I've started the dive into AI modifications. I haven't done this in a long time and when i did, it was EXTREMELY basic edits and without a this wonderful compiler.
The syntax for NASC seems amazingly simple. I know exactly what's going on syntacticly but not what is happening in terms of functionality and for each method call.
For example, I edited the Gremlin class from blank to this:
(i copied the handler from the superClass)
My understanding is that the EventHandler is exactly that: A bit of code that sits around and waits for it to be called and then executes. I'm ASSUMING the MY_DYING event handler is triggered when the Gremlin has or is about to die. This code though seems to do nothing and never gets executed.
So, This brings me to some questions:
-Is there a guide with comments and examples somewhere? Like a directory of all the functions and what they do?
- The arguments passed in to the handler, what do these mean?
- The ::'s, are these like C++ class namespaces?
- Is myself similar to this in C++ or self in Obj-C?
- BOOL seems to be non-existant. Is that true? (Doesn't matter, is just odd)
- Are there any FOR / WHILE / DO WHILE loops?
- In code like this:
if( target.alive == 0 && target.is_pc == 0 ) {}
Why is the syntax not
if (target.alive && target.is_pc) {}?
- Can you define your own functions and handlers?
Thanks in advance to anyone that answers. :)
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.